/* ==========================================================================
   Taxis Valle Gran Rey — estilos globales
   Se cargan en todo el sitio. Los de la portada están en home.css.

   1. Tokens
   2. Base
   3. Utilidades y accesibilidad
   4. Botones
   5. Layout y secciones
   6. Cabecera y navegación
   7. Llamada a la acción (CTA)
   8. Pie
   9. Barra móvil
   10. Páginas interiores
   11. Animaciones
   12. Responsive
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
	/* Paleta: verde claro #a0e870 · lima #bbc863 · salvia #658c58 · bosque #112700 */
	--g: #112700;      /* bosque: color principal (titulares, bloques, botones verdes) */
	--g2: #163200;     /* bosque oscurecido: franja de confianza, pie y veladuras */
	--lg: #f0f3dd;     /* tinte claro de lima: fondos suaves y etiquetas */
	--y: #5c7d35;      /* verde: botones y acentos */
	--y-icon: #79a346; /* verde original de los iconos */
	--lima: #bbc863;   /* lima: WhatsApp y detalles */
	--salvia: #658c58; /* salvia: solo elementos gráficos (no texto, contraste 3,9:1) */
	--ink: #132017;    /* texto */
	--mut: #55635a;    /* texto secundario */
	--body: #34413a;   /* texto de párrafos */
	--line: #dfe6dc;   /* bordes */
	--soft: #faf7de;   /* tinte claro de crema: fondo suave */
	--on-dark: #b9cdb9;

	/* Botones y titulares: combinación «Todo verde» */
	--title: #111;               /* h2 sobre fondo claro */
	--text: #3d3d3d;             /* párrafo que acompaña a un h2 sobre fondo claro */
	--text-mut: #555;            /* entradilla bajo un h2 sobre fondo claro */
	--title-dark: #fff;          /* h2 sobre fondo verde */
	--title-hero: #fff;          /* h1 del hero */
	--btn-green: #008344;        /* verde de los botones */
	--btn1-bg: var(--btn-green); /* botón principal (Llamar) */
	--btn1-fg: #fff;
	--btn2-bg: var(--g2);        /* botón de cabecera y «Reservar para mi grupo» */
	--btn2-fg: #fff;
	--btn-wa-bg: var(--btn-green); /* botón de WhatsApp */
	--btn-wa-fg: #fff;

	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1220px;
	--gutter: 24px;
	--radius: 10px;
	--radius-lg: 16px;
	--header-h: 69px;
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--g); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; font-weight: 800; }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }

:focus-visible {
	outline: 3px solid var(--g);
	outline-offset: 2px;
	border-radius: 4px;
}
.hero :focus-visible,
.trust :focus-visible,
.hike :focus-visible,
.svc-sec :focus-visible,
.cta :focus-visible,
.page-head :focus-visible,
.site-footer :focus-visible { outline-color: var(--y); }
.hero .book :focus-visible { outline-color: var(--g); }

/* 3. Utilidades y accesibilidad
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	background: var(--y);
	color: var(--ink);
	font-weight: 800;
	padding: 12px 16px;
	border-radius: var(--radius);
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 4. Botones
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: inherit;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	border-radius: 25px;
	padding: 15px 22px;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn .icon { flex: none; }

.btn-y { background: var(--y); color: var(--btn1-fg); }
.btn-wa { background: var(--y); color: var(--btn-wa-fg); }
.btn-g { background: var(--y); color: var(--btn2-fg); }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn-sm { gap: 8px; padding: 11px 16px; font-size: 15px; }
.btn-sm .icon { width: 16px; height: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. Layout y secciones
   ========================================================================== */
.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding: 96px 0; }
.section-flush-top { padding-top: 0; }
.section-soft { background: var(--soft); }

/* Etiqueta pequeña sobre los titulares de sección. */
.eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--g);
}
/* Dentro de cabeceras con estilos propios de párrafo, la etiqueta manda. */
.routes-head .eyebrow,
.faq-head .eyebrow { margin-bottom: 0; font-size: 13px; line-height: 1.4; color: var(--g); }

