/* ==========================================================================
   NexaJet — estilos comunes
   Una sola hoja para todas las páginas. Tipografía alojada en esta carpeta.
   Paleta oscura: azul noche del logotipo, plata y la estela roja como único acento.
   ========================================================================== */

@font-face{
  font-family:"Archivo";
  src:url("fuentes/archivo-latin-wdth.woff2") format("woff2");
  font-weight:100 900;
  font-stretch:62% 125%;
  font-style:normal;
  font-display:swap;
}

:root{
  color-scheme:dark;
  /* Fondos, del más hondo al más claro */
  --deep:#0A1019;          /* franja de flota, cifras y pie */
  --deep-2:#1B2739;        /* sobre --deep: al pasar el ratón */
  --bg-2:#0E151F;          /* franjas alternas de la página */
  --bg:#121A26;            /* fondo de la página: el azul noche del logotipo */
  --surface:#18222F;       /* tarjetas y paneles */
  /* Texto */
  --ink:#F4F6F8;
  --ink-2:#C3CCD7;
  --steel:#98A5B4;
  /* Líneas y bordes */
  --line:rgba(244,246,248,.14);
  --line-2:rgba(244,246,248,.24);
  --rule:rgba(244,246,248,.42);
  --silver:#2B394C;
  --silver-2:#4D5E75;
  /* Marca */
  --red:#CE2E37;           /* botones y la estela */
  --red-deep:#A8242C;      /* botón rojo al pasar el ratón */
  --red-soft:#F2606A;      /* rojo para texto pequeño sobre fondo oscuro */
  --max:1240px;
  --gut:clamp(20px,5vw,56px);
  --head-h:64px;
  --font:"Archivo",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
@media (min-width:900px){ :root{ --head-h:76px; } }

/* ---------- base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--head-h) + 16px);
}
html{ background:var(--bg); }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:1.0625rem;
  line-height:1.62;
  font-stretch:100%;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body.is-locked{ overflow:hidden; }
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
h1,h2,h3,h4{
  margin:0;
  font-weight:540;
  line-height:1.06;
  letter-spacing:-.015em;
  font-stretch:112%;
  text-wrap:balance;
}
p{ margin:0; text-wrap:pretty; }
ul,ol{ margin:0; padding:0; list-style:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
::selection{ background:var(--red); color:#fff; }
:focus-visible{ outline:2px solid var(--red-soft); outline-offset:3px; }

.wrap{ width:100%; max-width:var(--max); margin-inline:auto; padding-inline:var(--gut); }
.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip{
  position:absolute; left:-9999px; top:8px; z-index:300;
  background:var(--deep); color:#fff; padding:.75rem 1rem; text-decoration:none;
}
.skip:focus{ left:8px; }
.nowrap{ white-space:nowrap; }
[hidden]{ display:none !important; }

/* Idioma: se muestra solo el bloque que coincide con el idioma activo */
html[data-lang="en"] [lang="es"],
html[data-lang="es"] [lang="en"]{ display:none !important; }
/* Planos de cabina (SVG inline): el propio dibujo oculta el español, aquí se vuelve a mostrar */
html[data-lang="es"] .pl [lang="es"]{ display:inline !important; }

/* ---------- botones y enlaces ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  min-height:48px; padding:0 1.5rem;
  font-weight:600; font-size:.95rem; line-height:1; font-stretch:108%; letter-spacing:.005em;
  text-decoration:none; text-align:center;
  border:1.5px solid transparent; border-radius:0; background:none;
  transition:background-color .15s,color .15s,border-color .15s;
}
.btn--red{ background:var(--red); color:#fff; }
.btn--red:hover{ background:var(--red-deep); }
.btn--line,.btn--light{ border-color:rgba(244,246,248,.5); color:var(--ink); }
.btn--line:hover,.btn--light:hover{ background:var(--ink); border-color:var(--ink); color:var(--bg); }
.btn--sm{ min-height:42px; padding:0 1.1rem; font-size:.875rem; }
.btn[disabled],.btn.is-off{ opacity:.55; pointer-events:none; }
.btn svg{ width:1em; height:1em; flex:none; }

.link{
  font-weight:600; font-stretch:106%;
  text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:.28em;
  text-decoration-color:var(--red);
}
.link:hover{ text-decoration-color:currentColor; }
.link svg{ display:inline-block; width:.8em; height:.8em; margin-left:.3em; vertical-align:-.05em; }

/* ---------- cabecera ---------- */
.head{
  position:fixed; inset:0 0 auto 0; z-index:100; height:var(--head-h);
  background:transparent;
  transition:background-color .2s ease, box-shadow .2s ease;
}
.head.is-solid,
.head.has-panel{
  background:rgba(18,26,38,.9);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);
  backdrop-filter:saturate(1.4) blur(10px);
  box-shadow:0 1px 0 var(--line);
}
.head__bar{ height:100%; display:flex; align-items:center; gap:clamp(14px,2.6vw,40px); }
.brand{ display:block; flex:none; }
.brand img{ height:28px; width:auto; }
@media (min-width:900px){ .brand img{ height:36px; } }

.nav{ display:none; gap:clamp(18px,2.2vw,34px); }
.nav a{
  font-weight:500; font-size:.95rem; font-stretch:106%; text-decoration:none;
  padding:10px 0; border-bottom:2px solid transparent;
}
.nav a:hover{ border-bottom-color:var(--ink); }
.nav a[aria-current]{ border-bottom-color:var(--red); }

