/* TrepaRoca brand + CRO — v1.0.1 */

:root {
	--tr-yellow: #f5c518;
	--tr-yellow-hover: #e0b400;
	--tr-black: #0d0d0d;
	--tr-white: #ffffff;
	--tr-gray: #f3f3f3;
	--tr-muted: #5c5c5c;
	--tr-border: #e5e5e5;
	--tr-radius: 14px;
	--tr-max: 1120px;
}

/* Kill WP constrained layout on our full-bleed sections */
.entry-content:has(.tr-hero),
.wp-block-post-content:has(.tr-hero) {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-top: 0 !important;
}

.entry-content .tr-hero,
.entry-content .tr-section,
.wp-block-post-content .tr-hero,
.wp-block-post-content .tr-section {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	/* full-bleed without 100vw scrollbar bug */
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
}

.entry-content .tr-hero + .tr-section,
.wp-block-post-content .tr-hero + .tr-section {
	margin-top: 0;
}

/* ----- Layout ----- */
.tr-wrap {
	max-width: var(--tr-max);
	margin: 0 auto;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.tr-section {
	padding: 3.25rem 0;
	background: var(--tr-white);
	color: var(--tr-black);
}

.tr-section--gray {
	background: var(--tr-gray) !important;
	color: var(--tr-black);
}

.tr-section--black {
	background: var(--tr-black) !important;
	color: var(--tr-white) !important;
}

.tr-section--black h2,
.tr-section--black .tr-kicker {
	color: var(--tr-white) !important;
}

.tr-section--black .tr-intro {
	color: #cccccc !important;
}

.tr-section--black a:not(.tr-btn) {
	color: var(--tr-yellow);
}

.tr-section--yellow {
	background: var(--tr-yellow) !important;
	color: var(--tr-black) !important;
}

.tr-section--yellow .tr-intro {
	color: #333 !important;
}

/* ----- Hero ----- */
.tr-hero {
	padding: 4rem 0 3.25rem;
	background: linear-gradient(160deg, #0d0d0d 0%, #161616 45%, #2a2208 100%) !important;
	color: var(--tr-white) !important;
}

.tr-hero h1 {
	font-size: clamp(1.85rem, 4.2vw, 2.85rem);
	line-height: 1.12;
	margin: 0 0 1rem;
	color: var(--tr-white) !important;
	max-width: 18ch;
	font-weight: 800;
}

.tr-hero .tr-lead {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: #e6e6e6 !important;
	max-width: 42ch;
	margin: 0 0 1.75rem;
	line-height: 1.55;
}

.tr-badge {
	display: inline-block;
	background: var(--tr-yellow) !important;
	color: var(--tr-black) !important;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

/* ----- Buttons / CTAs ----- */
.tr-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

a.tr-btn,
.tr-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 52px;
	padding: 0.9rem 1.4rem !important;
	border-radius: 10px !important;
	font-weight: 800 !important;
	font-size: 1rem !important;
	line-height: 1.2;
	text-decoration: none !important;
	border: 2px solid transparent !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
	cursor: pointer;
	box-sizing: border-box;
}

a.tr-btn:hover,
.tr-btn:hover {
	transform: translateY(-1px);
}

a.tr-btn--primary,
.tr-btn--primary {
	background: var(--tr-yellow) !important;
	color: var(--tr-black) !important;
	border-color: var(--tr-yellow) !important;
}

a.tr-btn--primary:hover,
.tr-btn--primary:hover {
	background: var(--tr-yellow-hover) !important;
	border-color: var(--tr-yellow-hover) !important;
	color: var(--tr-black) !important;
}

a.tr-btn--ghost,
.tr-btn--ghost {
	background: transparent !important;
	color: var(--tr-white) !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
}

a.tr-btn--ghost:hover,
.tr-btn--ghost:hover {
	border-color: var(--tr-yellow) !important;
	color: var(--tr-yellow) !important;
}

a.tr-btn--dark,
.tr-btn--dark {
	background: var(--tr-black) !important;
	color: var(--tr-white) !important;
	border-color: var(--tr-black) !important;
}

a.tr-btn--dark:hover,
.tr-btn--dark:hover {
	background: #222 !important;
}

a.tr-btn--outline,
.tr-btn--outline {
	background: transparent !important;
	color: var(--tr-black) !important;
	border-color: var(--tr-black) !important;
}

a.tr-btn--outline:hover,
.tr-btn--outline:hover {
	background: var(--tr-black) !important;
	color: var(--tr-white) !important;
}

/* ----- Cards / grid ----- */
.tr-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 700px) {
	.tr-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.tr-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tr-card {
	background: var(--tr-white) !important;
	border: 1px solid var(--tr-border);
	border-radius: var(--tr-radius);
	padding: 1.5rem 1.6rem;
	height: 100%;
	box-sizing: border-box;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tr-section--gray .tr-card {
	border-color: #e0e0e0;
}

.tr-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	color: var(--tr-black);
}

.tr-card p {
	margin: 0;
	color: var(--tr-muted);
	line-height: 1.55;
}

.tr-card a {
	font-weight: 700;
	color: var(--tr-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ----- Tables ----- */
.tr-table-wrap {
	overflow-x: auto;
	border-radius: var(--tr-radius);
	border: 1px solid var(--tr-border);
	background: var(--tr-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.tr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	min-width: 320px;
}

.tr-table th,
.tr-table td {
	padding: 0.9rem 1.05rem;
	text-align: left;
	border-bottom: 1px solid var(--tr-border);
}

.tr-table th {
	background: var(--tr-black) !important;
	color: var(--tr-white) !important;
	font-weight: 700;
}

.tr-table tr:last-child td {
	border-bottom: none;
}

.tr-table tr:nth-child(even) td {
	background: #fafafa;
}

.tr-price {
	font-weight: 800;
	white-space: nowrap;
	color: var(--tr-black);
}

/* ----- Highlight ----- */
.tr-highlight {
	background: var(--tr-yellow) !important;
	color: var(--tr-black) !important;
	border-radius: var(--tr-radius);
	padding: 1.6rem 1.8rem;
	margin: 1.5rem 0;
	box-shadow: 0 10px 28px rgba(245, 197, 24, 0.35);
}

.tr-highlight h2,
.tr-highlight h3 {
	margin: 0 0 0.5rem;
	color: var(--tr-black) !important;
}

.tr-highlight p {
	margin: 0 0 1rem;
	color: #222 !important;
}

/* ----- Contact ----- */
.tr-nap {
	line-height: 1.75;
}

.tr-nap strong {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--tr-black);
}

.tr-map {
	border: 0;
	border-radius: var(--tr-radius);
	width: 100%;
	min-height: 340px;
	background: var(--tr-gray);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ----- Type ----- */
.tr-section h2 {
	font-size: clamp(1.45rem, 3vw, 1.9rem);
	margin: 0 0 0.75rem;
	line-height: 1.2;
	color: var(--tr-black);
	font-weight: 800;
}

.tr-section > .tr-wrap > p.tr-intro,
.tr-intro {
	color: var(--tr-muted);
	max-width: 55ch;
	margin: 0 0 1.75rem;
	line-height: 1.55;
	font-size: 1.05rem;
}

.tr-kicker {
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--tr-muted);
	margin: 0 0 0.4rem;
}

.tr-list {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
	line-height: 1.7;
}

.tr-list li {
	margin-bottom: 0.35rem;
}

/* Header site title polish */
.wp-block-site-title a {
	text-decoration: none !important;
	letter-spacing: -0.02em;
}

.wp-block-navigation a {
	text-decoration: none !important;
}

/* Prevent horizontal scroll from full-bleed */
body {
	overflow-x: hidden;
}

/* ----- Blog / guías ----- */
.tr-hero--article {
	padding: 3rem 0 2.5rem;
}

.tr-hero--article h1 {
	max-width: 22ch;
}

.tr-prose {
	max-width: 720px;
}

.tr-prose p {
	line-height: 1.7;
	margin: 0 0 1.15rem;
	color: #333;
	font-size: 1.05rem;
}

.tr-prose h2 {
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	margin: 2rem 0 0.75rem;
	line-height: 1.25;
	font-weight: 800;
	color: var(--tr-black);
}

.tr-prose a {
	color: var(--tr-black);
	font-weight: 700;
	text-underline-offset: 3px;
}

.tr-prose .tr-list {
	margin-bottom: 1.25rem;
}

.tr-related {
	margin-top: 2rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tr-border);
	font-size: 0.98rem !important;
	color: var(--tr-muted) !important;
}

.tr-profe-photo-slot {
	min-height: 220px;
	background: linear-gradient(145deg, #fafafa, #eee) !important;
	border-style: dashed !important;
}

.tr-blog-list {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 700px) {
	.tr-blog-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile */
@media (max-width: 600px) {
	.tr-hero {
		padding: 2.75rem 0 2.4rem;
	}
	.tr-section {
		padding: 2.4rem 0;
	}
	a.tr-btn,
	.tr-btn {
		width: 100%;
	}
	.tr-cta-row {
		flex-direction: column;
		align-items: stretch;
	}
}
