/*colores principales. */
:root {
  --azul-marca: #335974;
  --azul-fondo: #075785;
  --azul-profundo: #022f4d;
  --azul-luz: #45b8ef;
  --verde-gris: #bfd1d5;
  --blanco-roto: #e9eae8;
  --linea: rgba(233, 234, 232, 0.22);
  --margen: clamp(24px, 5vw, 76px);
  --alto-header: 100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--blanco-roto); background: var(--azul-profundo); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.skip-link { position: fixed; top: -60px; left: 20px; z-index: 50; padding: 12px; color: var(--azul-profundo); background: white; }
.skip-link:focus { top: 20px; }

/* CABECERA */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--alto-header);
  padding: 0 var(--margen);
  border-bottom: 1px solid var(--linea);
  background: rgba(2, 47, 77, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: color .35s ease, background .35s ease, border-color .35s ease;
}

.site-header--light {
  color: var(--azul-profundo);
  border-color: rgba(2,47,77,.16);
  background: rgba(233,234,232,.78);
}

.site-header--light .language {
  color: rgba(2,47,77,.68);
}

.brand {
  display: grid;
  place-items: center;
  width: 126px;
  height: 74px;
}

.brand img {
  display: block;
  width: 126px;
  height: auto;
}
.header-actions, .language, .contact-link { display: flex; align-items: center; }
.header-actions { gap: clamp(24px, 4vw, 58px); }
.language { gap: 7px; color: rgba(233,234,232,.5); font-size: 11px; letter-spacing: .16em; }
.language__button { padding: 6px 0; border: 0; background: transparent; cursor: pointer; opacity: .45; }
.language__button.is-active { opacity: 1; }
.contact-link { gap: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact-link span:last-child { font-size: 17px; transition: transform .3s ease; }
.contact-link:hover span:last-child { transform: translate(3px,-3px); }

/* PORTADA */
.hero {
  --cursor-x: 75%;
  --cursor-y: 45%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--alto-header) + 60px) clamp(24px, 8vw, 132px) 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(69,184,239,.2), transparent 26rem),
    linear-gradient(125deg, var(--azul-profundo) 0%, var(--azul-fondo) 60%, #0876aa 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: var(--alto-header) 0 0;
  opacity: .14;
  background-image: linear-gradient(var(--linea) 1px,transparent 1px), linear-gradient(90deg,var(--linea) 1px,transparent 1px);
  background-size: clamp(75px,8vw,125px) clamp(75px,8vw,125px);
  -webkit-mask-image: linear-gradient(to right,transparent,black 45%,black);
  mask-image: linear-gradient(to right,transparent,black 45%,black);
}

.hero__content { position: relative; z-index: 2; width: min(1000px,88vw); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 38px; color: var(--verde-gris); font-size: clamp(13px,1.05vw,16px); letter-spacing: .17em; text-transform: uppercase; }
.eyebrow > span:first-child { flex: 0 0 auto; width: 32px; height: 1px; background: currentColor; }
h1 { margin: 0; font-size: clamp(58px,8.3vw,142px); font-weight: 400; line-height: .88; letter-spacing: -.055em; }
h1 span, h1 em { display: block; }
h1 em { margin-left: clamp(0px,7vw,112px); color: var(--verde-gris); font-family: Georgia,"Times New Roman",serif; font-weight: 400; }
.hero__description { width: min(475px,82vw); margin: clamp(40px,7vh,72px) 0 0 clamp(0px,36vw,550px); color: rgba(233,234,232,.78); font-size: clamp(16px,1.35vw,21px); line-height: 1.55; }

/* COBERTURA */
.coverage {
  position: absolute;
  top: 50%;
  right: -10vw;
  z-index: 1;
  width: min(63vw, 960px);
  aspect-ratio: 1.36;
  opacity: .72;
  transform: translateY(-44%);
  pointer-events: none;
}

/* Halo colocado detrás de la cobertura para que no parezca pegada. */
.coverage::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,184,239,.22), rgba(69,184,239,.05) 48%, transparent 72%);
  filter: blur(28px);
}

.coverage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(168,226,249,.2));
  animation: reveal-coverage 1.8s cubic-bezier(.2,.75,.25,1) both;
}

/* Este punto marca el origen del cálculo sin tapar el obstáculo. */
.coverage__glow {
  position: absolute;
  top: 49.5%;
  left: 50%;
  z-index: 2;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  box-shadow: 0 0 0 9px rgba(255,255,255,.06), 0 0 34px var(--azul-luz);
  animation: pulse 2.8s ease-in-out infinite 1.8s;
}