.head__tools{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.lang{
  display:none; border:1.5px solid rgba(244,246,248,.5); font-size:.8125rem; font-weight:600; font-stretch:108%;
}
.lang button{
  min-width:40px; min-height:34px; padding:0 .5rem; border:0; background:transparent; letter-spacing:.04em;
}
.lang button[aria-pressed="true"]{ background:var(--ink); color:var(--bg); }
.portal{
  display:none; align-items:center; gap:.4em;
  font-weight:500; font-size:.9rem; font-stretch:104%; text-decoration:none; color:var(--ink-2);
  border-bottom:1.5px solid transparent;
}
.portal:hover{ color:var(--ink); border-bottom-color:var(--ink); }
.portal svg{ width:.8em; height:.8em; }
.cta-short{ display:inline; }
.cta-long{ display:none; }

.burger{
  width:44px; height:44px; border:0; background:transparent; margin-right:-10px;
  display:inline-flex; align-items:center; justify-content:center;
}
.burger span,.burger span::before,.burger span::after{
  display:block; width:22px; height:2px; background:var(--ink); position:relative;
  transition:transform .2s ease, background-color .2s ease;
}
.burger span::before,.burger span::after{ content:""; position:absolute; left:0; }
.burger span::before{ top:-7px; }
.burger span::after{ top:7px; }
.burger[aria-expanded="true"] span{ background:transparent; }
.burger[aria-expanded="true"] span::before{ transform:translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after{ transform:translateY(-7px) rotate(-45deg); }

.panel{
  position:fixed; inset:var(--head-h) 0 0 0; z-index:99;
  background:var(--bg); padding:28px var(--gut) calc(32px + env(safe-area-inset-bottom));
  display:flex; flex-direction:column; gap:28px; overflow-y:auto;
  opacity:0; visibility:hidden; transform:translateY(-10px);
  transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.panel.is-open{ opacity:1; visibility:visible; transform:none; transition-delay:0s; }
.panel__links a{
  display:block; padding:14px 0; border-bottom:1px solid var(--line);
  font-size:1.65rem; font-weight:600; font-stretch:112%; letter-spacing:-.01em; text-decoration:none;
}
.panel__links a[aria-current]{ color:var(--red-soft); }
.panel__foot{ display:flex; flex-wrap:wrap; align-items:center; gap:18px 24px; }
.panel__mail{ margin-top:auto; font-size:.9375rem; color:var(--steel); }
.panel__mail a{ text-decoration-color:var(--red); text-underline-offset:.2em; }
.panel .lang{ display:inline-flex; }
.panel .portal{ display:inline-flex; }

@media (min-width:640px){
  .cta-short{ display:none; }
  .cta-long{ display:inline; }
}
@media (min-width:1120px){
  .nav{ display:flex; }
  .lang{ display:inline-flex; }
  .portal{ display:inline-flex; }
  .burger{ display:none; }
  .panel{ display:none; }
}

/* ---------- portada ---------- */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(72% 95% at 82% 30%,rgba(58,92,140,.34) 0%,rgba(58,92,140,0) 70%),
    linear-gradient(180deg,#141D2B 0%,var(--bg) 60%,#0F1722 100%);
  padding-top:calc(var(--head-h) + clamp(28px,6vw,80px));
}
.hero__grid{
  display:grid; gap:clamp(8px,3vw,48px);
  grid-template-columns:minmax(0,1fr);
  align-items:end;
}
.hero__text{ padding-bottom:clamp(8px,3vw,56px); align-self:center; container-type:inline-size; }
.display{
  font-size:clamp(2.1rem,17cqw,5.6rem);
  font-weight:540; font-stretch:114%; letter-spacing:-.025em; line-height:.98;
}
.lead{
  margin-top:clamp(18px,2.4vw,30px);
  max-width:34em; font-size:clamp(1.05rem,1rem + .35vw,1.25rem); line-height:1.55; color:var(--ink-2);
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:clamp(22px,3vw,36px); }
@media (max-width:520px){ .hero__cta .btn,.band__cta .btn{ flex:1 1 100%; } }

.hero__art{ position:relative; justify-self:end; width:min(100%,560px); margin-right:calc(var(--gut) * -.2); }
.hero__art svg{ width:100%; height:auto; overflow:visible; }
.fin__swoosh{ transform-box:fill-box; }
@keyframes swoop{
  from{ transform:translate(-26%,22%); opacity:0; }
  25%{ opacity:1; }
  to{ transform:none; opacity:1; }
}
.fin__swoosh{ animation:swoop 1.15s cubic-bezier(.2,.75,.2,1) .15s both; }

html[data-lang="es"] .display{ font-size:clamp(2.1rem,13cqw,5.6rem); }
@media (min-width:900px){
  .hero__grid{ grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); }
  .hero__art{ width:100%; max-width:520px; margin-right:0; }
}
@media (max-width:899px){
  .hero__art{ width:min(78%,360px); margin-top:-6px; }
}

/* franja de flota: matrículas */
.strip{ background:var(--deep); color:var(--ink); position:relative; z-index:2; }
.strip__in{ display:flex; align-items:stretch; }
.strip__label{
  flex:none; display:flex; align-items:center; padding:0 22px 0 0;
  font-size:.875rem; font-weight:600; font-stretch:110%; color:var(--ink-2);
}
.strip__plates{
  display:flex; flex:1; overflow-x:auto; scroll-snap-type:x proximity;
  scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.strip__plates::-webkit-scrollbar{ display:none; }
.tailplate{
  flex:1 0 auto; min-width:150px; padding:20px 22px; text-decoration:none; color:inherit;
  border-left:1px solid var(--line-2); scroll-snap-align:start;
  transition:background-color .15s ease;
}
.tailplate:hover{ background:var(--deep-2); }
.tailplate b{
  display:block; font-size:1.0625rem; font-weight:650; font-stretch:122%; letter-spacing:.03em; line-height:1;
  font-variant-numeric:tabular-nums;
}
.tailplate small{ display:block; margin-top:8px; font-size:.8125rem; color:var(--ink-2); line-height:1.2; }
@media (max-width:700px){ .strip__label{ display:none; } .tailplate{ min-width:140px; padding:16px 18px; } }

/* ---------- secciones ---------- */
.section{ padding-block:clamp(56px,9vw,128px); }
.section--alt{ background:var(--bg-2); }
.section--deep{ background:var(--deep); color:var(--ink); }
.section--tight{ padding-block:clamp(40px,6vw,80px); }

.h2{ font-size:clamp(1.9rem,1.1rem + 3vw,3.4rem); font-weight:520; letter-spacing:-.02em; }
.h2--xl{ font-size:clamp(2.2rem,1.1rem + 4.2vw,4.4rem); letter-spacing:-.025em; line-height:1; }
.h3{ font-size:clamp(1.25rem,1.05rem + .7vw,1.65rem); font-weight:530; }
.sec-head{
  display:grid; gap:18px 48px; margin-bottom:clamp(28px,5vw,56px);
  grid-template-columns:minmax(0,1fr); align-items:end;
}
.sec-head p{ max-width:36em; color:var(--ink-2); }
@media (min-width:900px){
  .sec-head{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); }
  .sec-head--stack{ grid-template-columns:minmax(0,1fr); }
}
.prose{ display:grid; gap:1.1em; max-width:36em; color:var(--ink-2); }
.prose strong{ color:var(--ink); font-weight:600; }

/* presentación */
.about__grid{ display:grid; gap:28px 72px; grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:900px){ .about__grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }

/* ---------- placas de matrícula (hueco de foto) ---------- */
.plate{
  position:relative; overflow:hidden; aspect-ratio:16/10; color:var(--ink);
  background:
    radial-gradient(120% 95% at 14% 0%,rgba(96,128,176,.24) 0%,rgba(96,128,176,0) 62%),
    linear-gradient(135deg,#1F2D42 0%,#131C29 100%);
  container-type:inline-size;
}
.plate__reg{
  position:absolute; left:.04em; bottom:-.12em; white-space:nowrap; user-select:none;
  font-size:34cqw; font-weight:760; font-stretch:125%; letter-spacing:0; font-kerning:none; line-height:1;
  color:transparent; -webkit-text-stroke:1.5px rgba(244,246,248,.2);
}
/* Navegadores sin unidades de contenedor (Safari 15 o anterior): tamaños de respaldo en vw */
@supports not (width:1cqw){
  .display{ font-size:clamp(2.1rem,8vw,4.2rem); }
  html[data-lang="es"] .display{ font-size:clamp(2.1rem,6.4vw,3.4rem); }
  .plate__reg{ font-size:min(14vw,130px); }
}
.plate__tag{
  position:absolute; left:16px; top:14px; z-index:2;
  font-size:.8125rem; font-weight:650; font-stretch:118%; letter-spacing:.05em; font-variant-numeric:tabular-nums;
}
.plate__mark{ position:absolute; right:-4%; top:-8%; width:44%; height:auto; }
.plate img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.plate.has-photo .plate__reg,
.plate.has-photo .plate__mark{ display:none; }
.plate.has-photo::after{
  content:""; position:absolute; inset:0 0 auto 0; height:42%;
  background:linear-gradient(180deg,rgba(10,16,25,.6),transparent);
}
.plate.has-photo .plate__tag{ color:#fff; }

/* ---------- categorías (portada) ---------- */
.tiles{ display:grid; gap:20px; grid-template-columns:minmax(0,1fr); }
@media (min-width:640px){ .tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1080px){ .tiles{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; } }
.tile{ display:flex; flex-direction:column; background:var(--surface); text-decoration:none; color:inherit; }
.tile .plate{ aspect-ratio:4/3; }
@media (max-width:639px){
  .tiles{
    display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    margin-inline:calc(var(--gut) * -1); padding:0 var(--gut) 8px; scroll-padding-inline:var(--gut); scrollbar-width:none;
  }
  .tiles::-webkit-scrollbar{ display:none; }
  .tile{ flex:0 0 76%; scroll-snap-align:start; }
}
.tile__body{ padding:20px 22px 24px; display:grid; gap:6px; }
.tile__name{ font-size:1.35rem; font-weight:540; font-stretch:112%; letter-spacing:-.01em; }
.tile__meta{ color:var(--steel); font-size:.9375rem; }
.tile__models{ font-size:.9375rem; color:var(--ink-2); }
.tile:hover .tile__name{ text-decoration:underline; text-decoration-color:var(--red); text-decoration-thickness:2px; text-underline-offset:.2em; }

/* ---------- pasos ---------- */
.steps{ display:grid; gap:0; grid-template-columns:minmax(0,1fr); counter-reset:paso; }
.step{ padding:26px 0 28px; border-top:1px solid var(--line-2); display:grid; gap:10px; align-content:start; }
.step::before{
  counter-increment:paso; content:counter(paso);
  font-size:2.6rem; font-weight:300; font-stretch:125%; line-height:1; color:var(--red-soft);
  font-variant-numeric:tabular-nums;
}
.step h3{ font-size:1.35rem; }
.step p{ color:var(--ink-2); max-width:26em; }
@media (min-width:800px){
  .steps{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 40px; }
}

/* ---------- bases ---------- */
.bases{ display:grid; gap:28px 48px; grid-template-columns:minmax(0,1fr); }
@media (min-width:800px){ .bases{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.base{ border-top:2px solid var(--rule); padding-top:20px; display:grid; gap:10px; }
.base__code{
  font-size:clamp(3.2rem,2rem + 6vw,6.5rem); font-weight:570; font-stretch:122%;
  letter-spacing:-.02em; line-height:.95;
}
.base__city{ font-size:1.2rem; font-weight:560; font-stretch:110%; }
.base p{ color:var(--ink-2); max-width:26em; }

/* ---------- banda de tripulación ---------- */
.band{ display:grid; gap:24px 48px; grid-template-columns:minmax(0,1fr); align-items:center; }
.band__cta{ display:flex; flex-wrap:wrap; gap:12px; }
@media (min-width:900px){ .band{ grid-template-columns:minmax(0,1.2fr) auto; } }

/* ---------- cabecera de página interior ---------- */
.phero{
  position:relative; overflow:hidden;
  background:radial-gradient(60% 120% at 88% 0%,rgba(58,92,140,.22) 0%,rgba(58,92,140,0) 70%),var(--bg-2);
  padding:calc(var(--head-h) + clamp(36px,7vw,88px)) 0 clamp(36px,6vw,72px);
}
.phero::after{
  content:""; position:absolute; right:max(var(--gut),calc((100% - var(--max)) / 2 + var(--gut))); bottom:clamp(16px,3.6vw,44px);
  width:min(32%,380px); aspect-ratio:225/112.5; pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 225 112.5'%3E%3Cpath d='M0 89.9C75.6 60.4 149.8 29.3 225 0C206.2 37.6 173.9 76.9 149.4 112.5C149.5 112.2 148.8 110.8 149 110C149.6 108.4 151.2 106.9 151.7 105.3C155.1 95 157.4 85.2 158.6 73.9C159.1 69.1 160.1 63.3 157.2 58.9C151 49.5 124.3 58.1 115.1 58.6C89.8 60 48.9 73.6 24.4 81.8C16.1 84.6 8.4 88.4 0 89.9Z' fill='%23F4F6F8'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity:.07;
}
.phero__in{ position:relative; z-index:1; }
.phero h1{ font-size:clamp(2.4rem,1.2rem + 5.2vw,4.9rem); font-weight:540; font-stretch:114%; letter-spacing:-.025em; line-height:1; }
.phero .lead{ max-width:34em; }

/* ---------- flota ---------- */
.filters{
  position:sticky; top:var(--head-h); z-index:50;
  background:rgba(18,26,38,.92); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.filters__in{ display:flex; gap:10px; padding-block:12px; overflow-x:auto; scrollbar-width:none; }
.filters__in::-webkit-scrollbar{ display:none; }
.chip{
  flex:none; min-height:40px; padding:0 1.1rem; border:1.5px solid var(--silver-2); border-radius:999px;
  background:transparent; font-weight:600; font-size:.9rem; font-stretch:106%; color:var(--ink-2);
  transition:background-color .15s,color .15s,border-color .15s;
}
.chip:hover{ border-color:var(--ink); color:var(--ink); }
.chip[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:var(--bg); }

.cat{ padding-block:clamp(36px,6vw,72px) 0; }
.cat[hidden]{ display:none; }
.cat__head{ display:grid; gap:8px 40px; margin-bottom:24px; grid-template-columns:minmax(0,1fr); align-items:end; }
.cat__head p{ color:var(--ink-2); max-width:34em; }
@media (min-width:900px){ .cat__head{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
.cards{ display:grid; gap:20px; grid-template-columns:minmax(0,1fr); }
@media (min-width:700px){ .cards{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1100px){ .cards{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; } }

.card{ display:flex; flex-direction:column; background:var(--surface); scroll-margin-top:calc(var(--head-h) + 70px); }
.card:target{ outline:2px solid var(--red); outline-offset:4px; }
@media (min-width:700px){
  .cards--1{ grid-template-columns:minmax(0,1fr); }
  .cards--1 .card{ flex-direction:row; }
  .cards--1 .plate{ flex:0 0 50%; aspect-ratio:auto; min-height:340px; }
  .cards--1 .card__body{ padding:clamp(24px,3.4vw,44px); justify-content:center; }
  .cards--1 .card__name{ font-size:clamp(2rem,1.3rem + 2vw,2.8rem); }
}
@media (min-width:1100px){
  .cards--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.card__body{ padding:22px 24px 26px; display:flex; flex-direction:column; gap:14px; flex:1; }
.card__kind{ font-size:.875rem; font-weight:600; font-stretch:108%; color:var(--red-soft); }
.card__name{ font-size:1.7rem; font-weight:540; font-stretch:114%; letter-spacing:-.02em; line-height:1.02; }
.card__full{ font-size:.9rem; color:var(--steel); margin-top:4px; }
.card__role{ color:var(--ink-2); }
.specs{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; margin:4px 0 0; padding:18px 0 0;
  border-top:1px solid var(--line);
}
.specs div{ display:grid; gap:2px; }
.specs dt{ order:2; font-size:.8125rem; color:var(--steel); }
.specs dd{ order:1; margin:0; font-size:1.2rem; font-weight:560; font-stretch:106%; font-variant-numeric:tabular-nums; }
.card__note{ font-size:.9375rem; color:var(--ink-2); padding-top:14px; border-top:1px solid var(--line); }
.card__foot{ margin-top:auto; padding-top:6px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.card__off{ font-size:.875rem; color:var(--steel); }

.tablewrap{
  --tw:#121A26; --tw0:rgba(18,26,38,0);
  overflow-x:auto; -webkit-overflow-scrolling:touch; border-top:2px solid var(--rule);
  /* sombras laterales que avisan de que la tabla se desplaza */
  background:
    linear-gradient(to right,var(--tw) 30%,var(--tw0)) left center / 44px 100% no-repeat local,
    linear-gradient(to left,var(--tw) 30%,var(--tw0)) right center / 44px 100% no-repeat local,
    linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0)) left center / 14px 100% no-repeat scroll,
    linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0)) right center / 14px 100% no-repeat scroll;
}
.section--alt .tablewrap{ --tw:#0E151F; --tw0:rgba(14,21,31,0); }
.compare{ width:100%; min-width:720px; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.compare th,.compare td{ padding:14px 16px 14px 0; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
.compare th{ font-size:.8125rem; font-weight:600; color:var(--steel); }
.compare tbody th{ font-size:1rem; color:var(--ink); font-weight:600; font-stretch:108%; }
.compare tbody th,.compare thead th:first-child{ position:sticky; left:0; z-index:1; background:var(--tw); }
.compare td.num,.compare th.num{ text-align:right; padding-right:22px; }

/* ---------- definiciones (operaciones) ---------- */
.defs{ border-top:2px solid var(--rule); }
.def{ display:grid; gap:6px 48px; padding:24px 0; border-bottom:1px solid var(--line); grid-template-columns:minmax(0,1fr); }
.def dt{ font-size:1.25rem; font-weight:560; font-stretch:110%; letter-spacing:-.01em; }
.def dd{ margin:0; color:var(--ink-2); max-width:38em; }
@media (min-width:800px){ .def{ grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); } }

/* ---------- tripulación ---------- */
.roster{ width:100%; border-collapse:collapse; }
.roster th{ font-size:.8125rem; font-weight:600; color:var(--steel); text-align:left; padding:0 16px 12px 0; }
.roster td{ padding:18px 16px 18px 0; border-top:1px solid var(--line); vertical-align:top; }
.roster tbody tr:first-child td{ border-top:2px solid var(--rule); }
.roster tbody{ border-bottom:1px solid var(--line); }
.roster .who{ font-size:1.15rem; font-weight:560; font-stretch:110%; }
.rating{ display:inline-block; margin:0 6px 6px 0; padding:3px 10px; border:1px solid var(--silver-2); border-radius:999px; font-size:.8125rem; font-weight:500; }
.muted{ color:var(--steel); }
@media (max-width:699px){
  .roster thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .roster,.roster tbody,.roster tr,.roster td{ display:block; width:100%; }
  .roster tr{ padding:18px 0; border-top:1px solid var(--line); }
  .roster tbody tr:first-child{ border-top:2px solid var(--rule); }
  .roster td{ padding:3px 0; border:0 !important; }
  .roster td[data-l]::before{ content:attr(data-l) ": "; color:var(--steel); font-size:.875rem; }
  html[data-lang="es"] .roster td[data-l]::before{ content:attr(data-l-es) ": "; }
}

.portalcard{
  display:grid; gap:18px 40px; padding:clamp(24px,4vw,40px); background:var(--surface); color:var(--ink);
  grid-template-columns:minmax(0,1fr); align-items:center;
}
.portalcard p{ color:var(--ink-2); max-width:34em; margin-top:8px; }
@media (min-width:800px){ .portalcard{ grid-template-columns:minmax(0,1fr) auto; } }

/* ---------- puestos (únete) ---------- */
.roles{ border-top:2px solid var(--rule); }
.role{ display:grid; gap:6px 40px; padding:22px 0; border-bottom:1px solid var(--line); grid-template-columns:minmax(0,1fr); align-items:baseline; }
.role h3{ font-size:1.3rem; }
.role p{ color:var(--ink-2); max-width:36em; }
.role__state{ font-size:.875rem; font-weight:600; color:var(--red-soft); }
@media (min-width:800px){ .role{ grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr) auto; } }

/* ---------- formularios ---------- */
.formgrid{ display:grid; gap:40px 72px; grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:960px){ .formgrid{ grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); } }
.form{ display:grid; gap:20px; }
.field{ display:grid; gap:7px; }
.field label,.field .label{ font-weight:600; font-size:.9375rem; font-stretch:104%; }
.field .hint{ font-size:.875rem; color:var(--steel); }
.field input,.field select,.field textarea{
  width:100%; min-height:50px; padding:.75rem .9rem; font-size:1rem;
  background:var(--deep); border:1.5px solid var(--silver-2); border-radius:0; appearance:none; -webkit-appearance:none;
}
.field ::placeholder{ color:var(--steel); opacity:1; }
.field select{
  padding-right:2.6rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C3CCD7' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 1rem center; background-size:12px 8px;
}
.field textarea{ min-height:140px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:2px solid var(--red-soft); outline-offset:1px; border-color:var(--red-soft); }
.field[hidden]{ display:none; }
.check{ display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:start; font-size:.9375rem; color:var(--ink-2); }
.check input{ width:22px; height:22px; margin:2px 0 0; accent-color:var(--red); }
.check a{ color:var(--ink); }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.notice{ padding:16px 18px; border-left:4px solid var(--red); background:var(--surface); }
.notice--ok{ border-left-color:#3FA46A; }
.notice[hidden]{ display:none; }
.aside{ display:grid; gap:22px; padding:clamp(22px,3vw,32px); background:var(--surface); }
.aside h2{ font-size:1.35rem; }
.aside ul{ display:grid; gap:10px; }
.aside li{ display:grid; grid-template-columns:auto 1fr; gap:12px; color:var(--ink-2); }
.aside li::before{ content:""; width:10px; height:10px; margin-top:.5em; background:var(--red); clip-path:polygon(0 100%,100% 0,100% 100%); }
.aside p{ color:var(--ink-2); }

/* ---------- legal ---------- */
.legal{ display:grid; gap:36px 72px; grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:960px){ .legal{ grid-template-columns:minmax(0,.7fr) minmax(0,2fr); } }
.legal__index{ display:grid; gap:10px; }
@media (min-width:960px){ .legal__index{ position:sticky; top:calc(var(--head-h) + 24px); } }
.legal__index a{ font-weight:500; text-decoration:none; padding:6px 0; border-bottom:1px solid var(--line); }
.legal__index a:hover{ color:var(--red-soft); }
.legal__body{ display:grid; gap:48px; max-width:44em; }
.legal__body section{ display:grid; gap:14px; }
.legal__body h2{ font-size:1.7rem; }
.legal__body h3{ font-size:1.1rem; margin-top:10px; }
.legal__body p,.legal__body li{ color:var(--ink-2); }
.legal__body ul{ display:grid; gap:8px; padding-left:1.1em; list-style:disc; }
.legal__body a{ color:var(--ink); text-decoration-color:var(--red); text-underline-offset:.2em; }
.legal__body .todo{ background:var(--surface); border-left:4px solid var(--silver-2); padding:12px 16px; }

/* ---------- pie ---------- */
.foot{ background:var(--deep); color:var(--ink-2); border-top:1px solid var(--line); padding:clamp(48px,7vw,88px) 0 calc(28px + env(safe-area-inset-bottom)); }
.foot a{ color:var(--ink); text-decoration:none; }
.foot a:hover{ text-decoration:underline; text-decoration-color:var(--red-soft); text-underline-offset:.25em; }
.foot__grid{ display:grid; gap:36px 28px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.foot__brand{ grid-column:1 / -1; display:grid; gap:18px; max-width:30em; }
.foot__brand img{ width:min(200px,64vw); height:auto; }
.foot__col{ display:grid; gap:10px; align-content:start; }
.foot__col h2{ font-size:.875rem; font-weight:600; font-stretch:108%; color:var(--steel); margin-bottom:4px; letter-spacing:.01em; }
.foot__col a,.foot__col span.line{ font-size:.9375rem; overflow-wrap:anywhere; }
.foot__col a svg{ display:inline-block; width:.75em; height:.75em; margin-left:.3em; }
@media (min-width:900px){
  .foot__grid{ grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); }
  .foot__brand{ grid-column:auto; }
}
.foot__legal{
  margin-top:clamp(36px,5vw,64px); padding-top:22px; border-top:1px solid var(--line-2);
  display:grid; gap:10px; font-size:.8125rem; color:var(--steel);
}
.foot__legal p{ max-width:56em; }

@media (max-width:699px){ .phero::after{ display:none; } }

/* ---------- piezas sueltas ---------- */
.display .l{ display:block; }
.more{ margin-top:clamp(24px,4vw,40px); }
.note{ margin-top:18px; max-width:44em; font-size:.875rem; color:var(--steel); }
.card__sim{ font-size:.875rem; color:var(--steel); }
.hero__photo{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.cat{ scroll-margin-top:56px; }
[data-render="categorias"]:empty,[data-render="flota"]:empty,[data-render="pilotos"]:empty,[data-render="comparar"]:empty{ min-height:200px; }
.tablewrap:focus-visible{ outline-offset:-2px; }
.lede{ font-size:clamp(1.1rem,1.02rem + .4vw,1.3rem); line-height:1.5; color:var(--ink-2); max-width:36em; }
.section--deep .link{ text-decoration-color:var(--red-soft); }

/* ---------- avisos de carga ---------- */
.empty{ padding:28px 0; color:var(--steel); }

/* ==========================================================================
   Ficha de aeronave (avion.html)
   ========================================================================== */
.arrow{ display:inline-block; width:1em; height:.75em; flex:none; }

.ahero{
  background:var(--bg-2); overflow:hidden;
  padding:calc(var(--head-h) + clamp(18px,2.6vw,32px)) 0 clamp(32px,5vw,64px);
}
.crumb{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-size:.875rem; color:var(--steel); }
.crumb a{ color:var(--ink-2); text-decoration:none; border-bottom:1px solid var(--silver-2); padding-block:2px; }
.crumb a:hover{ border-bottom-color:var(--red); color:var(--ink); }
.crumb [aria-current]{ color:var(--ink); font-weight:600; }
.ahero__grid{
  display:grid; gap:clamp(22px,4vw,56px); margin-top:clamp(18px,2.6vw,36px);
  grid-template-columns:minmax(0,1fr); align-items:center;
}
.ahero__art{ order:-1; }
.ahero__text{ display:grid; gap:0; align-content:center; justify-items:start; }
.ahero__name{
  margin-top:8px; font-size:clamp(2.4rem,1.2rem + 5.2vw,4.9rem);
  font-weight:540; font-stretch:114%; letter-spacing:-.025em; line-height:1;
}
.ahero__full{ margin-top:12px; font-size:1.05rem; color:var(--steel); }
.ahero .lead{ margin-top:clamp(14px,2vw,22px); }
.ahero .hero__cta{ align-items:center; }
@media (min-width:900px){
  .ahero__grid{ grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); }
  .ahero__art{ order:0; }
}

/* cifras principales */
.figs{ background:var(--deep); color:var(--ink); }
.figs__in{
  margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px;
}
.figs__in > div{ display:flex; flex-direction:column; gap:3px; padding:20px 0 22px; }
.figs__in > div:nth-child(n+3){ border-top:1px solid var(--line-2); }
.figs dt{ order:2; font-size:.8125rem; color:var(--ink-2); }
.figs dd{ order:1; margin:0; display:grid; gap:10px; }
.figs__val{
  font-size:clamp(1.45rem,1.05rem + 1.6vw,2.25rem); font-weight:540; font-stretch:112%;
  font-variant-numeric:tabular-nums; line-height:1.1; letter-spacing:-.01em;
}
.figs__bar{ display:block; height:3px; background:rgba(244,246,248,.18); }
.figs__bar i{ display:block; height:100%; background:var(--red-soft); }
.figs__note{ padding:0 0 18px; font-size:.8125rem; color:var(--steel); }
.figs__foot{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 28px; padding-bottom:18px; }
.figs__foot .figs__note{ padding:0; }
.figs__map{ font-size:.875rem; }
@media (min-width:1040px){
  .figs__in{ grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:0; }
  .figs__in > div{ padding:28px 26px 26px; border-left:1px solid var(--line-2); }
  .figs__in > div:first-child{ padding-left:0; border-left:0; }
  .figs__in > div:nth-child(n+3){ border-top:0; }
}

/* resumen */
.ov{ display:grid; gap:32px clamp(32px,6vw,88px); grid-template-columns:minmax(0,1fr); align-items:start; }
.ov .lede{ margin-top:clamp(16px,2vw,24px); }
@media (min-width:900px){ .ov{ grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); } }
.hl{ padding:clamp(22px,3vw,32px); background:var(--surface); border-top:2px solid var(--rule); }
.hl h3{ font-size:1.15rem; margin-bottom:16px; }
.ticks{ display:grid; gap:12px; }
.ticks li{ display:grid; grid-template-columns:auto 1fr; gap:12px; color:var(--ink-2); }
.ticks li::before{ content:""; width:10px; height:10px; margin-top:.5em; background:var(--red); clip-path:polygon(0 100%,100% 0,100% 100%); }

/* mapa de alcance */
.range{
  --amber:#FFC247; --map-sea:#101B29; --map-land:#1C2B3D; --map-in:#38587A;
  display:grid; gap:20px; min-width:0;
}
.range__ctl{ display:grid; gap:16px 20px; grid-template-columns:minmax(0,1fr); }
@media (min-width:700px){ .range__ctl{ grid-template-columns:repeat(2,minmax(0,1fr)); max-width:780px; } }
.range .field select{ background-color:var(--surface); }
.range__read{ max-width:48em; color:var(--ink-2); }
.range__read b{ color:var(--ink); font-weight:600; }
.range__scroll{
  overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch;
  background:var(--map-sea); border-top:2px solid var(--rule);
}
.range__scroll:focus-visible{ outline-offset:-3px; }
.range__svg{ display:block; width:100%; min-width:780px; height:auto; }
.rm-sea{ fill:var(--map-sea); }
.rm-grat{ fill:none; stroke:rgba(152,165,180,.14); stroke-width:.6; }
.rm-land{ fill:var(--map-land); }
.rm-land--in{ fill:var(--map-in); }
.rm-border{ fill:none; stroke:var(--map-sea); stroke-width:.6; stroke-linejoin:round; }
.rm-frame{ fill:none; stroke:rgba(244,246,248,.16); stroke-width:1; vector-effect:non-scaling-stroke; }
.rm-fill{ fill:rgba(206,46,55,.2); stroke:none; pointer-events:none; }
.rm-ring{ fill:none; stroke:var(--red-soft); stroke-width:2.5; stroke-linejoin:round; vector-effect:non-scaling-stroke; pointer-events:none; }
.rm-other{ fill:none; stroke:var(--steel); stroke-width:1.3; stroke-opacity:.8; stroke-dasharray:6 4; vector-effect:non-scaling-stroke; pointer-events:none; }
.rm-m{ cursor:pointer; }
.rm-hit{ fill:transparent; }
.rm-halo{ display:none; fill:rgba(255,194,71,.16); stroke:var(--amber); stroke-width:1.2; pointer-events:none; }
.rm-dot{ fill:var(--steel); fill-opacity:.8; stroke:var(--map-sea); stroke-width:1.2; transition:fill .25s; pointer-events:none; }
.rm-m.is-in .rm-dot,.rm-m.is-sel .rm-dot{ fill:var(--ink); fill-opacity:1; }
.rm-m--base .rm-halo{ display:inline; }
.rm-m--base .rm-dot,.rm-m--base.is-in .rm-dot,.rm-m--base.is-sel .rm-dot{ fill:var(--amber); fill-opacity:1; stroke:var(--deep); stroke-width:1.5; }
.rm-sel{ display:none; fill:none; stroke:var(--ink); stroke-width:1.8; pointer-events:none; }
.rm-m.is-sel .rm-sel{ display:inline; }
.rm-lab{
  font:600 14px/1 var(--font); fill:var(--ink); pointer-events:none;
  paint-order:stroke; stroke:var(--map-sea); stroke-width:4px; stroke-linejoin:round;
}
.rm-lab--base{ fill:var(--amber); }
.rm-lab--ring{ fill:var(--red-soft); font-size:12.5px; }
.rm-lab--other{ fill:var(--ink-2); font-size:12px; font-weight:500; }
.rm-lead{ stroke:rgba(244,246,248,.45); stroke-width:1; vector-effect:non-scaling-stroke; pointer-events:none; }
.range__hint{ font-size:.8125rem; color:var(--steel); }
.range__key{ display:flex; flex-wrap:wrap; gap:8px 24px; font-size:.875rem; color:var(--ink-2); }
.range__key li{ display:inline-flex; align-items:center; gap:9px; }
.rk{ display:inline-block; flex:none; }
.rk--base{ width:12px; height:12px; border-radius:50%; background:var(--amber); box-shadow:0 0 0 3px rgba(255,194,71,.28); }
.rk--in{ width:9px; height:9px; border-radius:50%; background:var(--ink); }
.rk--out{ width:9px; height:9px; border-radius:50%; background:var(--steel); opacity:.8; }
.rk--ring{ width:22px; height:0; border-top:2.5px solid var(--red-soft); }
.rk--other{ width:22px; height:0; border-top:1.5px dashed var(--steel); }
.range__list{ border-top:1px solid var(--line); padding-top:14px; }
.range__list summary{ cursor:pointer; font-weight:600; }
.range__cols{ display:grid; gap:24px 48px; margin-top:16px; grid-template-columns:minmax(0,1fr); }
@media (min-width:760px){ .range__cols{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.range__cols h3{ font-size:1rem; font-weight:600; margin-bottom:8px; }
.rl{ display:grid; font-size:.9375rem; }
.rl li{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 14px; padding:7px 0; border-bottom:1px solid var(--line); color:var(--ink-2); }
.rl--3 li{ grid-template-columns:minmax(0,1fr) auto minmax(0,8.5em); }
.rl__d{ font-variant-numeric:tabular-nums; color:var(--steel); text-align:right; }
.rl__x{ color:var(--ink); text-align:right; }
.rl__k{ color:var(--steel); font-size:.8125em; margin-left:.35em; font-variant-numeric:tabular-nums; }
.rl .rl__none{ display:block; }
.range__note{ max-width:50em; font-size:.8125rem; color:var(--steel); }

/* cabina y plano */
.cabin{ display:grid; gap:32px clamp(32px,6vw,88px); grid-template-columns:minmax(0,1fr); align-items:start; }
.cabin__text{ display:grid; gap:18px; max-width:36em; }
.cabin--noplan .planfig{ display:none; }
@media (min-width:1000px){
  .cabin{ grid-template-columns:minmax(0,1fr) minmax(0,510px); }
  .cabin--noplan{ grid-template-columns:minmax(0,1fr); }
  .cabin__text{ position:sticky; top:calc(var(--head-h) + 28px); }
}
.planfig{
  margin:0; padding:clamp(12px,2.4vw,24px); background:var(--surface); border-top:2px solid var(--rule);
  max-width:540px;
}
.planfig__art svg{ display:block; width:100%; max-width:470px; height:auto; margin-inline:auto; }
.planfig figcaption{ margin-top:18px; padding-top:16px; border-top:1px solid var(--line); display:grid; gap:12px; font-size:.9375rem; color:var(--ink-2); }
.planfig__key{ display:flex; flex-wrap:wrap; gap:6px 20px; font-size:.875rem; }
.planfig__key li{ display:inline-flex; align-items:center; gap:8px; }
.key{ display:inline-block; flex:none; }
.key--door{ width:4px; height:16px; background:#E5555C; }
.key--seat{ width:14px; height:14px; background:linear-gradient(135deg,#C6BAA6,#9E927F); border-radius:4px 4px 6px 6px; }
.key--table{ width:16px; height:11px; background:linear-gradient(135deg,#926945,#5A3D27); border-radius:3px; }
.key--bag{
  width:16px; height:14px; border:1.2px solid #5C6F8B;
  background:repeating-linear-gradient(135deg,#4D607C 0 1.4px,#142030 1.4px 4px);
}
.planfig__note{ font-size:.8125rem; color:var(--steel); }

/* fotos */
.gal{ display:grid; gap:22px 14px; grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (min-width:760px){ .gal{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 18px; } }
.gal__i{ display:grid; gap:8px; align-content:start; }
.gal__btn{
  display:block; width:100%; padding:0; border:0; aspect-ratio:4/3; overflow:hidden;
  background:var(--bg-2); cursor:zoom-in;
}
.gal__btn img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gal__btn:hover img{ transform:scale(1.03); }
.gal__cap{ font-size:.9375rem; color:var(--ink-2); }
.gal__cr{ font-size:.75rem; color:var(--steel); }
.gal__cr a,.lb__cr a{ color:inherit; text-decoration-color:var(--red); text-underline-offset:.2em; }
.nophotos{
  display:grid; gap:16px; justify-items:start; max-width:44em;
  padding:clamp(20px,3vw,32px); background:var(--surface); border-left:4px solid var(--silver-2);
}
.nophotos p{ color:var(--ink-2); }
.nophotos .btn svg{ width:.75em; height:.75em; }

/* visor de fotos */
.lb{
  position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center;
  padding:max(56px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  background:rgba(10,18,30,.97); color:#fff;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.lb__fig{ margin:0; display:grid; gap:14px; justify-items:center; max-width:min(1100px,100%); max-height:100%; }
.lb__img{ max-width:100%; max-height:calc(100vh - 190px); max-height:calc(100dvh - 190px); object-fit:contain; background:#0E1A2B; }
.lb__cap{ display:grid; gap:4px; justify-items:center; max-width:56em; text-align:center; font-size:.9375rem; }
.lb__cr{ font-size:.8125rem; color:var(--ink-2); }
.lb__btn{
  position:absolute; z-index:1; width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center;
  border:1.5px solid rgba(244,246,248,.4); background:rgba(20,36,58,.7); color:#fff;
}
.lb__btn:hover{ background:var(--deep-2); border-color:#fff; }
.lb__btn svg{ width:18px; height:18px; }
.lb__close{ top:max(10px,env(safe-area-inset-top)); right:max(10px,env(safe-area-inset-right)); }
.lb__prev,.lb__next{ top:50%; margin-top:-24px; }
.lb__prev{ left:max(8px,env(safe-area-inset-left)); }
.lb__next{ right:max(8px,env(safe-area-inset-right)); }
.lb :focus-visible{ outline-color:#fff; }
@media (max-width:640px){
  .lb__prev,.lb__next{ top:auto; bottom:max(10px,env(safe-area-inset-bottom)); margin-top:0; }
}

/* especificaciones */
.spec{ margin-top:clamp(8px,2vw,16px); }
.specgroup{ display:grid; gap:6px 40px; grid-template-columns:minmax(0,1fr); padding:22px 0 10px; border-top:1px solid var(--line); }
.specgroup:first-child{ border-top:2px solid var(--rule); }
.specgroup h3{ font-size:1.15rem; font-stretch:110%; }
@media (min-width:800px){ .specgroup{ grid-template-columns:minmax(0,.55fr) minmax(0,2fr); } }
.speclist{ margin:0; display:grid; }
.specrow{ display:grid; gap:2px 28px; grid-template-columns:minmax(0,1fr); padding:11px 0; border-bottom:1px solid var(--line); }
.specrow:last-child{ border-bottom:0; }
@media (min-width:640px){ .specrow{ grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); } }
.specrow dt{ color:var(--steel); font-size:.9375rem; }
.specrow dd{ margin:0; font-variant-numeric:tabular-nums; }
.specnote{ display:block; margin-top:3px; font-size:.8125rem; color:var(--steel); font-variant-numeric:normal; }
.src{ margin-left:.3em; font-size:.7rem; font-weight:700; line-height:0; }
.src a{ color:var(--red-soft); text-decoration:none; padding:2px 3px; }
.src a:hover{ text-decoration:underline; }
.srcs{ margin-top:clamp(28px,4vw,44px); }
.srcs h3{ font-size:1.05rem; font-stretch:110%; }
.sources{ display:grid; gap:8px; margin-top:12px; font-size:.9375rem; }
.sources li{ display:grid; grid-template-columns:1.4rem minmax(0,1fr); gap:8px; align-items:baseline; scroll-margin-top:calc(var(--head-h) + 24px); }
.sources li:target{ background:var(--surface); outline:6px solid var(--surface); }
.sources .link{ overflow-wrap:anywhere; }
.src__l{ font-weight:700; color:var(--red-soft); }
.aboutfig{ margin-top:22px; max-width:46em; border-top:1px solid var(--line); padding-top:14px; }
.aboutfig summary{ cursor:pointer; font-weight:600; }
.aboutfig p{ margin-top:10px; font-size:.9375rem; color:var(--ink-2); }
.facts{ display:grid; gap:24px 48px; margin-top:clamp(28px,4vw,48px); grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.facts h3{ font-size:1rem; font-stretch:108%; margin-bottom:6px; }
.facts p{ color:var(--ink-2); }

/* anterior y siguiente */
.pager{ display:grid; gap:14px; grid-template-columns:minmax(0,1fr); }
@media (min-width:640px){ .pager{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.pager__a{
  display:grid; gap:4px; align-content:start; padding:20px 22px 22px;
  background:var(--surface); text-decoration:none; border-top:2px solid var(--rule);
}
.pager__a:hover{ border-top-color:var(--red); }
.pager__a--next{ text-align:right; justify-items:end; }
.pager__a--next:only-child{ grid-column:2; }
@media (max-width:639px){ .pager__a--next:only-child{ grid-column:auto; } }
.pager__dir{ display:inline-flex; align-items:center; gap:.5em; font-size:.8125rem; color:var(--steel); }
.pager__a b{ font-size:1.3rem; font-weight:540; font-stretch:112%; letter-spacing:-.01em; }
.pager__a small{ color:var(--steel); font-size:.875rem; }
.card__quote{ font-size:.9rem; }
.card__name a{ text-decoration:none; }
.card__name a:hover{ text-decoration:underline; text-decoration-color:var(--red); text-decoration-thickness:2px; text-underline-offset:.15em; }

/* matrícula no encontrada */
.idlist{ display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr)); }
.idlist__a{ display:grid; gap:4px; padding:18px 20px; background:var(--surface); text-decoration:none; border-top:2px solid var(--rule); }
.idlist__a:hover{ border-top-color:var(--red); }
.idlist__a b{ font-size:1.1rem; font-stretch:120%; letter-spacing:.03em; font-variant-numeric:tabular-nums; }
.idlist__a small{ color:var(--steel); }

/* ==========================================================================
   Programas (programas.html y aviso de la portada)
   ========================================================================== */
.progs{ display:grid; gap:20px; grid-template-columns:minmax(0,1fr); }
@media (min-width:760px){ .progs{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; } }
.prog{
  display:grid; gap:12px; align-content:start; padding:clamp(22px,3vw,34px);
  background:var(--surface); text-decoration:none; border-top:2px solid var(--rule);
}
.prog:hover{ border-top-color:var(--red); }
.prog__name{ font-size:clamp(1.5rem,1.2rem + 1vw,2rem); font-weight:540; font-stretch:114%; letter-spacing:-.02em; }
.prog p{ color:var(--ink-2); max-width:30em; }
.prog .link{ justify-self:start; margin-top:4px; }

.twocol{ display:grid; gap:28px clamp(32px,6vw,88px); grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:900px){
  .twocol{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .twocol--card{ grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; }
}
.prose .ticks{ margin-top:4px; }

/* la tarjeta */
.mcard{
  position:relative; overflow:hidden; width:100%; max-width:440px; aspect-ratio:1.586;
  container-type:inline-size; color:var(--ink); border-radius:14px;
  background:
    radial-gradient(90% 120% at 100% 0%,rgba(122,150,196,.30) 0%,rgba(122,150,196,0) 62%),
    linear-gradient(135deg,#2B3C57 0%,#182539 55%,#0F1826 100%);
  box-shadow:0 26px 50px -24px rgba(0,0,0,.75),inset 0 0 0 1px rgba(244,246,248,.14);
}
.mcard__logo{ position:absolute; left:6cqw; top:6cqw; width:30cqw; height:auto; }
.mcard__mark{ position:absolute; right:-7cqw; top:-9cqw; width:60cqw; height:auto; }
.mcard__level{
  position:absolute; left:6cqw; bottom:17cqw; font-size:15cqw; font-weight:300; font-stretch:125%;
  letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums;
}
.mcard__who{
  position:absolute; left:6cqw; right:6cqw; bottom:6cqw; display:flex; justify-content:space-between; align-items:baseline; gap:8px;
  font-size:3.5cqw; font-weight:600; font-stretch:112%; letter-spacing:.08em;
}
.mcard__no{ font-variant-numeric:tabular-nums; color:var(--ink-2); }
@supports not (width:1cqw){
  .mcard__logo{ left:22px; top:22px; width:128px; }
  .mcard__mark{ right:-28px; top:-36px; width:250px; }
  .mcard__level{ left:22px; bottom:62px; font-size:clamp(34px,9vw,60px); }
  .mcard__who{ left:22px; right:22px; bottom:22px; font-size:clamp(11px,2.6vw,15px); }
}

/* niveles de la tarjeta */
.levels{ display:grid; gap:18px; grid-template-columns:minmax(0,1fr); margin-top:clamp(32px,5vw,56px); }
@media (min-width:800px){ .levels{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; } }
.level{
  display:grid; gap:10px; align-content:start; padding:clamp(20px,2.6vw,28px);
  background:var(--surface); border-top:4px solid var(--silver-2);
}
.level:nth-child(2){ border-top-color:#AEB8C3; }
.level:nth-child(3){ border-top-color:var(--red); }
.level__code{ font-size:clamp(1.8rem,1.3rem + 1.4vw,2.4rem); font-weight:560; font-stretch:122%; letter-spacing:-.01em; line-height:1; }
.level__from{ font-weight:600; color:var(--ink-2); }
.level__list{ display:grid; gap:8px; margin-top:6px; padding-top:14px; border-top:1px solid var(--line); }
.level__list li{ display:grid; grid-template-columns:auto 1fr; gap:10px; color:var(--ink-2); }
.level__list li::before{ content:""; width:9px; height:9px; margin-top:.55em; background:var(--red); clip-path:polygon(0 100%,100% 0,100% 100%); }

/* tablas de programas */
.compare--s{ min-width:0; }
.compare--text{ min-width:760px; }
.compare--text th,.compare--text td{ white-space:normal; vertical-align:top; padding-right:22px; }
.compare--text tbody th{ min-width:150px; }
.compare--text td{ min-width:190px; }
.compare--text td .link{ white-space:nowrap; }

/* preguntas frecuentes */
.faqgrid{ display:grid; gap:28px 72px; grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:960px){ .faqgrid{ grid-template-columns:minmax(0,.7fr) minmax(0,2fr); } }
.faq{ border-top:2px solid var(--rule); }
.faq__i{ border-bottom:1px solid var(--line); }
.faq__i summary{
  display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 0; cursor:pointer;
  font-weight:600; font-size:1.1rem; font-stretch:106%; list-style:none;
}
.faq__i summary::-webkit-details-marker{ display:none; }
.faq__i summary::after{ content:"+"; flex:none; font-size:1.6rem; font-weight:400; line-height:1; color:var(--red-soft); transition:transform .2s ease; }
.faq__i[open] summary::after{ transform:rotate(45deg); }
.faq__i p{ padding:0 0 22px; max-width:40em; color:var(--ink-2); }


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