/*
Theme Name: SKY Runners
Theme URI: https://skyrunnershn.com/
Author: SKY Runners HN
Description: Tema premium para SKY Runners, inspirado en los sitios de producto de Apple y Samsung: tipografía grande, mucho aire, tarjetas bento, navegación translúcida y animaciones al hacer scroll. Portada editable desde "Panel SKY", plantilla de ancho completo para SKY Coach y micrositio VillaRun (/villarun) con identidad propia, cuenta regresiva, distancias, patrocinadores, resultados, galería e inscripción vía Eticket.hn.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sky-runners
*/

/* =====================================================================
   1. TOKENS — la línea gráfica vive aquí. Los colores y fuentes se
   sobrescriben desde Panel SKY (ver inc/opciones.php → sky_css_vars).
   ===================================================================== */
:root {
	--brand: #07575e;          /* teal profundo SKY (botones, enlaces) */
	--brand-2: #01e0c3;        /* aqua SKY (degradados, acentos sobre oscuro) */
	--accent: #bccf12;         /* lima SKY (energía, detalles) */
	--accent-ink: #1d1d1f;     /* texto sobre acento */
	--grad: linear-gradient(100deg, #07575e 0%, #09aba0 55%, #01e0c3 100%);
	--grad-dark: linear-gradient(100deg, #01e0c3 0%, #7fe0a0 55%, #bccf12 100%);
	--ink: #1d1d1f;            /* texto principal */
	--ink-soft: #6e6e73;       /* texto secundario */
	--bg: #ffffff;
	--bg-alt: #f5f5f7;         /* gris claro tipo Apple */
	--bg-dark: #000000;
	--tile-dark: #161617;
	--line: rgba(0, 0, 0, .1);
	--font-head: "Inter Tight", "Inter", system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
	--font-display: "Unbounded", "Inter Tight", system-ui, sans-serif; /* eco de "RUNNERS" en el logo */
	--font-body: "Inter", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
	--r-sm: 12px;
	--r: 20px;
	--r-lg: 28px;
	--wrap: 1180px;
	--wrap-wide: 1440px;
	--gutter: clamp(16px, 4vw, 40px);
	--nav-h: 52px;
	--ease: cubic-bezier(.25, .1, .25, 1);
	--shadow: 0 2px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
}

/* =====================================================================
   2. BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 60px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: -.011em;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.028em;
	color: inherit;
	margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h4 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: var(--wrap-wide); }
.center { text-align: center; }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark .muted, .section--dark .lead { color: #a1a1a6; }

.eyebrow { display: block; font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; color: var(--brand); margin-bottom: 10px; }
.section--dark .eyebrow, .hero--dark .eyebrow, .hero-full .eyebrow, .tile--dark .eyebrow { color: var(--brand-2); }
.headline { max-width: 900px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.headline--left { margin-left: 0; text-align: left; }
.lead { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.35; letter-spacing: -.02em; color: var(--ink-soft); font-weight: 500; }
.muted { color: var(--ink-soft); }
.gradient-text {
	padding-bottom: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--dark .gradient-text, .hero--dark .gradient-text, .hero-full .gradient-text, .tile--dark .gradient-text { background-image: var(--grad-dark); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }

/* =====================================================================
   3. BOTONES Y ENLACES
   ===================================================================== */
.btn {
	--b: var(--brand);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 24px; border-radius: 980px; border: 0;
	font: 500 17px/1 var(--font-body); letter-spacing: -.01em;
	background: var(--b); color: #fff; cursor: pointer; text-decoration: none !important;
	transition: filter .2s var(--ease), transform .2s var(--ease), background .2s;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn--accent { --b: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); }
.btn--aqua { --b: var(--brand-2); color: #062b2d; }
.btn--aqua:hover { color: #062b2d; }
.btn--light { --b: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--dark { --b: var(--ink); }
.btn--outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--outline:hover { color: #fff; background: var(--brand); box-shadow: none; filter: none; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 19px; }
.btn--sm { min-height: 34px; padding: 8px 16px; font-size: 14px; }
.link-more { font-size: clamp(17px, 1.6vw, 21px); color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(3px); }
.section--dark .link-more, .tile--dark .link-more { color: var(--brand-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 26px; }
.cta-row--left { justify-content: flex-start; }

/* =====================================================================
   4. NAVEGACIÓN GLOBAL (translúcida, tipo Apple)
   ===================================================================== */
.gnav {
	position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
	background: rgba(251, 251, 253, .78);
	-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0,0,0,.06);
}
body.admin-bar .gnav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .gnav { top: 46px; } }
.gnav--dark { background: rgba(22, 22, 23, .8); border-bottom-color: rgba(255,255,255,.08); color: #f5f5f7; }
.gnav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.gnav__brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; letter-spacing: -.02em; font-size: 19px; text-decoration: none !important; }
.gnav__brand img, .gnav__brand .custom-logo { height: 30px; width: auto; }
.gnav__menu { flex: 1; min-width: 0; }
.gnav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 clamp(10px, 1.8vw, 26px); }
.gnav__menu > ul > li > a { white-space: nowrap; }
.gnav__menu li { position: relative; }
.gnav__menu a { color: inherit; opacity: .82; font-size: 13px; letter-spacing: -.005em; padding: 6px 0; display: block; transition: opacity .2s; }
.gnav__menu a:hover, .gnav__menu .current-menu-item > a, .gnav__menu .current_page_item > a { opacity: 1; text-decoration: none; }
.gnav__menu .current-menu-item > a { font-weight: 600; }
.gnav__menu .sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; display: none; flex-direction: column; gap: 0; background: rgba(251,251,253,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 14px; padding: 8px 16px; box-shadow: var(--shadow); }
.gnav--dark .gnav__menu .sub-menu { background: rgba(22,22,23,.96); }
.gnav__menu li:hover > .sub-menu, .gnav__menu li:focus-within > .sub-menu { display: flex; }
.gnav__actions { display: flex; align-items: center; gap: 6px; }
.gnav__icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: inherit; opacity: .8; border-radius: 50%; transition: opacity .2s, background .2s; }
.gnav__icon:hover { opacity: 1; background: rgba(127,127,127,.12); }
.gnav__icon svg { width: 17px; height: 17px; fill: currentColor; }
.gnav__toggle { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; cursor: pointer; padding: 0; position: relative; }
.gnav__toggle span, .gnav__toggle span::before { position: absolute; left: 11px; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); content: ""; }
.gnav__toggle span { top: 16px; }
.gnav__toggle span::before { top: 7px; left: 0; }
.nav-open .gnav__toggle span { top: 19px; transform: rotate(45deg); }
.nav-open .gnav__toggle span::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) {
	.gnav__toggle { display: block; }
	.gnav__menu {
		position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0;
		background: var(--bg); color: var(--ink); padding: 20px clamp(28px, 8vw, 60px) 60px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.gnav--dark .gnav__menu { background: #000; color: #f5f5f7; }
	body.admin-bar .gnav__menu { top: calc(var(--nav-h) + 46px); }
	.nav-open .gnav__menu { opacity: 1; visibility: visible; transform: none; }
	.gnav__menu ul { flex-direction: column; gap: 0; }
	.gnav__menu a { font-size: clamp(24px, 6vw, 30px); font-weight: 600; letter-spacing: -.025em; padding: 10px 0; opacity: 1; }
	.gnav__menu .sub-menu { position: static; transform: none; display: flex; background: none; box-shadow: none; padding: 0 0 8px 14px; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.gnav__menu .sub-menu a { font-size: 19px; font-weight: 500; opacity: .75; }
	.nav-open { overflow: hidden; }
	.gnav__social { display: none; }
}
/* Menú compacto: se activa solo si los enlaces no caben en una línea */
html.nav-compact .gnav__toggle {display: block;}
html.nav-compact .gnav__menu {position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0;
		background: var(--bg); color: var(--ink); padding: 20px clamp(28px, 8vw, 60px) 60px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;}
html.nav-compact .gnav--dark .gnav__menu {background: #000; color: #f5f5f7;}
html.nav-compact body.admin-bar .gnav__menu {top: calc(var(--nav-h) + 46px);}
html.nav-compact .nav-open .gnav__menu {opacity: 1; visibility: visible; transform: none;}
html.nav-compact .gnav__menu ul {flex-direction: column; gap: 0;}
html.nav-compact .gnav__menu a {font-size: clamp(24px, 6vw, 30px); font-weight: 600; letter-spacing: -.025em; padding: 10px 0; opacity: 1;}
html.nav-compact .gnav__menu .sub-menu {position: static; transform: none; display: flex; background: none; box-shadow: none; padding: 0 0 8px 14px; -webkit-backdrop-filter: none; backdrop-filter: none;}
html.nav-compact .gnav__menu .sub-menu a {font-size: 19px; font-weight: 500; opacity: .75;}
html.nav-compact .nav-open {overflow: hidden;}
html.nav-compact .gnav__social {display: none;}

/* Sub-navegación local (micrositio, páginas de producto) */
.lnav {
	position: sticky; top: 0; z-index: 900; height: 52px;
	background: rgba(251,251,253,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0,0,0,.08);
}
body.admin-bar .lnav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .lnav { top: 46px; } }
.lnav__inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lnav__title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: inherit; white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.lnav__title img { height: 28px; width: auto; }
.lnav__links { display: flex; align-items: center; gap: 18px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lnav__links.is-overflow { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.lnav__links::-webkit-scrollbar { display: none; }
.lnav__links a { color: inherit; opacity: .78; font-size: 12px; white-space: nowrap; }
.lnav__links a:hover, .lnav__links a.is-active { opacity: 1; text-decoration: none; }
.lnav__links a.is-active { font-weight: 600; }
.lnav__cta { flex: 0 0 auto; }
@media (max-width: 760px) { .lnav__links { display: none; } }

/* =====================================================================
   5. HERO (tipo lanzamiento de producto)
   ===================================================================== */
.hero { position: relative; text-align: center; padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.hero--dark { background: #000; color: #f5f5f7; }
.hero__title { margin-bottom: 10px; }
.hero__sub { font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; max-width: 760px; margin: 0 auto; color: var(--ink-soft); }
.hero--dark .hero__sub { color: #a1a1a6; }
.hero__media { margin: clamp(40px, 6vw, 70px) auto 0; max-width: var(--wrap-wide); padding: 0 var(--gutter); }
.hero__media img, .hero__media video { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 8; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
@media (max-width: 700px) { .hero__media img, .hero__media video { aspect-ratio: 4 / 5; } }

/* Hero inmersivo a pantalla completa */
.hero-full { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #000; padding: 0 0 clamp(48px, 8vw, 96px); }
.hero-full__bg { position: absolute; inset: 0; }
.hero-full__bg img, .hero-full__bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--hs, 1.08)); transition: transform .1s linear; will-change: transform; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.8) 100%); }
.hero-full > .wrap { position: relative; z-index: 2; }
.hero-full .hero__sub { color: rgba(255,255,255,.88); }
.hero-full .link-more { color: #fff; }

/* =====================================================================
   6. BENTO / TILES
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.tile {
	position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-alt);
	padding: clamp(28px, 4vw, 48px); min-height: clamp(300px, 34vw, 520px);
	display: flex; flex-direction: column; isolation: isolate;
	grid-column: span 3; color: var(--ink);
	transition: transform .5s var(--ease);
}
.tile--full { grid-column: span 6; min-height: clamp(380px, 46vw, 640px); }
.tile--third { grid-column: span 2; }
.tile--wide { grid-column: span 4; }
.tile--dark { background: var(--tile-dark); color: #f5f5f7; }
.tile--brand { background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; }
.tile--accent { background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); color: var(--accent-ink); }
.tile--accent .link-more { color: var(--accent-ink) !important; }
.tile--center { text-align: center; align-items: center; }
.tile--bottom { justify-content: flex-end; }
.tile__media { position: absolute; inset: 0; z-index: -1; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile--photo { color: #fff; justify-content: flex-end; }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.tile--photo.tile--top { justify-content: flex-start; }
.tile--photo.tile--top::after { background: linear-gradient(0deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%); }
.tile__kicker { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.tile h3 { font-size: clamp(1.7rem, 3.3vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 8px; }
.tile p { font-size: clamp(1rem, 1.4vw, 1.2rem); opacity: .85; max-width: 32ch; }
.tile--center p { margin-left: auto; margin-right: auto; }
.tile .link-more { margin-top: auto; padding-top: 14px; }
.tile--photo .link-more, .tile--brand .link-more, .tile--accent .link-more { color: #fff; }
.tile__big { font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; margin: auto 0 6px; }
@media (max-width: 860px) {
	.bento { grid-template-columns: 1fr; }
	.tile, .tile--third, .tile--wide, .tile--full { grid-column: auto; min-height: 380px; }
}
@media (min-width: 861px) and (max-width: 1080px) {
	.tile--third { grid-column: span 3; }
}

/* Carrusel horizontal (scroll snap) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 360px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { position: relative; }
.rail-nav { display: flex; justify-content: flex-end; gap: 12px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(127,127,127,.16); color: inherit; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.rail-btn:hover { background: rgba(127,127,127,.28); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 480px; background: #111; color: #fff; padding: 30px; display: flex; flex-direction: column; isolation: isolate; box-shadow: var(--shadow); }
.rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.rail-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%); }
.rail-card:hover img { transform: scale(1.05); }
.rail-card__kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.rail-card h3 { font-size: 28px; margin: 6px 0 0; }
.rail-card p { margin-top: auto; margin-bottom: 0; font-size: 15px; opacity: .9; }
.rail-card a.stretched { position: absolute; inset: 0; z-index: 2; }

/* Cifras */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; text-align: center; }
.figure { min-width: 0; container-type: inline-size; }
.figure strong { display: block; font-size: clamp(2rem, 19cqi, 5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; padding-bottom: .06em; }
.figure span { color: var(--ink-soft); font-size: 17px; }
.section--dark .figure span { color: #a1a1a6; }

/* Features (icono + texto) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 50px); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h4 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); margin: 0; }
.section--dark .feature p { color: #a1a1a6; }

/* Testimonios */
.quote { background: var(--bg); border-radius: var(--r-lg); padding: 34px; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); color: var(--ink); }
.quote blockquote { margin: 0 0 24px; font-size: 21px; line-height: 1.38; letter-spacing: -.02em; font-weight: 500; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 44px; }
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote small { color: var(--ink-soft); }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 20px); margin: 28px 0 8px; flex-wrap: wrap; }
.countdown__unit { min-width: clamp(70px, 12vw, 120px); padding: 14px 10px; border-radius: var(--r); background: rgba(127,127,127,.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.countdown__unit b { display: block; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__unit span { display: block; margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.countdown--left { justify-content: flex-start; }
.countdown-done { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--brand-2); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rounded-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.rounded-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* Posts */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-card { background: var(--bg); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); color: var(--ink); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.12); text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; }
.post-card time { font-size: 13px; color: var(--ink-soft); }
.post-card h3 { font-size: 22px; margin: 6px 0 8px; }
.post-card p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.contact-list svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 22px; fill: currentColor; }
.form-card { background: var(--bg); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); color: var(--ink); }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card textarea, .form-card select,
.entry input[type=text], .entry input[type=email], .entry input[type=tel], .entry textarea, .entry select {
	width: 100% !important; max-width: 100% !important; padding: 14px 16px !important; border: 1px solid #d2d2d7 !important; border-radius: 12px !important;
	font: 17px var(--font-body) !important; background: #fff !important; color: var(--ink) !important; transition: border .2s, box-shadow .2s;
}
.form-card input:focus, .form-card textarea:focus, .entry input:focus, .entry textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent) !important; outline: none; }
.form-card button[type=submit], .form-card input[type=submit], .form-card .wpforms-submit, .entry .wpforms-submit {
	background: var(--brand) !important; color: #fff !important; border: 0 !important; border-radius: 980px !important; padding: 14px 30px !important; font: 500 17px var(--font-body) !important; cursor: pointer;
}

/* Social */
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(127,127,127,.14); color: inherit; transition: background .2s, transform .2s; }
.social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* =====================================================================
   7. PÁGINAS INTERIORES
   ===================================================================== */
.page-head { text-align: center; padding: clamp(60px, 9vw, 120px) 0 clamp(30px, 4vw, 50px); }
.page-head h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); margin-bottom: 12px; }
.page-head .lead { max-width: 720px; margin: 0 auto; }
.page-cover { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--gutter); }
.page-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); }
.entry { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) var(--gutter) clamp(60px, 9vw, 110px); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.entry--wide { max-width: var(--wrap); }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 1.5em; }
.entry h3 { margin-top: 1.4em; }
.entry blockquote { margin: 1.6em 0; padding: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.entry img { border-radius: var(--r); }
.entry figure { margin: 2em 0; }
.entry figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry .wp-block-button__link { background: var(--brand); border-radius: 980px; padding: 12px 26px; }
.entry .alignwide { max-width: var(--wrap); width: calc(100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }
.entry .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry .wp-block-image.alignfull img { border-radius: 0; }
.canvas { padding: 30px 0 80px; }
.post-meta { color: var(--ink-soft); font-size: 15px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 980px; background: var(--bg-alt); color: var(--ink); font-weight: 500; }
.pagination .current { background: var(--ink); color: #fff; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.search-form input[type=search] { flex: 1; min-height: 50px; padding: 0 20px; border-radius: 980px; border: 1px solid #d2d2d7; font: inherit; }
.error-code { font-size: clamp(7rem, 22vw, 14rem); font-weight: 800; letter-spacing: -.07em; line-height: .9; }

/* =====================================================================
   8. FOOTER (tipo Apple)
   ===================================================================== */
.gfoot { background: var(--bg-alt); color: var(--ink-soft); font-size: 13px; line-height: 1.5; padding: 40px 0 26px; }
.gfoot--dark { background: #0b0b0c; color: #86868b; }
.gfoot__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(127,127,127,.25); }
@media (max-width: 860px) { .gfoot__cols { grid-template-columns: 1fr 1fr; } .gfoot__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .gfoot__cols { grid-template-columns: 1fr; } }
.gfoot h4 { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.gfoot--dark h4 { color: #f5f5f7; }
.gfoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gfoot a { color: inherit; }
.gfoot a:hover { color: var(--ink); }
.gfoot--dark a:hover { color: #f5f5f7; }
.gfoot__brand { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.gfoot--dark .gfoot__brand { color: #f5f5f7; }
.gfoot__brand img { height: 52px; width: auto; }
.gfoot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; }
.gfoot .social { margin-top: 16px; }

.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 800; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.22); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* =====================================================================
   9. ANIMACIONES AL HACER SCROLL
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal, .js .reveal-scale { opacity: 1; transform: none; transition: none; }
	.hero-full__bg img { transform: none !important; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* WordPress core */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--ink-soft); }
.sticky, .bypostauthor { outline: 0; }

/* =====================================================================
   10. PORTADA SKY — piezas específicas
   ===================================================================== */
/* Brillo neón lima (el manual pide el lima con desenfoque gaussiano) */
.hero-full__glow { position: absolute; z-index: 1; left: 50%; bottom: -120px; width: min(900px, 120vw); height: 240px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); filter: blur(40px); opacity: .55; pointer-events: none; }
.neon { color: var(--accent); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.neon-bar { display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 70%, transparent); margin: 0 0 22px; }

.headline--row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: none; text-align: left; }
.headline--row h2 { margin: 0; }

.tile__art { margin: auto auto 0; max-height: 220px; width: auto; object-fit: contain; }
.tile--brand { background: var(--grad); }

/* Misión y visión */
.mv { margin: 34px 0 0; display: grid; gap: 26px; }
.mv__item { border-left: 3px solid var(--brand-2); padding-left: 20px; }
.mv dt { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 6px; }
.mv dd { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; letter-spacing: -.015em; color: #e8e8ed; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--bg); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.pillar:hover { transform: translateY(-4px); }
.pillar__icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; margin-bottom: 18px; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h4 { font-size: 22px; margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--ink-soft); }

/* Cinta animada */
.marquee-sec__title { text-align: center; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink-soft); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 14px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.5rem); padding: 14px 26px; border-radius: 980px; background: var(--bg-alt); color: var(--ink); }
.marquee__item:nth-child(3n+2) { background: var(--brand); color: #fff; }
.marquee__item:nth-child(3n) { background: color-mix(in srgb, var(--brand-2) 22%, #fff); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* Rail de frases */
.rail-card h3 { margin-top: auto; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.rail-card::after { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%); }

/* Destacado VillaRun en la portada */
.vr-spot { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--vr-dark, #1f2224); color: #fff; min-height: clamp(520px, 52vw, 720px); display: flex; align-items: flex-end; isolation: isolate; }
.vr-spot__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vr-spot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,22,24,.94) 0%, rgba(20,22,24,.7) 45%, rgba(0,113,120,.15) 100%); }
.vr-spot::after { content: ""; position: absolute; right: -6%; top: 8%; width: clamp(160px, 26vw, 360px); aspect-ratio: 1; border-radius: 50%; background: var(--vr-orange, #f35c03); opacity: .9; z-index: -1; mix-blend-mode: screen; filter: saturate(1.1); }
.vr-spot__body { padding: clamp(28px, 5vw, 64px); max-width: 640px; }
.vr-spot__kicker { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 18px; }
.vr-spot__logo { width: clamp(220px, 32vw, 380px); height: auto; margin-bottom: 18px; }
.vr-spot__meta { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.85); }
.vr-spot__dist { list-style: none; margin: 0 0 6px; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.vr-spot__dist li { font-family: "Unbounded", var(--font-display); font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 980px; background: var(--vr-aqua, #007178); }
.vr-spot__dist li:nth-child(2) { background: var(--vr-orange, #f35c03); }
.vr-spot .countdown__unit { background: rgba(255,255,255,.1); }
.vr-spot .link-more { color: #fff; }
.btn--vr { --b: var(--vr-orange, #f35c03); color: #fff; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.btn svg { width: 20px; height: 20px; }

/* Barra clara con logo a color: más contraste en el menú */
.gnav__brand img { height: 32px; }
@media (max-width: 480px) { .gnav__brand img { height: 28px; } }
.search-form .btn { min-height: 50px; width: 50px; padding: 0; }
.topo-dark { overflow: hidden; }
.tile--photo .link-more { margin-top: 0; }
.tile--photo h3, .tile--photo p { text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.vr-spot .countdown { flex-wrap: nowrap; gap: 10px; }
.vr-spot .countdown__unit { min-width: 0; flex: 0 1 92px; padding: 12px 6px; }
.vr-spot .countdown__unit b { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero-full .eyebrow, .hero-full h1, .hero-full .hero__sub { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-full .eyebrow { color: #fff; opacity: .92; }

/* El desenfoque de la barra crea un contenedor para elementos fijos y recortaba
   el menú abierto: al abrirlo se quita el desenfoque y la barra queda sólida. */
.nav-open .gnav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.nav-open .gnav--dark { background: #000; }