.status { position: absolute; right: var(--margen); bottom: 38px; display: grid; grid-template-columns: auto auto; gap: 3px 9px; align-items: center; color: rgba(233,234,232,.65); font: 10px monospace; letter-spacing: .12em; text-transform: uppercase; }
.status__light { width: 6px; height: 6px; border-radius: 50%; background: #72d4ff; box-shadow: 0 0 12px #72d4ff; }
.status__code { grid-column: 2; opacity: .45; }
.continue { position: absolute; left: var(--margen); bottom: 35px; display: flex; gap: 16px; padding-bottom: 7px; border-bottom: 1px solid rgba(233,234,232,.4); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

/* SEGUNDA PANTALLA: ESPECIALIZACIÓN */
.specialisation {
  position: relative;
  min-height: 100svh;
  padding: clamp(150px,15vw,210px) clamp(24px,8vw,132px) clamp(110px,12vw,180px);
  overflow: hidden;
  color: var(--azul-profundo);
  background: var(--blanco-roto);
}

.specialisation > .section-number,
.specialisation__layout {
  position: relative;
  z-index: 2;
}

.section-number {
  margin: 0 0 clamp(55px,8vw,105px);
  color: rgba(2,47,77,.48);
  font-family: monospace;
  font-size: clamp(12px,.9vw,14px);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.specialisation__layout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  gap: clamp(55px,8vw,135px);
  align-items: end;
}

.specialisation h2 {
  margin: 0;
  font-size: clamp(48px,7.25vw,118px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.05em;
}

.specialisation h2 span,
.specialisation h2 em {
  display: block;
}

.specialisation h2 em {
  color: var(--azul-marca);
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
}

.specialisation__intro {
  display: block;
  margin: 0;
  color: var(--azul-marca);
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(18px,1.6vw,25px);
  line-height: 1.45;
}

.specialisation__note {
  max-width: 430px;
  margin-bottom: clamp(2px,.8vw,14px);
  padding-left: clamp(12px,2vw,34px);
}

.specialisation__detail {
  margin: 15px 0 0;
  color: rgba(2,47,77,.76);
  font-size: clamp(16px,1.25vw,20px);
  line-height: 1.6;
}

.atm-trace {
  position: absolute;
  right: auto;
  top: 56%;
  bottom: auto;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 40%;
  overflow: hidden;
  fill: var(--azul-marca);
  opacity: .58;
  pointer-events: none;
}

.atm-trace__line {
  fill: none;
  stroke: var(--azul-marca);
  stroke-width: 1.35;
  stroke-dasharray: 4 9;
  animation: move-trace 14s linear infinite;
}

.atm-trace__line:nth-of-type(1) { opacity: .42; animation-duration: 18s; }
.atm-trace__line:nth-of-type(2) { opacity: .72; animation-duration: 14s; }
.atm-trace__line:nth-of-type(3) { opacity: .38; animation-duration: 21s; animation-direction: reverse; }
.atm-trace__line:nth-of-type(4) { opacity: .58; animation-duration: 17s; }
.atm-trace__line:nth-of-type(5) { opacity: .34; animation-duration: 23s; animation-direction: reverse; }
.atm-trace__line:nth-of-type(6) { opacity: .48; animation-duration: 19s; }
.atm-trace__line:nth-of-type(7) { opacity: .3; animation-duration: 25s; }
.atm-trace__line:nth-of-type(8) { opacity: .55; animation-duration: 16s; animation-direction: reverse; }
.atm-trace__line:nth-of-type(9) { opacity: .4; animation-duration: 22s; }
.atm-trace__line:nth-of-type(10) { opacity: .62; animation-duration: 15s; animation-direction: reverse; }

.specialisation__radar {
  position: absolute;
  right: 1%;
  bottom: 0;
  z-index: 0;
  width: clamp(500px,48vw,780px);
  height: 72%;
  opacity: .1;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(235deg,black 40%,rgba(0,0,0,.52) 70%,transparent 96%);
  mask-image: linear-gradient(235deg,black 40%,rgba(0,0,0,.52) 70%,transparent 96%);
}

.specialisation__radar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: grayscale(.9) sepia(.18) hue-rotate(155deg) saturate(.55) contrast(1.02);
  /* Desplaza fuera de la sección solo el margen blanco inferior del archivo. */
  transform: translateY(31%);
}

/* TERCERA PANTALLA: EQUIPO */
.team {
  position: relative;
  min-height: 100svh;
  padding: clamp(150px,15vw,210px) clamp(24px,8vw,132px) clamp(90px,10vw,150px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(69,184,239,.15), transparent 28rem),
    linear-gradient(135deg, var(--azul-profundo), #064d73);
}

.team::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: linear-gradient(var(--linea) 1px,transparent 1px), linear-gradient(90deg,var(--linea) 1px,transparent 1px);
  background-size: clamp(75px,8vw,125px) clamp(75px,8vw,125px);
  pointer-events: none;
}

.team > * { position: relative; z-index: 1; }
.section-number--dark { color: rgba(233,234,232,.5); }

.team__heading {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(250px,.45fr);
  gap: clamp(45px,8vw,130px);
  align-items: end;
}

.team h2 {
  margin: 0;
  font-size: clamp(50px,7.25vw,118px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.05em;
}

.team h2 span,
.team h2 em { display: block; }

.team h2 em {
  margin-left: clamp(55px,9vw,150px);
  color: var(--verde-gris);
  font-family: Georgia,"Times New Roman",serif;
  font-weight: 400;
}

.team__statement > p {
  max-width: 720px;
  margin: 0;
}

.team__statement-lead,
.team__statement-middle,
.team__statement-closing {
  display: block;
}

.team__statement-lead {
  margin-bottom: 9px;
  color: rgba(233,234,232,.52);
  font: clamp(13px,1vw,16px)/1.2 monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.team__statement-middle,
.team__statement-closing {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px,2.2vw,35px);
  font-weight: 400;
  line-height: 1.16;
}

.team__statement-middle {
  color: var(--verde-gris);
}

.team__statement-closing {
  position: relative;
  padding-bottom: 14px;
  color: var(--azul-luz);
}

.team__statement-closing::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--azul-luz);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2.8s cubic-bezier(.2,.75,.25,1) .25s;
}

.team.is-line-active .team__statement-closing::after {
  transform: scaleX(1);
}

.team__statement {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(75px,8vw,120px);
  visibility: visible;
  opacity: 1;
  text-align: right;
}

.people {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: clamp(20px,3vw,46px);
  margin-top: clamp(95px,10vw,145px);
}

.person {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: clamp(24px,3vw,42px) 48% clamp(24px,3vw,42px) clamp(24px,3vw,42px);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  overflow: hidden;
  transition: background .35s ease;
}

.person:hover { background: rgba(255,255,255,.045); }
.person h3 { margin: 0 0 7px; font-size: clamp(36px,3.8vw,58px); font-weight: 400; letter-spacing: -.04em; }
.person__label { color: rgba(233,234,232,.56); font-family: monospace; font-size: clamp(12px,.9vw,14px); letter-spacing: .12em; text-transform: uppercase; }
.person__portrait { position: absolute; top: 0; right: 4%; width: 48%; height: 100%; margin: 0; object-fit: contain; object-position: center bottom; opacity: .78; filter: saturate(.8); transform-origin: bottom center; transition: opacity .35s ease, transform .45s ease, filter .35s ease; }
.person:first-child .person__portrait { transform: translateY(1.5%); }
.person__portrait--rosa { transform: scale(.92); }
.person__information { position: relative; z-index: 2; margin-top: auto; }
.person p { max-width: 330px; margin: 0; color: rgba(233,234,232,.7); font-size: clamp(15px,1.1vw,18px); line-height: 1.5; }
.person__email { display: inline-block; margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid rgba(191,209,213,.35); color: var(--verde-gris); font-family: monospace; font-size: clamp(11px,.85vw,13px); letter-spacing: .04em; overflow-wrap: normal; word-break: normal; transition: border-color .3s ease; }
.person__email:hover { border-color: var(--verde-gris); }
.person:hover .person__portrait { opacity: 1; filter: saturate(1); transform: scale(1.035); }
.person:first-child:hover .person__portrait { transform: translateY(1.5%) scale(1.035); }
.person:hover .person__portrait--rosa { transform: scale(.955); }

/* CUARTA PANTALLA: CONTACTO */
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: clamp(150px,15vw,210px) clamp(24px,8vw,132px) 38px;
  overflow: hidden;
  color: var(--azul-profundo);
  background: var(--blanco-roto);
}