/* Icono sobre fondo suave (servicios, trayectos). */
.icon-chip {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--lg);
	color: #fff;
}

/* 6. Cabecera y navegación
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s ease;
}
/* Al bajar, la cabecera se separa del contenido con una sombra suave. */
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 32, 23, .08); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.hbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}
.logo-img { width: auto; height: 54px; margin: -5px 0; }

.hnav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 15px;
	font-weight: 600;
}

.main-nav .menu { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--g); }
.main-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--lg);
	color: var(--g);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.live i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--salvia);
	animation: blink 1.6s infinite;
}

.lang { display: flex; gap: 2px; font-size: 14px; }
.lang li + li::before { content: "·"; margin: 0 4px; color: var(--mut); }
.lang a { color: var(--mut); text-decoration: none; }
.lang a[aria-current] { color: var(--ink); font-weight: 800; }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle-close,
.is-nav-open .nav-toggle-open { display: none; }
.is-nav-open .nav-toggle-close { display: flex; }
.nav-toggle-open { display: flex; }

/* 7. Llamada a la acción (CTA, ref. 21st «CTA 4»: mensaje + ventajas)
   ========================================================================== */
.cta { background: var(--g2); color: #fff; padding: 88px 0; }
.cta-card {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}
.cta h2 { max-width: 600px; color: var(--title-dark); }
.cta p { margin-top: 12px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.cta-main p { max-width: 470px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cta-points {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, .06);
}
.cta-points li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.cta-points .check {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--y-icon);
	color: #fff;
}

/* 8. Pie
   ========================================================================== */
.site-footer {
	background: var(--g);
	color: var(--on-dark);
	font-size: 15px;
	padding: 56px 0 28px;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.site-footer .cols > * { display: flex; flex-direction: column; gap: 8px; }
.site-footer .cols .menu { display: flex; flex-direction: column; gap: 8px; }
.col-brand { flex: 1 1 260px; }
.site-footer .cols > .col-brand { flex-direction: row; align-items: flex-start; gap: 20px; }
.col-brand-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 300px; }
.site-footer .col-brand .logo { flex: none; padding: 8px; background: transparent; border-radius: var(--radius); }
.site-footer .col-brand .logo-img { width: 110px; height: auto; margin: 0; }
.col-brand b { color: #fff; font-size: 20px; }
.col-contact .phone { color: var(--on-dark); font-weight: 400; font-size: 14px; }

.site-footer .legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 18px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 13px;
}
.site-footer .legal .menu { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* 9. Barra móvil
   ========================================================================== */
.mbar { display: none; }
.mbar a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 8px;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
}
.mbar-call { background: var(--btn1-bg); color: var(--btn1-fg); }
.mbar-wa { background: var(--btn-wa-bg); color: var(--btn-wa-fg); }
/* Los dos botones comparten color: una línea los separa. */
.mbar-wa { border-left: 1px solid rgba(255, 255, 255, .25); }

/* 10. Páginas interiores
   ========================================================================== */
.page-head {
	background: var(--g);
	color: #fff;
	padding: 72px 0 64px;
}
.page-head h1 {
	max-width: 900px;
	font-size: clamp(34px, 4.6vw, 56px);
	line-height: 1.02;
	font-weight: 900;
}
.page-meta { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .84); }
.post-card .page-meta { color: var(--mut); margin: 6px 0 10px; }

.page-thumb { margin-top: -40px; }
.page-thumb img { width: 100%; border-radius: var(--radius-lg); }

.entry {
	font-size: 18px;
	line-height: 1.7;
	color: var(--text);
}
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(28px, 3.2vw, 36px); color: var(--title); margin-top: 1.6em; }
.entry h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 1.4em; }
.entry h2 + *,
.entry h3 + * { margin-top: .6em; }
.entry img { border-radius: 12px; }
.entry blockquote {
	margin-left: 0;
	padding-left: 20px;
	border-left: 4px solid var(--lima);
	font-style: italic;
}
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th,
.entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry .wp-block-button__link { border-radius: var(--radius); font-weight: 800; }

