/* ==========================================================================
   CEOE-CEPYME Cantabria · Formación y Empleo — Hoja de estilos
   Marca: Teal CEOE #2f8897 · Naranja #ff6633 · Gris logotipo #4a4a49
   ========================================================================== */

:root {
  --brand: #1f6f7d;
  --brand-800: #185764;
  --brand-900: #0f3d47;
  --brand-950: #08252c;
  --teal: #2f8897;
  --teal-300: #60bdcd;
  --teal-400: #3daec1;
  --orange: #ff6633;
  --orange-600: #d9441a;
  --orange-100: #ffece5;
  --cream: #f2f7f8;
  --paper: #ffffff;
  --ink: #1c2b2e;
  --gray-logo: #4a4a49;
  --muted: #4f5f63;
  --muted-light: rgba(255, 255, 255, 0.72);
  --line: rgba(31, 111, 125, 0.16);
  --line-light: rgba(255, 255, 255, 0.16);

  --ff-sans: "Montserrat", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 20px 60px -20px rgba(15, 61, 71, 0.35);
  --shadow-sm: 0 6px 24px -10px rgba(15, 61, 71, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
em, .serif { font-style: normal; font-weight: 300; letter-spacing: -0.02em; color: var(--orange-600); }
.on-dark em, .hero em, .path em, .page-hero em, .hscroll em, .pie em, .biz-card.is-dark em, .site-footer em, .mf-body em { color: var(--orange); }
::selection { background: var(--orange); color: #fff; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.ico-sm { width: 1em; height: 1em; }
.ico-xs { width: 0.8em; height: 0.8em; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-600);
}
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .hscroll .eyebrow, .pie .eyebrow, .biz-card.is-dark .eyebrow, .path .eyebrow { color: var(--orange); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 0 -1px currentColor, 26px 0 0 -2px currentColor; margin-right: 26px; }
.h-display { font-weight: 900; font-size: clamp(44px, 8vw, 118px); line-height: 0.95; letter-spacing: -0.035em; }
.h-xl { font-size: clamp(36px, 5.4vw, 76px); letter-spacing: -0.03em; }
.h-lg { font-size: clamp(30px, 3.8vw, 54px); }
.h-md { font-size: clamp(22px, 2.2vw, 30px); }
.h-xl em, .h-lg em, .h-display em { color: var(--orange-600); }
.hero .h-display em, .page-hero .h-display em, .on-dark .h-xl em, .hscroll .h-xl em, .pie .h-xl em, .biz-card.is-dark em { color: var(--orange); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 60ch; }
.on-dark .lead, .on-dark p { color: var(--muted-light); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section-head .h-xl, .section-head .h-lg { margin-top: 18px; max-width: 16ch; }
.section-head > .lead { max-width: 44ch; margin: 0; }
html { overflow-x: clip; }
.on-dark { background: var(--brand-950); color: #fff; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--brand); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  background: var(--bg); color: var(--fg); border: 1.5px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn .ico { transition: transform 0.4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.18); transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::after { transform: translateY(0); }
.btn-primary { --bg: var(--orange); --fg: var(--brand-950); box-shadow: 0 12px 30px -12px rgba(255, 102, 51, 0.7); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 102, 51, 0.8); transform: translateY(-2px); }
.btn-navy { --bg: var(--brand); }
.btn-ghost-light { --bg: transparent; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow .ico { transition: transform 0.4s var(--ease); }
.link-arrow:hover .ico { transform: translate(3px, -3px); }
.on-dark .link-arrow { color: #fff; }

/* ==========================================================================
   Cabecera + mega menú
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background 0.4s, color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; transition: height 0.4s var(--ease); }
.brand { display: flex; align-items: center; gap: 14px; flex: none; position: relative; }
.brand .logo { height: 54px; width: auto; transition: height 0.4s var(--ease), opacity 0.3s; }
.brand .logo-dark { position: absolute; left: 0; top: 0; opacity: 0; }
.brand-tag { font-size: 11.5px; line-height: 1.2; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid currentColor; opacity: 0.85; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav li > button, .main-nav li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: background 0.3s;
}
.main-nav li > button .ico { transition: transform 0.4s var(--ease); opacity: 0.7; }
.main-nav li.is-open > button .ico { transform: rotate(180deg); }
.main-nav li > button:hover, .main-nav li.is-open > button, .main-nav li > a:hover { background: rgba(255,255,255,0.12); }
.main-nav li.is-current > button, .main-nav li.is-current > a { color: var(--orange); }
.site-header.is-scrolled .main-nav li.is-current > button, .site-header.mega-open .main-nav li.is-current > button, .site-header.is-scrolled .main-nav li.is-current > a { color: var(--orange-600); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); transition: background 0.3s, border-color 0.3s; }
.icon-btn:hover { background: rgba(255,255,255,0.12); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; border: 1px solid var(--line-light); }
.burger .ico { width: 22px; height: 22px; }

.site-header.is-scrolled, .site-header.mega-open { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--brand); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled .header-row { height: 70px; }
.site-header.is-scrolled .brand .logo { height: 44px; }
.site-header.is-scrolled .logo-light, .site-header.mega-open .logo-light { opacity: 0; }
.site-header.is-scrolled .logo-dark, .site-header.mega-open .logo-dark { opacity: 1; }
.site-header.is-scrolled .main-nav li > button:hover, .site-header.mega-open .main-nav li.is-open > button, .site-header.is-scrolled .main-nav li > a:hover, .site-header.mega-open .main-nav li > button:hover { background: rgba(31,111,125,0.07); }
.site-header.is-scrolled .icon-btn, .site-header.mega-open .icon-btn, .site-header.is-scrolled .burger { border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.mega-wrap { position: absolute; left: 0; right: 0; top: 100%; }
.mega {
  position: absolute; left: 0; right: 0; top: 0; background: #fff; color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(15,61,71,0.35);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s 0.35s;
  clip-path: inset(0 0 100% 0);
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), clip-path 0.6s var(--ease); }
.mega-inner { display: grid; grid-template-columns: 1fr 300px; gap: 20px 40px; padding-top: 28px; padding-bottom: 36px; }
.mega-intro { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mega-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.mega-cols { display: grid; gap: 24px; }
.mega-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-cols.cols-1 { grid-template-columns: repeat(2, 1fr); }
.mega-cols.cols-1 .mega-col { display: contents; }
.mega-cols.cols-1 h4 { grid-column: 1 / -1; }
.mega-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin-bottom: 10px; padding-left: 12px; }
.mm-link { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; transition: background 0.25s; }
.mm-link:hover { background: var(--cream); }
.mm-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,111,125,0.06); color: var(--brand); flex: none; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.mm-link:hover .mm-ico { background: var(--orange); color: var(--brand-950); }
.mm-txt strong { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--brand); line-height: 1.3; }
.mm-txt small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.mega-feature { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--brand); color: #fff; position: relative; min-height: 280px; }
.mf-img { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand), var(--brand-950)); }
.mf-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1.2s var(--ease); }
.mega-feature:hover .mf-img img { transform: scale(1.06); }
.mf-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(8,37,44,0.92)); }
.mf-body { position: relative; margin-top: auto; padding: 22px; display: grid; gap: 6px; }
.mf-kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.mf-body strong { font-size: 19px; line-height: 1.25; }
.mf-body small { color: rgba(255,255,255,0.7); }
.mf-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 8px; font-size: 14px; }
.mega-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8,37,44,0.4); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mega-scrim.is-on { opacity: 1; pointer-events: auto; }

/* Menú móvil */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--brand-950); color: #fff; display: flex; flex-direction: column; padding: 16px var(--gutter) 24px; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path 0.8s var(--ease); overflow-y: auto; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mm-top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.mm-top .logo { height: 44px; }
.mobile-menu .burger { display: grid; }
.mm-body { flex: 1; padding: 24px 0; }
.mm-group { border-bottom: 1px solid var(--line-light); }
.mm-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 30px; font-weight: 700; padding: 16px 0; cursor: pointer; letter-spacing: -0.02em; }
.mm-group summary::-webkit-details-marker { display: none; }
.mm-group[open] summary { color: var(--orange); }
.mm-group[open] summary .ico { transform: rotate(180deg); }
.mm-items { padding-bottom: 16px; }
.mobile-menu .mm-link:hover { background: rgba(255,255,255,0.06); }
.mobile-menu .mm-ico { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu .mm-txt strong { color: #fff; }
.mobile-menu .mm-txt small { color: var(--muted-light); }
.mm-plain { display: block; font-size: 30px; font-weight: 700; padding: 16px 0; letter-spacing: -0.02em; }
.mm-foot { display: grid; gap: 10px; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 500; background: var(--brand-950); display: grid; place-items: center; color: #fff; }
.preloader-inner { display: grid; justify-items: center; gap: 20px; }
.preloader .pre-logo { width: min(280px, 60vw); height: auto; }
.preloader svg circle.o { fill: var(--orange); }
.preloader svg circle { fill: var(--teal-300); transform-box: fill-box; transform-origin: center; }
.preloader-count { font-size: 13px; letter-spacing: 0.3em; font-weight: 700; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.no-js .preloader, .preloader.is-done { display: none; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 75% 40%, #1d6573 0%, var(--brand-900) 38%, var(--brand-950) 75%);
  color: #fff; padding: calc(var(--header-h) + 24px) 0 100px;
}
.hero-badges { margin-top: 32px !important; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-glow { position: absolute; width: 60vw; height: 60vw; right: -10vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, rgba(96,189,205,0.28), transparent 60%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero h1 { margin: 22px 0 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { color: rgba(255,255,255,0.75); max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,0.09); border: 1px solid var(--line-light); }
.badge .ico { color: var(--orange); }
.hero .h-display { font-size: clamp(44px, 7.2vw, 108px); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 96px; z-index: 2; display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--orange), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.hero-ticker { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; border-top: 1px solid var(--line-light); background: rgba(8,37,44,0.88); }
.ticker-row { display: flex; align-items: stretch; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 24px; background: var(--orange); color: var(--brand-950); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.ticker-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-950); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 20px 32px; border-right: 1px solid var(--line-light); white-space: nowrap; font-size: 14.5px; }
.ticker-item strong { font-weight: 700; }
.ticker-item span { color: rgba(255,255,255,0.6); }
.ticker-item .tag { color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Marquesina de valores ---------- */
.marquee-band { background: var(--orange); color: var(--brand-950); overflow: hidden; padding: 22px 0; transform: rotate(-1.5deg) scale(1.03); margin: -18px 0; position: relative; z-index: 5; box-shadow: 0 20px 50px -20px rgba(255,102,51,0.6); }
.marquee-band .track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-band span { font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-band span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-950); }
.marquee-band em { font-size: 1.1em; color: #fff; }

/* ---------- Manifiesto (texto que se ilumina) ---------- */
.manifesto { background: var(--cream); padding: clamp(120px, 16vw, 220px) 0; }
.manifesto-text { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; max-width: 22ch; color: var(--brand); }
.manifesto-text .w { opacity: 0.14; transition: opacity 0.2s; }
.manifesto-text em { color: var(--orange); }
.manifesto-sign { display: flex; align-items: center; gap: 16px; margin-top: 48px; color: var(--muted); font-size: 15px; }
.manifesto-sign img { height: 56px; }

/* ---------- Dos caminos: Aprende / Trabaja ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path {
  position: relative; min-height: clamp(520px, 70vh, 720px); border-radius: var(--r-lg); overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px);
  background: var(--brand); isolation: isolate;
}
.path-bg { position: absolute; inset: -8% 0; z-index: -2; background: linear-gradient(140deg, var(--brand), var(--brand-950)); }
.path-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter 1s; filter: saturate(0.85); }
.path:hover .path-bg img { transform: scale(1.06); filter: saturate(1.05); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,37,44,0.05) 0%, rgba(8,37,44,0.55) 45%, rgba(8,37,44,0.95) 100%); }
.path.is-orange::before { background: linear-gradient(180deg, rgba(110,40,15,0.05) 0%, rgba(70,25,8,0.5) 45%, rgba(35,12,4,0.92) 100%); }
.path-num { position: absolute; top: clamp(28px, 4vw, 48px); left: clamp(28px, 4vw, 56px); font-weight: 300; font-size: 22px; opacity: 0.85; }
.path-tag { position: absolute; top: clamp(28px, 4vw, 48px); right: clamp(28px, 4vw, 48px); }
.path h3 { font-size: clamp(56px, 8vw, 120px); letter-spacing: -0.045em; line-height: 0.9; }
.path h3 em { color: var(--orange); }
.path.is-orange h3 em { color: #ffc2ad; }
.path p { color: rgba(255,255,255,0.8); max-width: 44ch; margin: 18px 0 24px; }
.path-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.path-list li { list-style: none; }
.path ul { padding: 0; margin: 0 0 28px; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 0 0; border-right: 1px solid var(--line); padding-left: 28px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(52px, 6vw, 92px); font-weight: 700; letter-spacing: -0.04em; color: var(--brand); line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat-num small { font-size: 0.4em; color: var(--orange-600); font-weight: 700; letter-spacing: -0.02em; }
.stat p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 24ch; }

/* ---------- Cursos: scroll horizontal ---------- */
.hscroll { background: var(--brand-950); color: #fff; overflow: hidden; position: relative; }
.hscroll-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) 0 60px; }
.hscroll .section-head { margin-bottom: 44px; }
.hscroll-track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hscroll-progress { margin: 44px var(--gutter) 0; height: 2px; background: var(--line-light); border-radius: 2px; overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.no-pin .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.no-pin .hscroll-track::-webkit-scrollbar { display: none; }
.no-pin .hscroll-progress { display: none; }
.no-pin .hscroll-track > * { scroll-snap-align: start; }

/* Tarjeta de curso */
.course-card {
  width: clamp(290px, 28vw, 400px); flex: none; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; position: relative; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--brand), #2f8897); display: grid; place-items: center; }
.cc-media .ico-fallback { width: 64px; height: 64px; color: rgba(255,255,255,0.35); position: absolute; }
.cc-media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.course-card:hover .cc-media img { transform: scale(1.07); }
.cc-status { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--brand); }
.cc-status i { width: 7px; height: 7px; border-radius: 50%; background: #1fa95b; }
.cc-status.is-running i { background: var(--orange-600); }
.cc-status.is-soon i { background: #8a96b3; }
.cc-free { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--orange); color: var(--brand-950); letter-spacing: 0.04em; }
.cc-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cc-code { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.cc-code .ico { color: var(--orange-600); }
.cc-body h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; color: var(--brand); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.cc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cc-meta .ico { width: 15px; height: 15px; color: var(--brand); }
.cc-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 24px 22px; }
.cc-colectivo { font-size: 12.5px; font-weight: 700; color: var(--brand); background: rgba(31,111,125,0.07); padding: 6px 10px; border-radius: 8px; }
.cc-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transition: background 0.3s, transform 0.5s var(--ease); }
.course-card:hover .cc-go { background: var(--orange); transform: rotate(-45deg); }
.course-card .stretched { position: absolute; inset: 0; z-index: 3; }
.hscroll-end { width: clamp(260px, 22vw, 320px); flex: none; border-radius: var(--r-lg); border: 1.5px dashed rgba(255,255,255,0.25); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 32px; transition: border-color 0.3s, background 0.3s; }
.hscroll-end:hover { border-color: var(--orange); background: rgba(255,102,51,0.06); }
.hscroll-end strong { font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }

/* ---------- Temáticas ---------- */
.topics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.topic { aspect-ratio: 1; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease), border-color 0.4s; position: relative; overflow: hidden; }
.topic::before { content: ""; position: absolute; width: 180%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); left: 50%; top: 120%; transform: translate(-50%, 0) scale(0); transition: transform 0.7s var(--ease); z-index: 0; }
.topic:hover::before { transform: translate(-50%, -55%) scale(1); }
.topic > * { position: relative; z-index: 1; }
.topic .ico { width: 34px; height: 34px; color: var(--orange-600); transition: transform 0.6s var(--ease); }
.topic:hover .ico { color: var(--orange); transform: scale(1.15) rotate(-8deg); }
.topic strong { font-size: 16px; line-height: 1.2; color: var(--brand); transition: color 0.4s; }
.topic:hover strong { color: #fff; }

/* ---------- Programa Integrado (bloque cinematográfico) ---------- */
.pie { position: relative; min-height: 100vh; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--brand-950); }
.pie-media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(8% 8% 8% 8% round 32px); }
.pie-media img { width: 100%; height: 120%; object-fit: cover; transform: translateY(-8%); }
.pie-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,37,44,0.92) 0%, rgba(8,37,44,0.6) 50%, rgba(8,37,44,0.2) 100%), linear-gradient(0deg, rgba(8,37,44,0.9), transparent 50%); }
.pie .container { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 100px; }
.pie-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.pie h2 { margin: 20px 0 24px; }
.pie-big { font-size: clamp(110px, 16vw, 240px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.8; color: var(--orange); display: flex; align-items: flex-start; }
.pie-big small { font-size: 0.35em; margin-top: 0.12em; }
.pie-big-cap { font-size: 15px; color: rgba(255,255,255,0.75); max-width: 30ch; margin-top: 16px; }
.pie-tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.pie-track { padding: 20px; border-radius: var(--r); background: rgba(255,255,255,0.08); border: 1px solid var(--line-light); display: grid; gap: 12px; transition: background 0.3s, transform 0.5s var(--ease); }
.pie-track:hover { background: rgba(255,102,51,0.16); transform: translateY(-4px); }
.pie-track .ico { width: 30px; height: 30px; color: var(--orange); }
.pie-track strong { font-size: 17px; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps-line { position: absolute; top: 34px; left: 34px; right: 34px; height: 2px; background: var(--line); }
.steps-line i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.step { position: relative; }
.step-dot { width: 68px; height: 68px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--brand); position: relative; z-index: 1; margin-bottom: 26px; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.step.is-active .step-dot { background: var(--orange); color: var(--brand-950); border-color: var(--orange); }
.step-dot .ico { width: 28px; height: 28px; }
.step small { font-weight: 300; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-600); }
.step h3 { font-size: 24px; margin: 6px 0 10px; color: var(--brand); }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Empresas ---------- */
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.biz-card { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); background: var(--paper); border: 1px solid var(--line); }
.biz-card.is-dark { background: var(--brand); color: #fff; border: 0; position: relative; overflow: hidden; }
.biz-card.is-dark::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,102,51,0.35), transparent 65%); }
.biz-card h3 { font-size: clamp(28px, 3vw, 42px); margin: 16px 0; }
.biz-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.biz-list li { display: flex; gap: 14px; align-items: flex-start; }
.biz-list .ico { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.biz-card.is-dark p, .biz-card.is-dark li { color: rgba(255,255,255,0.82); }
.offers { display: grid; gap: 10px; margin: 24px 0 28px; }
.offer { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--cream); transition: background 0.3s, transform 0.4s var(--ease); }
.offer:hover { background: var(--orange-100); transform: translateX(4px); }
.offer-date { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.1; }
.offer-date b { display: block; font-size: 24px; color: var(--brand); letter-spacing: -0.03em; }
.offer strong { color: var(--brand); display: block; line-height: 1.3; }
.offer small { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.offer .ico { color: var(--orange-600); }

/* ---------- Noticias ---------- */
.news { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 16px; }
.news-card .nc-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand), #2f8897); }
.news-card:first-child .nc-img { aspect-ratio: 16 / 11; }
.news-card .nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .nc-img img { transform: scale(1.06); }
.nc-meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.nc-meta b { color: var(--orange-600); }
.news-card h3 { font-size: 21px; line-height: 1.25; color: var(--brand); letter-spacing: -0.015em; }
.news-card:first-child h3 { font-size: 28px; }
.news-card p { color: var(--muted); font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: clamp(100px, 14vw, 200px) 0; text-align: center; }
.cta-final h2 { font-size: clamp(44px, 8vw, 128px); letter-spacing: -0.045em; line-height: 0.92; max-width: 14ch; margin: 22px auto 30px; }
.cta-final h2 em { color: var(--orange); }
.cta-final p { max-width: 52ch; margin: 0 auto 40px; color: rgba(255,255,255,0.92); font-size: 19px; }
.cta-final .eyebrow { color: #fff; }
.cta-final .btn-primary:hover { transform: translateY(-2px); }
.cta-final .btn-ghost-light { border-color: rgba(255,255,255,0.6); }
.cta-dots { position: absolute; inset: 0; pointer-events: none; opacity: 0.18; background-image: radial-gradient(circle, #fff 2px, transparent 2.5px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.alert-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 20px 50px -20px rgba(15,61,71,0.5); }
.alert-form input { flex: 1; border: 0; outline: 0; padding: 0 20px; font: inherit; font-size: 16px; background: transparent; color: var(--ink); min-width: 0; }
.alert-done { margin: 0 auto !important; padding: 12px 20px; color: var(--brand) !important; font-weight: 700; font-size: 16px !important; display: flex; gap: 10px; align-items: center; }
.alert-done .ico { color: #1fa95b; }
.alert-note { font-size: 13px !important; margin-top: 14px !important; opacity: 0.85; }

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer { background: var(--brand-950); color: #fff; padding: 100px 0 30px; position: relative; overflow: hidden; }
.footer-dots { position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; opacity: 0.08; background-image: radial-gradient(circle, var(--orange) 4px, transparent 4.5px); background-size: 28px 28px; mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid var(--line-light); position: relative; }
.footer-brand .logo { height: 84px; margin-bottom: 24px; }
.footer-brand p { color: var(--muted-light); font-size: 15px; max-width: 42ch; }
.social { display: flex; gap: 8px; margin-top: 24px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background 0.3s, border-color 0.3s; }
.social a:hover { background: var(--orange); border-color: var(--orange); }
.social .ico { width: 18px; height: 18px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--orange); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted-light); padding: 5px 0; font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact p { display: flex; gap: 10px; color: var(--muted-light); font-size: 15px; margin-bottom: 12px; }
.footer-contact .ico { color: var(--orange); margin-top: 4px; }
.footer-contact a { display: inline; padding: 0; }
.footer-funders { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-light); font-size: 13px; color: var(--muted-light); }
.footer-funders strong { font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: 13px; color: var(--muted-light); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--header-h) + 90px) 0 90px; background: radial-gradient(120% 100% at 80% 30%, #1d6573 0%, var(--brand-900) 45%, var(--brand-950) 85%); min-height: 70vh; display: flex; align-items: flex-end; }
.page-hero .hero-canvas { opacity: 0.85; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 20px 0 24px; max-width: 15ch; }
.page-hero .lead { color: rgba(255,255,255,0.75); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 115%; object-fit: cover; opacity: 0.35; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-950) 10%, rgba(8,37,44,0.5) 70%, rgba(8,37,44,0.3)), linear-gradient(0deg, var(--brand-950), transparent 50%); }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.6); }
.crumbs a:hover { color: #fff; }

/* Filtros de cursos */
.filters-bar { position: sticky; top: 70px; z-index: 40; background: rgba(246,243,236,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 12px; align-items: center; padding: 16px 0; flex-wrap: wrap; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; height: 50px; }
.search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 15.5px; background: transparent; min-width: 0; }
.search .ico { color: var(--muted); }
.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background 0.3s, color 0.3s; white-space: nowrap; }
.seg button.is-on { background: var(--brand); color: #fff; }
.select { height: 50px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 40px 0 18px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--brand); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f7d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.results-info { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 24px; color: var(--muted); font-size: 15px; }
.results-info strong { color: var(--brand); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course-grid .course-card { width: auto; border: 1px solid var(--line); }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty .ico { width: 48px; height: 48px; color: var(--orange); margin: 0 auto 16px; display: block; }

/* Modal / panel de curso */
.drawer { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: flex-end; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(8,37,44,0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.5s; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { position: relative; width: min(620px, 100%); height: 100%; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform 0.7s var(--ease); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-media { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, var(--brand), #2f8897); overflow: hidden; }
.drawer-media img { width: 100%; height: 100%; object-fit: cover; }
.drawer-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow-sm); }
.drawer-body { padding: 32px clamp(20px, 4vw, 40px) 40px; }
.drawer-body h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--brand); margin: 12px 0 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 28px 0; }
.fact { background: #fff; padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.fact .ico { color: var(--orange-600); }
.fact small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.fact strong { color: var(--brand); font-size: 15.5px; }
.drawer-ctas { display: grid; gap: 10px; }

/* Contenido genérico de páginas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(135deg, var(--brand), #2f8897); position: relative; }
.split-media img { width: 100%; height: 115%; object-fit: cover; }
.float-card { position: absolute; left: 24px; bottom: 24px; right: 24px; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-radius: var(--r); padding: 20px; display: flex; gap: 16px; align-items: center; }
.float-card .big { font-size: 46px; font-weight: 700; color: var(--orange-600); letter-spacing: -0.04em; line-height: 1; }
.float-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .ck { width: 28px; height: 28px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.checklist .ck .ico { width: 16px; height: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card .fc-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 24px; }
.feature-card .fc-ico .ico { width: 28px; height: 28px; }
.feature-card h3 { font-size: 23px; color: var(--brand); margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.on-dark .feature-card { background: rgba(255,255,255,0.05); border-color: var(--line-light); }
.on-dark .feature-card h3 { color: #fff; }
.on-dark .feature-card .fc-ico { background: var(--orange); color: var(--brand-950); }

/* Formulario */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); outline: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,111,125,0.08); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--orange); }
.form-ok { display: none; padding: 16px 18px; border-radius: 14px; background: #e8f7ee; color: #146c3c; font-weight: 600; }
.form.is-sent .form-ok { display: block; }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.contact-card:hover { border-color: var(--orange); transform: translateX(4px); }
.contact-card .cc-i { width: 50px; height: 50px; border-radius: 14px; background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.contact-card strong { font-size: 18px; color: var(--brand); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 420px; background: #dfe4ee; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.6) contrast(1.05); }

/* ==========================================================================
   Animaciones (solo se ocultan si GSAP está listo)
   ========================================================================== */
.anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.anim [data-reveal="fade"] { transform: none; }
.anim [data-reveal="scale"] { transform: scale(0.94); }
.anim .hero [data-hero] { opacity: 0; }
.anim .hero h1 .line > span { transform: translateY(110%); }

/* Cursor de seguimiento (solo escritorio) */
.cursor { position: fixed; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--orange); color: #fff; z-index: 400; pointer-events: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transform: scale(0); transition: transform 0.4s var(--ease); }
.cursor.is-on { transform: scale(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .mega-inner { grid-template-columns: 1fr 260px; }
  .topics { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .main-nav, .header-actions .btn, .header-actions .icon-btn, .mega-wrap { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
  .paths, .biz, .split, .pie-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .pie-tracks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps-line { display: none; }
  .news { grid-template-columns: 1fr 1fr; }
  .news-card:first-child { grid-column: 1 / -1; }
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand .logo { height: 44px; }
  .brand-tag { display: none; }
  .hero { padding-bottom: 120px; }
  .hero-scroll { display: none; }
  .ticker-label { padding: 0 14px; font-size: 11px; }
  .ticker-item { padding: 16px 20px; font-size: 13.5px; }
  .hero-ctas .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .steps, .news, .pie-tracks { grid-template-columns: 1fr; }
  .offer { grid-template-columns: auto 1fr; }
  .offer > .ico { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .alert-form { flex-direction: column; border-radius: 22px; }
  .alert-form input { padding: 14px 16px; }
  .seg { overflow-x: auto; max-width: 100%; }
  .filters-bar { top: 70px; }
  .path { min-height: 480px; }
  .pie-media { clip-path: none !important; }
}

/* Animaciones desactivadas por el usuario (botón en el pie) */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-light); font-size: 13px; }
.motion-toggle:hover { color: #fff; }
.motion-toggle i { width: 30px; height: 18px; border-radius: 99px; background: var(--orange); position: relative; transition: background 0.3s; }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.3s; }
html.motion-off .motion-toggle i { background: rgba(255,255,255,0.25); }
html.motion-off .motion-toggle i::after { left: 2px; }

/* ==========================================================================
   Agenda de actividades
   ========================================================================== */
.agenda { display: grid; border-top: 1px solid var(--line); }
.agenda-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), background 0.3s; }
.agenda-item:hover { padding-left: 16px; padding-right: 16px; background: var(--paper); }
.agenda-date { line-height: 1; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.agenda-date b { display: block; font-size: 44px; letter-spacing: -0.04em; color: var(--brand); margin-bottom: 4px; }
.agenda-body .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 6px; }
.agenda-body h3 { font-size: clamp(19px, 2vw, 25px); color: var(--brand); }
.agenda-body p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.agenda-go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transition: background 0.3s, color 0.3s, transform 0.5s var(--ease); }
.agenda-item:hover .agenda-go { background: var(--orange); color: var(--brand-950); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--brand); transition: background 0.3s, color 0.3s; }
.chip.is-on, .chip:hover { background: var(--brand); color: #fff; }
.card-link-list { display: grid; gap: 10px; margin: 24px 0 28px; }
@media (max-width: 680px) {
  .agenda-item { grid-template-columns: 70px 1fr; gap: 16px; }
  .agenda-go { display: none; }
  .agenda-date b { font-size: 32px; }
}