.contact::after {
  content: "100000";
  position: absolute;
  right: -0.05em;
  bottom: -.18em;
  color: rgba(51,89,116,.055);
  font: clamp(130px,27vw,500px)/.8 monospace;
  letter-spacing: -.12em;
  pointer-events: none;
}

.contact > * { position: relative; z-index: 1; }
.contact .section-number { margin-bottom: clamp(40px,6vw,75px); }
.contact__content { width: min(1120px,100%); }
.contact__intro { margin: 0 0 24px; color: rgba(2,47,77,.55); font-size: clamp(13px,1.05vw,16px); letter-spacing: .17em; text-transform: uppercase; }

.contact h2 {
  margin: 0;
  font-size: clamp(62px,10vw,165px);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.06em;
}

.contact h2 span,
.contact h2 em { display: block; }
.contact h2 em { color: var(--azul-marca); font-family: Georgia,"Times New Roman",serif; font-weight: 400; }

.contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(520px,100%);
  margin-top: clamp(55px,7vw,90px);
  padding: 22px 0;
  border-top: 1px solid rgba(2,47,77,.3);
  border-bottom: 1px solid rgba(2,47,77,.3);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: padding .3s ease, color .3s ease;
}

.contact__choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,5vw,80px); width: min(900px,100%); margin-top: clamp(55px,7vw,90px); }
.contact__choices .contact__button { width: 100%; margin-top: 0; }
.contact__button > span:first-child { font-size: clamp(16px,1.35vw,21px); letter-spacing: .1em; }
.contact__button small { display: block; margin-bottom: 7px; color: rgba(2,47,77,.48); font: 9px monospace; }
.contact__button span:last-child { font-size: 22px; transition: transform .3s ease; }
.contact__button:hover { padding-right: 14px; padding-left: 14px; color: var(--azul-marca); }
.contact__button:hover span:last-child { transform: translate(4px,-4px); }

