/* =========================================================================
 * Rodando Van — Pages
 * Layouts específicos: home, archive, search, page, 404.
 * ========================================================================= */

/* =========================================================================
 * MAIN WRAPPER
 * ========================================================================= */
.rv-site-main {
	min-height: 60vh;
	padding: var(--rv-space-7) 0;
}

/* =========================================================================
 * HOME — secciones bajo el slider
 * ========================================================================= */
.rv-home-section {
	padding: var(--rv-space-8) 0;
}
.rv-home-section + .rv-home-section {
	padding-top: 0;
}
.rv-home-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--rv-space-5);
	gap: var(--rv-space-4);
}
.rv-home-section-header h2 {
	margin: 0;
	font-size: var(--rv-text-3xl);
}
.rv-home-section-header .rv-eyebrow {
	font-size: var(--rv-text-xs);
	letter-spacing: var(--rv-tracking-wide);
	text-transform: uppercase;
	color: var(--rv-primary-dark);
	font-weight: 700;
	margin-bottom: var(--rv-space-2);
	display: block;
}
.rv-home-section-link {
	font-size: var(--rv-text-sm);
	font-weight: 600;
	color: var(--rv-primary-dark);
	text-decoration: none;
	white-space: nowrap;
}
.rv-home-section-link:hover { color: var(--rv-primary); }

/* =========================================================================
 * ARCHIVE / CATEGORY / TAG / SEARCH
 * ========================================================================= */
.rv-archive-header {
	padding: var(--rv-space-8) 0 var(--rv-space-5);
	text-align: center;
	border-bottom: 1px solid var(--rv-line);
	margin-bottom: var(--rv-space-7);
}
.rv-archive-header .rv-eyebrow {
	font-size: var(--rv-text-sm);
	letter-spacing: var(--rv-tracking-wide);
	text-transform: uppercase;
	color: var(--rv-primary-dark);
	font-weight: 600;
	margin-bottom: var(--rv-space-2);
}
.rv-archive-header h1 {
	font-size: var(--rv-text-4xl);
	margin: 0 0 var(--rv-space-3);
}
.rv-archive-header .rv-archive-desc {
	color: var(--rv-muted);
	font-size: var(--rv-text-lg);
	max-width: 60ch;
	margin: 0 auto;
}

/* Pagination */
.rv-pagination {
	display: flex;
	justify-content: center;
	gap: var(--rv-space-2);
	padding: var(--rv-space-7) 0;
}
.rv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--rv-space-3);
	background: white;
	border: 1px solid var(--rv-line);
	border-radius: var(--rv-radius-sm);
	color: var(--rv-text);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--rv-text-sm);
	transition: all var(--rv-duration) var(--rv-ease);
}
.rv-pagination .page-numbers:hover {
	background: var(--rv-primary-soft);
	border-color: var(--rv-primary);
	color: var(--rv-primary-dark);
}
.rv-pagination .page-numbers.current {
	background: var(--rv-primary);
	border-color: var(--rv-primary);
	color: white;
}

/* =========================================================================
 * PAGE (genérico) — /nosotros, /recursos, /descuentos, /viaje...
 * ========================================================================= */
.rv-page-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-bottom: var(--rv-space-7);
}
.rv-page-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.rv-page-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 30, 26, 0.1) 0%, rgba(15, 30, 26, 0.75) 100%);
}
.rv-page-hero-bg-fallback {
	background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark));
}
.rv-page-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: var(--rv-space-7) 0;
	text-align: center;
	color: white;
}
.rv-page-hero h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin: 0 0 var(--rv-space-4);
	line-height: 1.2;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.rv-page-subtitle {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: var(--rv-text-lg);
	max-width: 60ch;
	margin: 0 auto !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.rv-page-content {
	font-size: var(--rv-text-base);
	line-height: var(--rv-leading-normal);
	padding: var(--rv-space-5) 0;
}

/* =========================================================================
 * 404
 * ========================================================================= */
.rv-404 {
	text-align: center;
	padding: var(--rv-space-9) var(--rv-space-4);
	max-width: 600px;
	margin: 0 auto;
}
.rv-404 .rv-404-code {
	font-family: var(--rv-font-serif);
	font-size: clamp(6rem, 18vw, 11rem);
	color: var(--rv-primary);
	line-height: 1;
	margin: 0;
}
.rv-404 h1 {
	font-size: var(--rv-text-3xl);
	margin: var(--rv-space-3) 0 var(--rv-space-4);
}
.rv-404 p {
	font-size: var(--rv-text-lg);
	color: var(--rv-muted);
	margin-bottom: var(--rv-space-5);
}

/* =========================================================================
 * SEARCH FORM
 * ========================================================================= */
.rv-search-form {
	display: flex;
	gap: var(--rv-space-2);
	max-width: 500px;
	margin: 0 auto;
}
.rv-search-form input[type="search"] {
	flex: 1;
}
.rv-search-form button {
	padding: 0.75rem 1.5rem;
	background: var(--rv-primary);
	color: white;
	border: none;
	border-radius: var(--rv-radius-pill);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--rv-duration) var(--rv-ease);
}
.rv-search-form button:hover { background: var(--rv-primary-dark); }

/* =========================================================================
 * MOBILE — single layout
 * ========================================================================= */
@media (max-width: 1024px) {
	.rv-sidebar {
		margin-top: var(--rv-space-7);
		padding-top: var(--rv-space-7);
		border-top: 1px solid var(--rv-line);
	}
	.rv-sidebar .toc-box {
		position: static;
		max-height: none;
	}
	/* En mobile, mostrar TOC arriba del contenido si existe inline */
	.rv-mobile-toc {
		display: block;
		margin-bottom: var(--rv-space-6);
	}
}
@media (min-width: 1025px) {
	.rv-mobile-toc { display: none; }
}

/* =========================================================================
 * PRINT
 * ========================================================================= */
@media print {
	.rv-site-header,
	.rv-site-footer,
	.rv-sidebar,
	#rv-floating-top,
	.rv-slider,
	.newsletter-cta,
	.affiliate-card,
	.sidebar-affiliate { display: none !important; }
	.rv-post-content { max-width: 100% !important; font-size: 11pt; }
	a { color: black; text-decoration: underline; }
}