.post-list { display: flex; flex-direction: column; gap: 40px; }
.post-card h2 { font-size: 28px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--g); }
.post-card p { font-size: 17px; line-height: 1.6; color: var(--mut); }

.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; font-weight: 700; }
.post-navigation { padding-bottom: 64px; }
.post-navigation span { display: block; font-size: 13px; color: var(--mut); }

/* 11. Animaciones
   ========================================================================== */
@keyframes blink { 50% { opacity: .3; } }
@keyframes up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Aparición al hacer scroll (assets/js/reveal.js marca los elementos y los activa).
   Clase doble para ganar a las transiciones propias de cada componente
   (p. ej. «.faq details»), que si no anularían la animación. */
.rv-init.rv-init {
	opacity: 0;
	transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--rv-delay, 0s);
	will-change: opacity, transform;
}
.rv-init.rv-up { transform: translateY(28px); }
.rv-init.rv-left { transform: translateX(-36px); }
.rv-init.rv-right { transform: translateX(36px); }
.rv-init.rv-zoom { transform: scale(.94); }
.rv-init.rv-init.rv-on { opacity: 1; transform: none; }

/* Pulsación de los botones. */
.btn:active { transform: translateY(0) scale(.98); }

/* 12. Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.live { display: none; }
}

@media (max-width: 760px) {
	:root { --gutter: 18px; }

	.section { padding: 64px 0; }

	/* Menú desplegable */
	.nav-toggle { display: inline-flex; }
	.hnav { gap: 10px; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
	}
	.is-nav-open .main-nav { display: block; }
	.main-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 16px;
	}
	.main-nav .menu a {
		display: block;
		padding: 14px 0;
		font-size: 18px;
		border-bottom: 1px solid var(--line);
	}

	/* Barra fija de llamada */
	.mbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--ink);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
	}
	.has-mobile-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

	.page-head { padding: 52px 0 48px; }

	.cta { padding: 64px 0; }
	.cta-card { grid-template-columns: 1fr; gap: 32px; }
	.cta-points { padding: 22px; }
}

@media (max-width: 480px) {
	/* La barra inferior ya tiene el botón de llamada. */
	.hnav .btn-sm { display: none; }
	.logo-img { height: 48px; margin: -2px 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Visual refinement: warm paper, forest ink and restrained geometry. */
:root {
	--lg: #f0f2e9;
	--soft: #f8f7f2;
	--line: #dce1d8;
	--motion-ease: cubic-bezier(.22, 1, .36, 1);
}
body { background: #fdfcf9; }
h2 { font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
.section { padding-block: clamp(72px, 8vw, 120px); }
.eyebrow { letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.btn {
	font-weight: 650;
	transition: transform .35s var(--motion-ease), box-shadow .35s ease, background .25s ease;
}
.btn:hover { filter: none; transform: translateY(-3px); box-shadow: 0 8px 22px #13201724; }
.btn .icon { transition: transform .35s var(--motion-ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-line { background: #14261d26; box-shadow: inset 0 0 0 1px #ffffffa8; }
.site-header { background: #fdfcf9f5; transition: box-shadow .35s, background .35s; }
.site-header.is-scrolled { background: #fdfcf9eb; box-shadow: 0 4px 24px #1320170d; }
.main-nav a { position: relative; }
@media (min-width: 761px) {
	.main-nav a::after { content: ''; position: absolute; bottom: -7px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--motion-ease); }
	.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
}
.cta { padding-block: clamp(72px, 8vw, 112px); }
.cta-points { background: transparent; border: 0; padding-left: 40px; }
.site-footer { padding-top: 72px; }
.site-footer .cols { line-height: 1.7; }
@media (max-width: 760px) { .cta-points { padding-left: 24px; } }
/* Keep lateral reveal transitions inside their section on narrow screens. */
.section, .cta, .site-footer { overflow-x: clip; }
