/* ==========================================================================
   UROIMA — hoja de estilos
   1. Tokens · 2. Base · 3. Cabecera · 4. Home · 5. Páginas interiores
   6. Componentes · 7. Formulario · 8. Pie · 9. Animaciones · 10. Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #091016;
  --bg-soft: #0c1a26;
  --bg-hover: #0b2740;
  --blue: #0090ff;
  --blue-bright: #14a4f5;
  --blue-line: #2a9bf2;
  --sky: #8ec5e8;
  --blue-soft: #55b8ff;
  --sky-text: #9fd0f0;
  --nav: #59b0f0;
  --ink: #0b1620;
  --muted: #6c7a88;
  --white: #fff;
  --light-blue: #8cc3e6;
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1500px;
  --gutter: clamp(20px, 5vw, 96px);
  --header-h: 96px;
  font-size: 16px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(1rem, .55vw + .8rem, 1.2rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, var(--container)); }
.wrap--narrow .contact-form { max-width: 1280px; }
.wrap--text { width: min(100% - var(--gutter) * 2, 1240px); }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 300; padding: 12px 18px;
  background: var(--blue); color: #fff; border-radius: 8px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(64px, 8vw, 128px); position: relative; }
.section--dark { background: var(--bg); color: #fff; }
.section--light { background: #fff; color: var(--ink); }

/* Muesca triangular (separador azul con punta) */
.page-hero, .notch-top { position: relative; }
.page-hero { border-bottom: 4px solid var(--blue); }
.notch-top { border-top: 4px solid var(--blue); }
.page-hero::after, .notch-top::before {
  content: ''; position: absolute; left: 50%; z-index: 2; width: 0; height: 0;
  border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 22px solid var(--blue);
  transform: translateX(-50%);
}
.page-hero::after { bottom: -26px; }
.notch-top::before { top: 0; }