.funding {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.2vw, 30px);
  align-items: center;
  margin-top: clamp(145px, 17vw, 250px);
  padding: clamp(38px, 5vw, 68px) 0;
  border-top: 1px solid rgba(2,47,77,.18);
  border-bottom: 1px solid rgba(2,47,77,.18);
}

.funding__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 58px);
  width: 100%;
}

.funding__logos img {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 225px);
  height: clamp(42px, 5vw, 64px);
  object-fit: contain;
}

.funding__information {
  width: 100%;
  max-width: none;
}

.funding__information p {
  margin: 0;
  color: rgba(2,47,77,.76);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.65;
}

.funding__information strong {
  color: var(--azul-profundo);
  font: inherit;
  font-weight: 600;
}

.funding__information p > span {
  color: rgba(2,47,77,.76);
}

.funding__information .funding__hashtag {
  margin-top: 24px;
  color: var(--azul-marca);
  font-family: monospace;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: .1em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  margin-top: 100px;
  padding-top: 24px;
  border-top: 1px solid rgba(2,47,77,.18);
  color: rgba(2,47,77,.55);
  font: 10px monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }
.site-footer a { justify-self: end; }

@keyframes reveal-coverage {
  from { opacity: 0; transform: scale(.78) rotate(-8deg); filter: blur(10px); }
  to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}
@keyframes pulse { 50% { transform: scale(1.4); opacity: .62; } }
@keyframes move-trace { to { stroke-dashoffset: -140; } }
/* 11. MÓVIL */
@media (max-width: 700px) {
  :root { --alto-header: 82px; }
  .contact-link span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero { align-items: flex-start; padding-top: 165px; }
  h1 { font-size: clamp(54px,16.5vw,86px); line-height: .91; }
  h1 em { margin: 8px 0 0; }
  .hero__description { margin-left: 0; }
  .brand, .brand img { width: 104px; }
  .brand { height: 64px; }
  .coverage { top: 67%; right: -31vw; width: 105vw; opacity: .48; }
  .status { display: none; }
  .specialisation__layout { grid-template-columns: 1fr; gap: 42px; }
  .specialisation__note { max-width: 90%; margin: 0 0 20px auto; }
  .specialisation__radar { right: -8%; bottom: 0; width: 390px; height: 48%; opacity: .08; }
  .atm-trace {
    display: block;
    top: 62%;
    bottom: auto;
    width: 115%;
    height: 34%;
    left: -7.5%;
    opacity: .48;
  }
  .team__heading { grid-template-columns: 1fr; gap: 28px; }
  .team h2 em { margin-left: clamp(20px,7vw,42px); }
  .people { margin-top: 58px; }
  .people { grid-template-columns: 1fr; }
  .team__statement { justify-content: flex-start; margin-top: 65px; text-align: left; }
  .team__statement > p { max-width: 100%; }
  .team__statement-middle,
  .team__statement-closing { font-size: clamp(21px,7vw,30px); }
  .person { min-height: 350px; padding-right: 45%; }
  .person__portrait { right: 2%; width: 45%; height: 100%; opacity: .72; }
  .contact h2 { font-size: clamp(58px,17vw,90px); }
  .contact__choices { grid-template-columns: 1fr; gap: 18px; }
  .funding { gap: 22px; margin-top: 125px; }
  .funding__logos { justify-content: flex-start; gap: 28px 22px; }
  .funding__logos img { flex: 1 1 125px; width: min(42%, 190px); height: 48px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