/* Tipografía común */
.kicker { color: var(--blue-bright); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1rem, 1.1vw, 1.4rem); margin-bottom: .6rem; }
.kicker--sm { font-size: clamp(.95rem, 1vw, 1.25rem); }
.display { font-weight: 700; line-height: 1.08; letter-spacing: -.02em; font-size: clamp(2.2rem, 4.4vw, 5.2rem); }
.display--md { font-size: clamp(2rem, 3.6vw, 4.2rem); }
.display .accent, .accent { color: var(--blue-bright); }
.big { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(2rem, 3.4vw, 4rem); }
.h-blue { color: #0a8ef5; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; font-size: clamp(1.8rem, 2.6vw, 3.2rem); margin-bottom: 1.1rem; }
.section--dark .h-blue { color: #1296ff; }
.h-gap { margin-top: clamp(48px, 6vw, 96px); }
.h-center { text-align: center; }
.body-lg { font-size: clamp(1.02rem, .75vw + .7rem, 1.4rem); line-height: 1.6; max-width: 105ch; }
.section--light .body-lg { color: #1b2631; }
.section--dark .body-lg { color: #e9f3fb; }
.body-lg strong { font-weight: 700; color: #fff; }
.lead-light { color: #cfe6f8; font-size: clamp(1.05rem, .9vw + .7rem, 1.5rem); max-width: 68ch; margin-top: 1.4rem; }
.lead-blue { color: var(--sky-text); font-size: clamp(1.05rem, 1.05vw + .6rem, 1.6rem); margin-top: 1rem; }

/* 3. CABECERA -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 26px; transition: transform .9s var(--ease) .1s, padding .35s var(--ease), background .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  padding-block: 14px; background: rgba(9, 16, 22, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 155, 242, .35);
}
.header-inner { width: min(100% - var(--gutter) * 1.2, 1760px); margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.brand { flex: none; display: block; }
.brand img { width: clamp(124px, 11vw, 190px); transition: width .35s var(--ease); }
.site-header.is-scrolled .brand img { width: clamp(110px, 9vw, 150px); }
.main-nav { flex: 1; display: flex; align-items: center; }
.nav-links { display: flex; gap: clamp(22px, 3vw, 54px); margin-inline: auto; }
.nav-links a {
  position: relative; color: var(--nav); font-weight: 700; letter-spacing: .05em;
  font-size: clamp(.82rem, .8vw, 1.02rem); padding: 6px 0; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-links > a, .nav-sub-toggle { position: relative; }
.nav-item { position: relative; }
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--nav); font: inherit; font-weight: 700; letter-spacing: .05em; font-size: clamp(.82rem, .8vw, 1.02rem); transition: color .25s;
}
.nav-sub-toggle svg { width: 10px; height: 7px; transition: transform .35s var(--ease); }
.nav-sub-toggle::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.has-sub:hover .nav-sub-toggle, .has-sub:focus-within .nav-sub-toggle, .has-sub.is-open .nav-sub-toggle, .has-sub.is-current .nav-sub-toggle { color: #fff; }
.has-sub:hover .nav-sub-toggle::after, .has-sub.is-open .nav-sub-toggle::after, .has-sub.is-current .nav-sub-toggle::after { transform: scaleX(1); }
.has-sub:hover .nav-sub-toggle svg, .has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.has-sub::before { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 18px; } /* puente para que no se cierre al bajar el ratón */
.subnav {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 130; min-width: 310px; padding: 10px; margin: 0;
  background: rgba(9, 16, 22, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(42, 155, 242, .5); border-radius: 18px; box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 144, 255, .08);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav li + li { margin-top: 2px; }
.subnav a {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; color: #e4f0f9; font-weight: 500; font-size: .98rem;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.subnav a span { color: var(--blue-bright); font-weight: 800; font-size: .85rem; min-width: 1.6em; }
.subnav a:hover, .subnav a:focus-visible { background: var(--bg-hover); color: #fff; transform: translateX(4px); }
.subnav a::after { display: none; }
.subnav a { color: #e4f0f9; letter-spacing: 0; }
.subnav a[aria-current='page'] { color: #fff; background: rgba(0, 144, 255, .18); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid #fff; border-radius: 999px; font-weight: 700; line-height: 1.2;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.pill--header { padding: 11px 26px; font-size: clamp(.8rem, .75vw, .95rem); letter-spacing: .03em; }
.pill--header:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.nav-toggle { display: none; }
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; }

/* 4. HOME ------------------------------------------------------------------ */
.hero { position: relative; min-height: max(100svh, 720px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-video { position: absolute; top: 0; bottom: 0; left: 15%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); opacity: .42; z-index: -2; animation: heroZoom 28s ease-in-out infinite alternate; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 16, 22, .9) 0%, rgba(9, 16, 22, .5) 55%, rgba(9, 16, 22, .25) 100%),
    linear-gradient(180deg, rgba(9, 16, 22, .55) 0%, rgba(9, 16, 22, 0) 30%, rgba(9, 16, 22, 0) 70%, rgba(9, 16, 22, .9) 100%);
}
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
.hero-title { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(2.6rem, 5.5vw, 6.4rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: block; }
.hero-title .accent { color: #6cb9f4; }
.hero-lead { margin-top: clamp(20px, 2.6vw, 40px); max-width: 52ch; color: var(--sky-text); font-weight: 500; font-size: clamp(1rem, 1.05vw + .35rem, 1.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: clamp(28px, 3vw, 48px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600;
  padding: clamp(14px, 1.1vw, 20px) clamp(26px, 2.4vw, 46px); font-size: clamp(.9rem, .75vw + .3rem, 1.15rem);
  border: 2px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn--solid { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 144, 255, .7); }
.btn--solid:hover { background: #26a4ff; transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0, 144, 255, .85); }
.btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

.marquee { background: var(--bg); border-block: 2px solid var(--blue-soft); overflow: hidden; padding-block: clamp(7px, .6vw, 11px); position: relative; z-index: 1; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; flex: none; }
.marquee-group span { flex: none; padding-inline: clamp(34px, 5vw, 90px); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(.75rem, .75vw, 1rem); white-space: nowrap; }

.knowledge-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: clamp(48px, 6vw, 96px); }
.knowledge-head h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(2rem, 3.6vw, 4.2rem); color: var(--ink); }
.knowledge-head h2 span { color: #6cb9f4; }
.knowledge-head p { max-width: 38ch; font-weight: 700; font-size: clamp(.9rem, .7vw + .4rem, 1.2rem); color: var(--ink); margin-top: .8rem; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); }
.area { position: relative; display: block; padding: clamp(24px, 2.6vw, 44px) clamp(20px, 2.6vw, 48px) clamp(30px, 3vw, 52px); transition: transform .4s var(--ease), background .3s, box-shadow .4s; }
.area:nth-child(n+4) { border-top: 2px solid #3aa9f5; }
.area:not(:nth-child(3n+1)) { border-left: 2px solid #3aa9f5; }
.area-num { display: block; color: var(--blue-bright); font-weight: 800; line-height: 1; font-size: clamp(2.6rem, 3.6vw, 4.4rem); transition: transform .4s var(--ease); }
.area h3 { margin-top: .5rem; font-weight: 300; color: #8f9ba6; font-size: clamp(1.25rem, 1.4vw, 1.9rem); letter-spacing: -.005em; transition: color .3s, font-weight .3s; }
.area p { margin-top: .9rem; color: #7b8792; font-size: clamp(.88rem, .5vw + .5rem, 1.05rem); line-height: 1.6; transition: color .3s; }
.area-arrow { position: absolute; right: clamp(18px, 2vw, 36px); top: clamp(24px, 2.6vw, 44px); font-size: 1.6rem; color: var(--blue); opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .4s var(--ease); }
.area:hover, .area:focus-visible { background: #f1f8ff; transform: translateY(-6px) scale(1.025); box-shadow: 0 24px 50px -22px rgba(0, 120, 220, .45); z-index: 2; }
.area:hover h3, .area:focus-visible h3 { color: var(--blue); font-weight: 500; }
.area:hover p, .area:focus-visible p { color: #2d3b48; }
.area:hover .area-num { transform: translateX(6px); }
.area:hover .area-arrow, .area:focus-visible .area-arrow { opacity: 1; transform: none; }

.needs { padding-block: clamp(72px, 9vw, 140px); }
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 30px); margin-top: clamp(36px, 4vw, 72px); }
.profile {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 1.8vw, 34px); min-height: clamp(220px, 17vw, 300px);
  border: 1.5px solid var(--blue); border-radius: 10px; background: transparent;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s;
}
.profile h3 { font-weight: 700; letter-spacing: .02em; font-size: clamp(1.3rem, 1.5vw, 2rem); }
.profile p { color: #dbe9f5; font-size: clamp(.85rem, .45vw + .55rem, 1.05rem); flex: 1; }
.profile:hover, .profile:focus-visible { transform: translateY(-8px); background: var(--bg-hover); border-color: #5cbcff; box-shadow: 0 24px 46px -24px rgba(0, 144, 255, .65); }

.link-underline { align-self: flex-start; color: var(--sky-text); font-style: italic; font-weight: 500; position: relative; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.link-underline:hover, .profile:hover .link-underline, .link-underline:focus-visible { background-size: 100% 3px; color: #fff; }
.link-underline--lg { font-size: clamp(.95rem, .9vw + .3rem, 1.3rem); font-weight: 700; color: #fff; background-size: 100% 2px; }
.profile .link-underline { color: var(--blue-bright); font-size: clamp(.8rem, .45vw + .5rem, 1rem); }

.ticker { background: var(--blue); color: #fff; overflow: hidden; }
.ticker-stage { display: grid; width: min(100% - var(--gutter) * 2, 1400px); margin-inline: auto; }
.ticker-item { grid-area: 1 / 1; display: grid; place-items: center; text-align: center; padding-block: clamp(14px, 1.2vw, 20px); font-weight: 500; font-size: clamp(.8rem, .55vw + .45rem, 1.1rem); opacity: 0; transform: translateY(110%); transition: transform .8s var(--ease), opacity .8s var(--ease); }
.ticker-item.is-active { opacity: 1; transform: none; }
.ticker-item.is-leaving { opacity: 0; transform: translateY(-110%); }
.ticker-item.reset { transition: none; }

.about-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.gallery { margin: clamp(32px, 3.5vw, 64px) auto 0; width: min(100%, 980px); }
.gallery-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #05090d; box-shadow: 0 30px 70px -30px rgba(0, 144, 255, .35); }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity 1.2s ease, transform 7s linear; }
.gallery-stage img.is-active { opacity: 1; transform: scale(1); }
.gallery-arrow {
  position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: clamp(40px, 3.6vw, 56px); height: clamp(40px, 3.6vw, 56px); padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #fff; background: rgba(9, 16, 22, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(-50%);
  transition: background .3s, border-color .3s, transform .35s var(--ease), box-shadow .3s;
}
.gallery-arrow svg { width: 40%; height: 40%; }
.gallery-arrow--prev { left: clamp(10px, 1.6vw, 24px); }
.gallery-arrow--next { right: clamp(10px, 1.6vw, 24px); }
.gallery-arrow:hover, .gallery-arrow:focus-visible { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 26px -8px rgba(0, 144, 255, .85); }
.gallery-arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.gallery-arrow--next:hover { transform: translateY(-50%) translateX(3px); }
.gallery-arrow:active { transform: translateY(-50%) scale(.92); }
.gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.gallery-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s, transform .3s, width .3s; }
.gallery-dots button:hover { background: rgba(255, 255, 255, .6); }
.gallery-dots button[aria-selected='true'] { background: var(--blue-bright); width: 28px; border-radius: 6px; }
.gallery figcaption { text-align: center; margin-top: 18px; letter-spacing: .06em; font-size: clamp(.85rem, .5vw + .5rem, 1.1rem); }

/* 5. PÁGINAS INTERIORES ---------------------------------------------------- */
.page-hero { background: var(--bg); padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) 0 clamp(52px, 6vw, 96px); }
.page-hero h1 { font-weight: 700; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(2.5rem, 5.2vw, 6.2rem); }
.hero-sub { color: var(--blue-bright); font-weight: 700; font-size: clamp(1rem, 1vw + .35rem, 1.5rem); margin-top: .5rem; }
.hero-intro { margin-top: clamp(24px, 2.5vw, 44px); color: var(--sky-text); font-size: clamp(1rem, .85vw + .4rem, 1.45rem); max-width: 1180px; }
.hero-intro p + p { margin-top: .5rem; }

/* Línea de tiempo con puntos */
.timeline { --tl-gap: 44px; --tl-dot: 14px; --tl-pad: clamp(10px, 1.1vw, 18px); position: relative; margin: clamp(24px, 3vw, 44px) 0 0 clamp(0px, 9vw, 170px); padding-left: var(--tl-gap); }
.timeline li { position: relative; padding-block: var(--tl-pad); font-size: clamp(1rem, .75vw + .55rem, 1.35rem); color: #131d27; }
.timeline li::before { content: ''; position: absolute; z-index: 1; left: calc(var(--tl-gap) * -1); top: calc(var(--tl-pad) + .5em); width: var(--tl-dot); height: var(--tl-dot); border-radius: 50%; background: var(--light-blue); transition: transform .35s var(--ease), background .3s; }
/* La línea une cada círculo con el siguiente: empieza en el primero y termina en el último */
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: calc(var(--tl-gap) * -1 + var(--tl-dot) / 2 - 1.5px); top: calc(var(--tl-pad) + .5em + var(--tl-dot) / 2); height: 100%; width: 3px; background: var(--light-blue); border-radius: 3px; transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease) .15s; }
.timeline li.is-in:not(:last-child)::after, html:not(.js) .timeline li:not(:last-child)::after { transform: scaleY(1); }
.timeline li:hover::before { transform: scale(1.5); background: var(--blue); }

.numlist { margin-top: clamp(20px, 2.5vw, 40px); }
.two-col { align-items: start; }
.two-col .numlist { margin-top: clamp(24px, 3vw, 44px); }
.numlist li { display: grid; grid-template-columns: clamp(52px, 4vw, 76px) 1fr; align-items: center; padding-block: 10px; gap: 10px; }
.numlist span { color: var(--light-blue); font-weight: 700; line-height: 1; font-size: clamp(1.8rem, 2.3vw, 3rem); transition: color .3s, transform .35s var(--ease); }
.numlist li:hover span { color: var(--blue); transform: translateX(4px); }
.numlist p { font-size: clamp(1rem, .75vw + .55rem, 1.35rem); color: #131d27; }

.outline-box { border: 3px solid var(--blue-line); border-radius: clamp(24px, 2.6vw, 40px); padding: clamp(22px, 2.6vw, 44px) clamp(22px, 3vw, 54px); margin-top: 1.4rem; transition: box-shadow .4s; }
.outline-box:hover { box-shadow: 0 24px 60px -30px rgba(0, 144, 255, .5); }
.outline-box p { color: #131d27; font-size: clamp(1rem, .7vw + .55rem, 1.3rem); }
.outline-box p + p { margin-top: 1.1em; }
.outline-box em { color: #7ebde6; font-weight: 700; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); margin-top: clamp(40px, 5vw, 80px); }
.stat-num { color: #86c2ea; font-weight: 700; text-align: center; line-height: 1; letter-spacing: -.02em; font-size: clamp(3.6rem, 7.5vw, 9rem); font-variant-numeric: tabular-nums; }
.stat h3 { margin-top: 1rem; font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 2rem); }
.stat p:not(.stat-num) { margin-top: 1.2rem; color: #e9f3fb; font-size: clamp(1rem, .7vw + .55rem, 1.3rem); }

/* Segunda opinión */
.price-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.4vw, 40px); margin-top: clamp(40px, 5vw, 80px); padding: clamp(20px, 2vw, 34px) clamp(22px, 2.6vw, 44px); background: #3ea6ff; color: #fff; border-radius: clamp(18px, 2vw, 28px); border: 2px solid #6cc4ff; box-shadow: 0 24px 60px -30px rgba(0, 140, 255, .6); }
.price { display: flex; flex-direction: column; align-items: center; padding-right: clamp(16px, 2.4vw, 40px); border-right: 3px solid #fff; line-height: 1.15; font-weight: 700; }
.price strong { font-size: clamp(1.6rem, 2.2vw, 2.8rem); }
.price span { font-size: clamp(1rem, 1.2vw, 1.6rem); }
.price-banner p { font-size: clamp(.9rem, .6vw + .5rem, 1.2rem); max-width: 56ch; }
.pill--white { background: #fff; color: #0a7fe6; border-color: #fff; padding: 12px clamp(28px, 4.5vw, 78px); font-size: clamp(.9rem, .8vw, 1.1rem); }
.pill--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.06); }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 32px); margin-top: clamp(28px, 3vw, 52px); }
.step { position: relative; border: 3px solid var(--blue-line); border-radius: var(--radius); padding: clamp(20px, 2vw, 34px) clamp(22px, 2.4vw, 40px); grid-column: span 2; transition: transform .4s var(--ease), box-shadow .4s, background .3s; }
.step:nth-child(-n+2) { grid-column: span 1; }
.step:hover { transform: translateY(-5px); background: #f4faff; box-shadow: 0 22px 50px -26px rgba(0, 144, 255, .55); }
.step-num { position: absolute; right: clamp(18px, 2.4vw, 40px); top: clamp(10px, 1.4vw, 24px); color: #8ec5e8; font-weight: 700; line-height: 1; font-size: clamp(2.4rem, 3.8vw, 4.6rem); }
.step h3 { color: var(--blue-bright); font-weight: 700; letter-spacing: .005em; font-size: clamp(1.2rem, 1.5vw, 2rem); margin-top: clamp(14px, 2.2vw, 36px); }
.step-sub { color: #1296ff; font-style: italic; font-weight: 700; font-size: clamp(1.05rem, 1.2vw, 1.6rem); margin-top: .1rem; }
.step p:not(.step-sub) { margin-top: .5rem; color: #131d27; font-size: clamp(.92rem, .55vw + .5rem, 1.15rem); }

.specialists .hero-sub { margin-top: 1.6rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.8vw, 48px); margin-top: clamp(32px, 4vw, 64px); }
.spec { display: flex; flex-direction: column; padding: clamp(16px, 1.6vw, 28px); border: 2px solid var(--blue); border-radius: var(--radius); transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s; }
.spec-cv { align-self: flex-end; font-style: italic; font-weight: 700; font-size: clamp(.78rem, .4vw + .5rem, 1rem); text-decoration: underline; text-underline-offset: 4px; margin-bottom: 8px; transition: color .3s; }
.spec-photo { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 701 / 293; background: #05090d; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.spec-area { margin-top: clamp(14px, 1.4vw, 24px); color: var(--blue-bright); font-weight: 700; font-size: clamp(.78rem, .4vw + .5rem, 1rem); letter-spacing: .02em; }
.spec h3 { font-weight: 700; font-size: clamp(1.4rem, 2vw, 2.6rem); line-height: 1.15; transition: color .3s; }
.spec p { color: var(--blue-bright); font-weight: 700; font-size: clamp(.8rem, .4vw + .5rem, 1rem); margin-top: .3rem; }
.spec:hover, .spec:focus-visible { transform: translateY(-8px); background: var(--bg-hover); border-color: #5cbcff; box-shadow: 0 26px 54px -26px rgba(0, 144, 255, .65); }
.spec:hover .spec-photo img { transform: scale(1.07); filter: brightness(.85); }
.spec:hover h3, .spec:hover .spec-cv { color: #5cc0ff; }

.audience { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 120px); }
.audience-actions { display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; gap: 18px; } /* ambos botones con el ancho del más largo */
.audience-actions .pill { display: flex; width: 100%; }
.pill--white-solid, .pill--outline { padding: 18px clamp(28px, 3.4vw, 60px); font-size: clamp(.95rem, .8vw + .3rem, 1.25rem); }
.pill--white-solid { background: #fff; color: var(--ink); border-color: #fff; }
.pill--white-solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.pill--outline { background: transparent; color: #fff; padding-block: 13px; font-size: clamp(.85rem, .6vw + .35rem, 1.05rem); }
.pill--outline:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }

/* Formación */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 30px); margin-top: clamp(32px, 4vw, 64px); }
.course { display: flex; flex-direction: column; padding: clamp(10px, 1vw, 16px); border: 2px solid var(--blue-soft); border-radius: 22px; transition: transform .4s var(--ease), box-shadow .4s, background .3s; }
.course-img { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 485 / 315; background: #eef2f5; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.course h3 { color: var(--bg); font-weight: 700; line-height: 1.25; font-size: clamp(.98rem, .6vw + .55rem, 1.3rem); margin: 14px 4px 0; }
.course p { color: #2a3744; font-size: clamp(.78rem, .35vw + .5rem, .98rem); margin: 6px 4px 6px; }
.course:hover, .course:focus-visible { transform: translateY(-8px) scale(1.02); background: #f1f8ff; box-shadow: 0 28px 56px -26px rgba(0, 120, 220, .55); }
.course:hover .course-img img { transform: scale(1.06); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); margin-top: clamp(56px, 7vw, 112px); }
.two-col .timeline { --tl-gap: 40px; margin-left: 0; }

/* Industria */
.chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 26px); margin: clamp(28px, 3vw, 52px) 0 0; }
.chips li { grid-column: span 2; display: flex; align-items: center; }
.chips li:nth-child(n+4) { grid-column: span 3; }
.chips li { border: 3px solid var(--bg); background: var(--bg); border-radius: 48px; padding: clamp(14px, 1.4vw, 24px) clamp(20px, 2vw, 36px); color: #fff; font-weight: 700; line-height: 1.25; font-size: clamp(1rem, 1.15vw, 1.6rem); text-wrap: balance; transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease); cursor: default; }
.chips li:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-4px); }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); margin-top: clamp(28px, 3vw, 52px); }
.partner-logo { height: clamp(110px, 12vw, 190px); display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 100%; width: auto; max-width: min(100%, 460px); object-fit: contain; transition: transform .5s var(--ease); }
.partners article:hover .partner-logo img { transform: scale(1.05); }
.partners p { margin-top: clamp(20px, 2.4vw, 40px); font-size: clamp(1.02rem, .9vw + .55rem, 1.55rem); color: #131d27; line-height: 1.5; }

/* Equipo y perfiles */
.team-intro { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); }
.team-intro .display { max-width: 18ch; margin-top: .2rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 34px); margin-top: clamp(40px, 5vw, 84px); }
.member { display: flex; flex-direction: column; padding: clamp(14px, 1.4vw, 24px); border: 2px solid #1b8df0; border-radius: clamp(20px, 2vw, 30px); transition: transform .45s var(--ease), background .3s, border-color .3s, box-shadow .45s; }
.member-photo { display: block; overflow: hidden; border: 2px solid #1b8df0; border-radius: clamp(12px, 1.2vw, 18px); aspect-ratio: 4 / 3; background: #d6e8f8; }
.member-photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .7s var(--ease), filter .4s; }
.member h2 { margin-top: clamp(14px, 1.4vw, 24px); font-weight: 700; font-size: clamp(1.3rem, 1.7vw, 2.2rem); line-height: 1.15; transition: color .3s; }
.member p { margin-top: .5rem; color: #1e9bf5; font-weight: 700; line-height: 1.3; font-size: clamp(.95rem, .8vw + .4rem, 1.35rem); }
.member:hover, .member:focus-visible { transform: translateY(-8px) scale(1.015); background: #0b2a45; border-color: #55b8ff; box-shadow: 0 30px 60px -28px rgba(0, 144, 255, .7); }
.member:hover .member-photo img { filter: brightness(.74) saturate(1.05); transform: scale(1.05); }
.member:hover h2 { color: #6cc4ff; }

.bio { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); }
.bio-head { display: flex; justify-content: space-between; align-items: center; gap: clamp(24px, 4vw, 72px); }
.bio-roles { margin-top: 1rem; color: #bcdcf3; font-size: clamp(1rem, .9vw + .4rem, 1.5rem); }
.bio-photo { flex: none; width: clamp(180px, 16vw, 300px); aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; border: 2px solid #1b8df0; border-radius: 24px; background: #d6e8f8; }
.bio-body { margin-top: clamp(40px, 5vw, 80px); }
.bio-body p { font-size: clamp(1.02rem, .75vw + .6rem, 1.45rem); line-height: 1.55; color: #f0f7fc; }
.bio-body p + p { margin-top: 1.25em; }
.bio-body .soon { color: #cfe6f8; }
.bio-body .btn { margin-top: 1rem; }
.bio-blocks { }
.bio-block { margin-top: clamp(40px, 5vw, 80px); }
.bio-block h2 { color: #a4cdee; font-weight: 500; font-size: clamp(1.3rem, 1.5vw, 2rem); margin-bottom: .8rem; }
.bio-block p { font-size: clamp(.98rem, .6vw + .55rem, 1.35rem); line-height: 1.55; color: #f0f7fc; }
.bio-block p + p { margin-top: 1.2em; }
.back-link { margin-top: clamp(48px, 6vw, 96px); }

/* Legales */
.legal { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); }
.legal-block { margin-top: clamp(28px, 3vw, 48px); }
.legal-block h2 { color: #a4cdee; font-weight: 600; font-size: clamp(1.25rem, 1.3vw, 1.7rem); margin-bottom: .6rem; }
.legal-block p { color: #e4f0f9; max-width: 75ch; }
.legal-block p + p { margin-top: .8em; }
.legal-date { margin-top: clamp(40px, 5vw, 72px); color: #7e98ad; font-size: .9rem; }
.todo { background: rgba(255, 214, 0, .16); color: #ffe27a; border-radius: 4px; padding: 0 5px; }

/* 7. FORMULARIO ------------------------------------------------------------ */
.contact { padding-block: clamp(72px, 9vw, 140px); }
.contact--page { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 130px)); min-height: 80svh; }
.contact-form { margin-top: clamp(36px, 5vw, 80px); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
.field { position: relative; padding-top: 26px; margin-bottom: 8px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .9); border-radius: 0; color: #fff;
  font: inherit; font-size: clamp(1.05rem, 1vw + .4rem, 1.5rem); padding: 18px 2px 14px; outline: none; resize: none; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.field label { position: absolute; left: 2px; top: 44px; text-transform: uppercase; font-size: clamp(1.05rem, 1vw + .4rem, 1.5rem); color: #fff; pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--blue-bright); box-shadow: 0 2px 0 0 var(--blue-bright); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-34px) scale(.6); color: var(--blue-bright); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #ff6b6b; box-shadow: 0 2px 0 0 #ff6b6b; }
.field-error { display: block; min-height: 1.3em; margin-top: 6px; color: #ff8c8c; font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.consent { display: flex; align-items: flex-start; gap: 12px; color: #cfe0ee; font-size: .95rem; max-width: 52ch; cursor: pointer; }
.consent input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.pill--form { background: transparent; color: #fff; text-transform: uppercase; padding: 18px clamp(32px, 4vw, 66px); font-size: clamp(.95rem, .8vw + .4rem, 1.35rem); font-weight: 500; }
.pill--form:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(0, 144, 255, .8); }
.pill--form[disabled] { opacity: .6; pointer-events: none; }
.form-status { min-height: 1.5em; margin-top: 18px; font-weight: 500; }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: #ff8c8c; }

/* 8. PIE ------------------------------------------------------------------- */
.site-footer { background: var(--bg); padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.footer-line { height: 2px; background: #3a98f0; transform-origin: left; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: 22px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.footer-logo { width: clamp(120px, 10vw, 180px); }
.footer-brand p { font-size: clamp(.78rem, .3vw + .55rem, .95rem); color: #cfdbe6; font-weight: 300; max-width: 24ch; }
.footer-brand small { margin-top: clamp(14px, 2vw, 32px); font-size: clamp(.68rem, .25vw + .5rem, .82rem); color: #cfdbe6; font-weight: 300; }
.footer-links { display: flex; flex-direction: column; gap: 9px; min-width: 220px; }
.footer-links > a { font-size: clamp(.78rem, .3vw + .55rem, .92rem); color: #aebfcd; font-weight: 300; transition: color .25s, transform .25s; width: fit-content; }
.footer-links > a:hover { color: #fff; transform: translateX(3px); }
.footer-links .footer-heading { color: #4a86bd; font-size: clamp(.9rem, .4vw + .6rem, 1.1rem); margin-bottom: 2px; }
.social { display: flex; gap: 12px; margin-top: clamp(10px, 1.6vw, 24px); flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid rgba(91, 149, 201, .55); border-radius: 50%; color: #5b95c9; transition: color .3s, background .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.social a svg { width: 18px; height: 18px; }
.social a:hover, .social a:focus-visible { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(0, 144, 255, .8); }

/* 9. ANIMACIONES ----------------------------------------------------------- */
/* Pantalla de carga con cortina (se muestra siempre; más corta en visitas repetidas de la sesión) */
.loader {
  position: fixed; inset: 0; z-index: 400; display: none; place-items: center; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 45%, rgba(0, 144, 255, .16), transparent 72%), var(--bg);
  transition: transform 1.05s cubic-bezier(.77, 0, .18, 1);
}
html.loading .loader, .loader.leave { display: grid; }
html.loading .loader { animation: loaderFailsafe .5s 5.2s forwards; }
.loader::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #6cc4ff, var(--blue)); }
.loader.is-done { transform: translateY(-100%); }
.loader.leave { transform: translateY(100%); transition: none; }
.loader.leave::after { bottom: auto; top: 0; }
.loader.leave.in { transform: none; transition: transform .6s cubic-bezier(.77, 0, .18, 1); }
.loader-inner { width: min(70vw, 280px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-inner img { width: 100%; opacity: 0; transform: translateY(16px); animation: loaderIn 1s .15s var(--ease) forwards; }
.loader-bar { display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6cc4ff); transform: scaleX(0); transform-origin: left; animation: loaderBar 1.7s .2s var(--ease) forwards; box-shadow: 0 0 14px var(--blue); }
.loader-pct { font-weight: 300; font-size: .9rem; letter-spacing: .2em; color: var(--sky-text); font-variant-numeric: tabular-nums; }
.loader-pct b { font-weight: 500; }
html.quick .loader-bar i { animation-duration: .5s; animation-delay: .1s; }
html.quick .loader-inner img { animation-duration: .5s; animation-delay: 0s; }
.loader.leave .loader-bar, .loader.leave .loader-pct { opacity: 0; }

/* Barra de progreso de scroll */
.prog-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 150; background: linear-gradient(90deg, var(--blue), #6cc4ff); transform: scaleX(0); transform-origin: left; pointer-events: none; box-shadow: 0 0 10px rgba(0, 144, 255, .7); }

/* Cabecera: entra desde arriba al terminar la carga */
.js .site-header { transform: translateY(-110%); }
.js.ready .site-header { transform: none; }

/* Titulares por palabras (máscara + subida escalonada) */
.wsplit .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .03em .16em; margin: -.04em -.03em -.16em; }
.js .wsplit .wd > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--base, 0ms)); }
.js .wsplit.in .wd > span { transform: none; }

/* Fotos: aparecen con un fundido suave (fade-in) */
.member-photo, .spec-photo, .course-img, .gallery-stage { position: relative; }
.js .member-photo img, .js .spec-photo img, .js .course-img img { opacity: 0; }
.js .is-in .member-photo img, .js .is-in .spec-photo img, .js .is-in .course-img img { opacity: 1; }
.member-photo img { transition: transform .7s var(--ease), filter .4s, opacity 1.1s ease .2s; }
.spec-photo img { transition: transform .8s var(--ease), filter .4s, opacity 1.1s ease .2s; }
.course-img img { transition: transform .7s var(--ease), opacity 1.1s ease .2s; }

/* Barrido de luz sobre botones */
.btn, .pill { position: relative; overflow: hidden; isolation: isolate; }
.btn::before, .pill::before {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .8s var(--ease);
}
.btn:hover::before, .pill:hover::before { left: 130%; }

/* Línea de escaneo (ecografía): solo en las páginas con portada de cabecera (.page-hero); no en la home, equipo, perfiles, contacto ni legales */
.page-hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--blue-bright) 30%, #9fdcff 50%, var(--blue-bright) 70%, transparent);
  box-shadow: 0 0 22px 4px rgba(20, 164, 245, .55);
}
.js.ready .page-hero::before { animation: scan 2.8s .5s cubic-bezier(.45, 0, .25, 1) 1 forwards; }

.js [data-reveal], .js [data-hero] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in, .js [data-hero].is-in { opacity: 1; transform: none; }
.js .footer-line[data-reveal] { transform: scaleX(0); opacity: 1; transition: transform 1.4s var(--ease); }
.js .footer-line[data-reveal].is-in { transform: scaleX(1); }
.js .timeline li[data-reveal] { transform: translateX(-24px) translateY(0); }
.js .timeline li[data-reveal].is-in { transform: none; }
.js .hero-title .line > span { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.js .hero-title.is-in .line > span { transform: none; }
.js .hero-video { opacity: 0; transition: opacity 2.2s ease .3s; }
.js.ready .hero-video { opacity: .42; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes loaderIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes loaderBar { to { transform: scaleX(1); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: min(100%, 100svh); opacity: 0; } }

/* Menú: hamburguesa hasta 1060px (hay 6 enlaces + botón) */
@media (max-width: 1060px) {
  :root { --header-h: 78px; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; background: transparent; position: relative; z-index: 120;
  }
  .nav-toggle span { position: absolute; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
  .nav-toggle span:first-child { transform: translateY(-4px); }
  .nav-toggle span:last-child { transform: translateY(4px); }
  .nav-toggle[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: flex-start; gap: 36px; background: var(--bg); overflow-y: auto; padding: 96px 20px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s, transform .45s var(--ease), visibility .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: center; gap: 22px; margin: auto 0 0; }
  .main-nav > .pill--header { margin-bottom: auto; }
  .nav-links a { font-size: 1.5rem; }
  .pill--header { font-size: 1.05rem; padding: 14px 32px; }
  .nav-links a, .nav-sub-toggle { font-size: 1.5rem; }
  .nav-item { display: flex; flex-direction: column; align-items: center; }
  .nav-sub-toggle svg { width: 16px; height: 11px; }
  .subnav {
    position: static; transform: none; min-width: 0; width: min(88vw, 360px); background: transparent; border: 0; padding: 0; border-radius: 0;
    max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transition: max-height .5s var(--ease);
  }
  .has-sub.is-open .subnav { max-height: 480px; margin-top: 10px; }
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { transform: none; }
  .subnav a { font-size: 1.1rem; justify-content: center; }
}

/* 10. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .profiles { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .knowledge-head { flex-direction: column; gap: 8px; }
  .areas { grid-template-columns: 1fr 1fr; }
  .area:nth-child(n) { border: 0; }
  .area:nth-child(n+3) { border-top: 2px solid #3aa9f5; }
  .area:nth-child(even) { border-left: 2px solid #3aa9f5; }
  .stats, .partners, .two-col, .audience { grid-template-columns: 1fr; }
  .audience-actions { justify-content: start; }
  .spec-grid { grid-template-columns: 1fr; }
  .price-banner { grid-template-columns: 1fr; text-align: left; }
  .price { flex-direction: row; gap: 10px; border-right: 0; border-bottom: 3px solid #fff; padding: 0 0 12px; align-self: stretch; }
  .pill--white { justify-self: start; }
  .bio-head { flex-direction: column-reverse; align-items: stretch; gap: 28px; }
  .bio-head > div { width: 100%; }
  .bio-photo { align-self: center; width: min(62vw, 260px); }
  .timeline { margin-left: 0; }
  }

@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .profiles, .course-grid, .team-grid { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .area:nth-child(n) { border: 0; border-top: 2px solid #3aa9f5; }
  .area:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(-n+2) { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .pill--form { width: 100%; }
  .footer-grid { flex-direction: column; }
  .page-hero::after, .notch-top::before { border-left-width: 16px; border-right-width: 16px; border-top-width: 16px; }
  .page-hero::after { bottom: -20px; }
  .step-num { position: static; display: block; }
  .step h3 { margin-top: 4px; }
}

.wrap--text > .numlist { margin-left: clamp(0px, 9vw, 170px); }
@media (max-width: 960px) { .wrap--text > .numlist { margin-left: 0; } }

/* Textos legales (contenido tomado de uroima.com) */
.legal-body { margin-top: clamp(28px, 3vw, 48px); max-width: 980px; }
.legal-body h3 { color: #a4cdee; font-weight: 600; font-size: clamp(1.3rem, 1.5vw, 1.9rem); margin: clamp(36px, 4vw, 64px) 0 .8rem; line-height: 1.25; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body h4 { color: #fff; font-weight: 600; font-size: clamp(1.05rem, .9vw + .4rem, 1.3rem); margin: 1.8rem 0 .5rem; }
.legal-body p { color: #e4f0f9; margin-top: .8em; }
.legal-body ul { list-style: disc; padding-left: 1.4em; margin-top: .8em; color: #e4f0f9; }
.legal-body li { margin-top: .5em; }
.legal-body a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid rgba(42, 155, 242, .35); }
.legal-body h3[id] { scroll-margin-top: 110px; }

@media (max-width: 960px) { .chips { grid-template-columns: 1fr 1fr; } .chips li, .chips li:nth-child(n+4) { grid-column: auto; } .chips li:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .chips { grid-template-columns: 1fr; } .chips li:last-child { grid-column: auto; } }

/* Tablet y móvil: el texto usa todo el ancho disponible (sin topes de ancho pensados para escritorio) */
@media (max-width: 960px) {
  .body-lg, .lead-light, .hero-lead, .knowledge-head p, .price-banner p, .team-intro .display, .consent, .hero-intro, .legal-block p { max-width: none; }
  .hero-intro, .bio-body, .bio-blocks { width: 100%; }
}
/* Móvil: menos sangrías para ganar ancho de lectura */
@media (max-width: 640px) {
  .timeline, .two-col .timeline { --tl-gap: 34px; --tl-dot: 12px; }
  .numlist li { grid-template-columns: 46px 1fr; }
  .outline-box { padding: 20px 18px; border-width: 2px; }
  .step { padding: 18px 18px; }
  .price-banner { padding: 18px; }
}

/* Mapa de alumnos y comentarios (Formación) */
.world .lead-light { margin-top: 1rem; }
.world-map { position: relative; margin-top: clamp(28px, 3.4vw, 56px); aspect-ratio: 175 / 69; }
.world-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-map path { fill: none; stroke: rgba(85, 184, 255, .3); stroke-width: .95; stroke-linecap: round; }
.world-map--continuo svg { overflow: hidden; opacity: .6; }
.world-map--continuo .land { fill: rgba(85, 184, 255, .2); stroke: rgba(85, 184, 255, .45); stroke-width: .12; stroke-linejoin: round; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 0; height: 0; outline: none; cursor: pointer; }
.pin-dot { position: absolute; left: 0; top: 0; width: max(.6vw, 7px); height: max(.6vw, 7px); transform: translate(-50%, -50%); border-radius: 50%; background: var(--blue-soft); box-shadow: 0 0 8px rgba(85, 184, 255, .7); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { transform: translate(-50%, -50%) scale(1.9); background: #fff; box-shadow: 0 0 16px rgba(85, 184, 255, 1); }
.pin-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--blue-soft); opacity: 0; animation: pinPulse 6s ease-out infinite; animation-delay: var(--d, 0s); }
.pin-tip { position: absolute; left: 0; bottom: 1.4vw; z-index: 2; transform: translate(-50%, 6px); padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--bg); font-size: .8rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.pin:hover, .pin:focus-visible { z-index: 5; }
.pin:hover .pin-tip, .pin:focus-visible .pin-tip { opacity: 1; transform: translate(-50%, 0); }
.pin::before { content: ''; position: absolute; left: -1.2vw; top: -1.2vw; width: 2.4vw; height: 2.4vw; }
@keyframes pinPulse { 0% { transform: scale(1); opacity: .8; } 45% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }

.testi { --per: 3; position: relative; margin-top: clamp(24px, 3vw, 44px); }
.testi-viewport { overflow: hidden; padding: 8px 2px; margin: -8px -2px; }
.testi-track { display: flex; gap: clamp(16px, 1.8vw, 30px); transition: transform .8s var(--ease); will-change: transform; }
.testi-card { margin: 0; flex: 0 0 calc((100% - (var(--per) - 1) * clamp(16px, 1.8vw, 30px)) / var(--per)); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(22px, 2vw, 34px); border: 2px solid var(--blue-soft); border-radius: 22px; background: rgba(85, 184, 255, .06); }
.testi-card blockquote { margin: 0; font-size: clamp(1rem, .55vw + .65rem, 1.3rem); line-height: 1.5; color: #e9f3fb; }
.testi-card figcaption { display: flex; flex-direction: column; gap: 3px; }
.testi-card strong { color: #fff; font-size: 1.05rem; }
.testi-card span { color: var(--sky-text); font-size: .92rem; }
.testi-card em { color: var(--blue-soft); font-size: .88rem; font-style: normal; font-weight: 600; margin-top: 4px; }
.testi-nav { display: flex; justify-content: center; gap: 14px; margin-top: clamp(20px, 2.4vw, 34px); }
.testi-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.testi-btn svg { width: 40%; height: 40%; }
.testi-btn:hover, .testi-btn:focus-visible { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
@media (max-width: 1060px) { .testi { --per: 2; } }
@media (max-width: 700px) { .testi { --per: 1; } .pin::before { display: none; } .pin-dot { width: 5px; height: 5px; } .pin-dot::before { border-width: 1px; } }
