/* =========================================================================
   Mallorca Drone Studio — hoja de estilos única
   Orden: tokens · reset · base · layout · componentes · secciones · utilidades
   ========================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  /* Paleta: la de la marca, con la base oscurecida para dar aire cinematográfico */
  --ink:        #101418;
  --ink-2:      #171d24;
  --ink-3:      #1f2831;
  --night:      #30475e;
  --night-soft: #3c586f;
  --coral:      #f05454;
  --coral-dark: #d63c3c;
  --gold:       #dda853;
  --paper:      #f5f5f5;
  --paper-2:    #eceef0;
  --white:      #fff;

  --text-dim:   #a6b0ba;
  --text-mute:  #7c8894;
  --line:       color-mix(in srgb, var(--paper) 14%, transparent);
  --line-solid: #dfe3e7;

  /* Escala tipográfica fluida */
  --fs-xs:  .8125rem;
  --fs-sm:  .9375rem;
  --fs-md:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --fs-lg:  clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h4:  clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-h3:  clamp(1.35rem, 1.15rem + .8vw, 1.85rem);
  --fs-h2:  clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --fs-h1:  clamp(2.25rem, 1.3rem + 4.4vw, 5rem);

  /* Espaciado */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --section: clamp(3.5rem, 2rem + 7vw, 7.5rem);

  --wrap:      84rem;
  --wrap-text: 46rem;
  --gutter:    clamp(1rem, .5rem + 2vw, 2.5rem);

  --r-sm: 8px;  --r:  14px;  --r-lg: 22px;  --r-pill: 999px;

  --shadow:    0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -12px rgb(0 0 0 / .22);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .08), 0 28px 60px -28px rgb(0 0 0 / .40);

  --nav-h: 68px;
  --ease:  cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 60rem) { :root { --nav-h: 80px; } }

/* ---------- 2. Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }

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

body {
  margin: 0;
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 700; }
h5, h6 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }

p, ul, ol, dl, figure, table, pre, blockquote { margin: 0 0 var(--sp-5); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--coral); color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

/* ---------- 3. Layout ---------- */

.wrap      { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap--text{ width: min(100% - (var(--gutter) * 2), var(--wrap-text)); margin-inline: auto; }
.section   { padding-block: var(--section); }

.stack > * + * { margin-top: var(--sp-5); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--coral); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Franjas de color: el sitio alterna oscuro (inmersivo) y claro (lectura) */
.band--light { background: var(--paper); color: var(--ink); }
.band--light a { color: var(--night); }
.band--paper { background: var(--paper-2); color: var(--ink); }
.band--dark  { background: var(--ink); color: var(--paper); }
.band--night { background: var(--night); color: var(--white); }
.band--light h1, .band--light h2, .band--light h3,
.band--light h4, .band--paper h1, .band--paper h2,
.band--paper h3, .band--paper h4 { color: var(--ink); }

/* Excepciones a las dos reglas de arriba. Sin esto, `.band--paper h3` y
   `.band--light a` ganaban por especificidad y dejaban ilegibles los títulos
   sobre foto y el texto de los botones. */
.project .project__title { color: var(--white); }
.band--light a.btn, .band--paper a.btn,
.band--dark a.btn, .band--night a.btn { color: var(--btn-fg); }
.band--light a.arrow-link, .band--paper a.arrow-link { color: var(--coral); }
.band--light .card__title a, .band--paper .card__title a { color: var(--ink); }

/* ---------- 4. Cabecera ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgb(16 20 24 / .78), transparent);
  opacity: 1; transition: opacity .35s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck::before { opacity: 0; }

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto; display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-4);
}

.brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; text-decoration: none; }
.brand img, .brand svg { height: 30px; width: auto; }
@media (min-width: 60rem) { .brand img, .brand svg { height: 34px; } }
.brand__text { font-weight: 900; letter-spacing: -.03em; font-size: 1.05rem; color: var(--white); }

/* Navegación de escritorio */
.nav { display: none; }
@media (min-width: 60rem) {
  .nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.5rem); }
  .nav ul { display: flex; align-items: center; gap: clamp(.25rem, 1vw, 1rem); list-style: none; margin: 0; padding: 0; }
  .nav li { position: relative; }
  .nav a {
    display: block; padding: .55rem .7rem; font-size: var(--fs-sm); font-weight: 700;
    letter-spacing: .01em; text-decoration: none; color: var(--paper);
    border-radius: var(--r-sm); transition: color .2s, background .2s;
  }
  .nav a:hover, .nav a:focus-visible { color: var(--white); background: rgb(255 255 255 / .08); }
  .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--gold); }

  /* Submenús */
  .nav .sub-menu {
    position: absolute; top: calc(100% + .5rem); left: 0; min-width: 15rem;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
    padding: .4rem; box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav li:hover > .sub-menu,
  .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .nav .sub-menu a { padding: .6rem .75rem; font-weight: 400; }
  .menu-item-has-children > a::after {
    content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
}

/* Botón hamburguesa */
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 0; color: var(--paper);
}
@media (min-width: 60rem) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .15s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .2s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Panel móvil */
.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--ink); padding: var(--sp-5) var(--gutter) var(--sp-8);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 60rem) { .mobile-nav { display: none; } }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block; padding: .95rem .25rem; font-size: 1.2rem; font-weight: 700;
  text-decoration: none; letter-spacing: -.01em;
}
.mobile-nav .sub-menu { padding: 0 0 .75rem .75rem; }
.mobile-nav .sub-menu a { font-size: 1rem; font-weight: 400; padding: .5rem .25rem; color: var(--text-dim); }
.mobile-nav__cta { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }

/* Selector de idioma */
.langs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.langs a {
  display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 .45rem;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 900; letter-spacing: .06em;
  text-decoration: none; color: var(--text-dim); transition: background .2s, color .2s;
}
.langs a:hover { color: var(--white); background: rgb(255 255 255 / .1); }
.langs a[aria-current] { background: var(--paper); color: var(--ink); }
.langs--mobile { margin-top: var(--sp-5); }
.band--light .langs, .band--paper .langs { border-color: var(--line-solid); }
.band--light .langs a { color: #55606b; }
.band--light .langs a[aria-current] { background: var(--ink); color: var(--white); }

/* ---------- 5. Botones ---------- */

.btn {
  --btn-bg: var(--coral); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--coral); }
.btn--primary:hover { --btn-bg: var(--coral-dark); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: color-mix(in srgb, currentColor 40%, transparent); }
.btn--ghost:hover { --btn-bg: color-mix(in srgb, currentColor 12%, transparent); --btn-bd: currentColor; box-shadow: none; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--wa { --btn-bg: #25d366; --btn-fg: #062e13; }
.btn--lg { padding: 1.05rem 2rem; min-height: 56px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Enlace con flecha */
.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700;
  font-size: var(--fs-sm); text-decoration: none; color: var(--coral);
}
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- 6. Piezas de texto ---------- */

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-3);
}
.kicker::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }

.lead { font-size: var(--fs-lg); color: var(--text-dim); max-width: 62ch; }
.band--light .lead, .band--paper .lead { color: #4a5560; }

.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

/* ---------- 7. Hero ---------- */

.hero {
  position: relative; display: grid; align-items: end;
  /* Pantalla completa: el tope de 860 px dejaba una franja del bloque
     siguiente asomando en monitores altos. Las cabeceras de interior siguen
     siendo compactas con .hero--compact. */
  min-height: 100svh; overflow: clip; background: var(--ink);
  padding-top: var(--nav-h);
}
.hero--compact { min-height: min(62svh, 560px); }

.hero__media { position: absolute; inset: 0; z-index: 0; }
/* Apilados, no en flujo: el vídeo se inserta por JS después del póster y sin
   posicionar caía fuera de la vista, dejando el hero en negro. */
.hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(16 20 24 / .92) 0%, rgb(16 20 24 / .55) 38%, rgb(16 20 24 / .15) 70%, rgb(16 20 24 / .45) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto; padding-block: var(--sp-8) clamp(3rem, 8vh, 6rem);
}
.hero h1 { max-width: 16ch; margin-bottom: var(--sp-4); }
.hero .lead { color: color-mix(in srgb, var(--paper) 88%, transparent); max-width: 46ch; margin-bottom: var(--sp-6); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--text-dim);
}
.hero__meta strong { color: var(--white); font-weight: 900; display: block; font-size: 1.4rem; line-height: 1.1; }

.hero__scroll {
  position: absolute; bottom: 1.25rem; left: 50%; translate: -50% 0; z-index: 2;
  display: none; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
}
@media (min-width: 48rem) { .hero__scroll { display: grid; justify-items: center; gap: .4rem; } }
.hero__scroll::after {
  content: ""; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-hint 2.2s var(--ease) infinite;
}
@keyframes scroll-hint { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Botón de sonido/reproducción del vídeo de fondo */
.hero__videobtn {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgb(16 20 24 / .55); backdrop-filter: blur(8px); color: var(--paper); cursor: pointer;
}

/* ---------- 8. Tarjetas ---------- */

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.band--light .card, .band--paper .card { background: var(--white); border-color: var(--line-solid); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.card__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); flex: 1; }
.card__title { font-size: var(--fs-h4); margin: 0; }
.card__title a { text-decoration: none; }
/* El enlace cubre la tarjeta entera: área de toque generosa en móvil */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--text-dim); font-size: var(--fs-sm); margin: 0; flex: 1; }
.band--light .card__text, .band--paper .card__text { color: #55606b; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; }

.card__badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgb(16 20 24 / .72); backdrop-filter: blur(6px);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--paper);
}

/* Icono de servicio */
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold); margin-bottom: var(--sp-1);
}
.card__icon svg { width: 22px; height: 22px; }

/* ---------- 9. Proyectos ---------- */

.projects { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
@media (min-width: 64rem) {
  .projects--featured { grid-template-columns: repeat(6, 1fr); }
  .projects--featured > :nth-child(1) { grid-column: span 4; }
  .projects--featured > :nth-child(2) { grid-column: span 2; }
  .projects--featured > :nth-child(3) { grid-column: span 2; }
  .projects--featured > :nth-child(4) { grid-column: span 4; }
  .projects--featured > :nth-child(n+5) { grid-column: span 3; }
}

.project {
  position: relative; display: block; overflow: hidden; border-radius: var(--r);
  background: var(--ink-2); text-decoration: none; min-height: 22rem;
  isolation: isolate;
}
.project__media { position: absolute; inset: 0; z-index: -1; }
.project__media img, .project__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(16 20 24 / .9) 8%, rgb(16 20 24 / .25) 55%, transparent 85%);
}
.project__body { position: relative; padding: var(--sp-5); display: flex; flex-direction: column; justify-content: flex-end; min-height: 22rem; gap: .35rem; }
.project__title { font-size: var(--fs-h3); margin: 0; color: var(--white); }
.project__meta { font-size: var(--fs-sm); color: var(--gold); font-weight: 700; letter-spacing: .02em; }

/* ---------- 10. Cifras y logos ---------- */

.stats { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.stat { text-align: center; }
.stat__num { display: block; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--gold); }
.stat__label { font-size: var(--fs-sm); color: var(--text-dim); margin-top: .5rem; display: block; }
.band--light .stat__label { color: #55606b; }

/* ---------- 11. Proceso ---------- */

.steps { counter-reset: step; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: var(--fs-sm); font-weight: 900; letter-spacing: .1em; color: var(--coral);
}
.step::after { content: ""; position: absolute; top: .55rem; left: 2.4rem; right: 0; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.step p { color: var(--text-dim); font-size: var(--fs-sm); margin: 0; }
.band--light .step p { color: #55606b; }
.band--light .step::after { background: var(--line-solid); }

/* ---------- 12. Testimonios ---------- */

.quotes { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.quote {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6); border-radius: var(--r);
  background: var(--ink-2); border: 1px solid var(--line);
}
.band--light .quote, .band--paper .quote { background: var(--white); border-color: var(--line-solid); }
.quote__text { font-size: var(--fs-lg); line-height: 1.5; margin: 0; }
.quote__text::before { content: "“"; color: var(--gold); font-size: 2.5em; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.quote__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--white); font-weight: 900; flex: 0 0 auto; }
.quote__name { font-weight: 700; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--text-mute); }

/* ---------- 13. Acordeón / FAQ ---------- */

.faq { max-width: var(--wrap-text); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}
.band--light .faq details { border-color: var(--line-solid); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  cursor: pointer; list-style: none; font-weight: 700; font-size: var(--fs-lg);
  padding-right: .25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-top: .45em;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding-top: var(--sp-3); color: var(--text-dim); max-width: 62ch; }
.band--light .faq details > div { color: #55606b; }

/* ---------- 14. Formulario ---------- */

.form { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); } }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field .req { color: var(--coral); }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; min-height: 48px;
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  color: inherit; transition: border-color .2s, background .2s;
}
.band--light .field input, .band--light .field select, .band--light .field textarea,
.band--paper .field input, .band--paper .field select, .band--paper .field textarea {
  background: var(--white); border-color: var(--line-solid);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); outline: none;
  background: color-mix(in srgb, var(--paper) 10%, transparent);
}
.band--light .field input:focus { background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 1.1rem center, right .85rem center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .65rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: .15rem; accent-color: var(--coral); }
.field--check label { font-weight: 400; font-size: var(--fs-sm); color: var(--text-dim); }
.band--light .field--check label { color: #55606b; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); }
.field__error { font-size: var(--fs-xs); color: var(--coral); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: var(--fs-xs); color: var(--text-mute); }
.form__status { padding: var(--sp-4); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 700; }
.form__status--ok  { background: color-mix(in srgb, #25d366 18%, transparent); color: #9ff2bd; }
.form__status--err { background: color-mix(in srgb, var(--coral) 18%, transparent); color: #ffc0c0; }
.band--light .form__status--ok  { color: #0d7a37; }
.band--light .form__status--err { color: #a41f1f; }

/* ---------- 15. Blog ---------- */

.posts { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: var(--text-mute); }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.tag {
  display: inline-block; padding: .25rem .65rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--night) 30%, transparent); color: var(--paper);
  font-size: var(--fs-xs); font-weight: 700; text-decoration: none;
}
.band--light .tag { background: color-mix(in srgb, var(--night) 12%, transparent); color: var(--night); }

/* Entrada */
.entry { max-width: var(--wrap-text); margin-inline: auto; }
.entry__header { margin-bottom: var(--sp-6); }
.entry__content { font-size: var(--fs-lg); line-height: 1.75; }
.entry__content > * + * { margin-top: var(--sp-5); }
.entry__content h2 { font-size: var(--fs-h2); margin-top: var(--sp-8); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.entry__content h3 { font-size: var(--fs-h3); margin-top: var(--sp-7); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.entry__content h4 { margin-top: var(--sp-6); }
.entry__content ul, .entry__content ol { padding-left: 1.35em; }
.entry__content li + li { margin-top: .5rem; }
.entry__content li::marker { color: var(--coral); font-weight: 700; }
.entry__content a { color: var(--night); text-decoration-color: color-mix(in srgb, var(--night) 45%, transparent); }
.entry__content a:hover { text-decoration-color: currentColor; }
.entry__content img, .entry__content figure { border-radius: var(--r); overflow: hidden; }
.entry__content figcaption { font-size: var(--fs-sm); color: var(--text-mute); margin-top: .6rem; text-align: center; }
.entry__content blockquote {
  border-left: 3px solid var(--coral); padding: .25rem 0 .25rem 1.25rem;
  font-size: var(--fs-h4); font-weight: 700; line-height: 1.4;
}
.entry__content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry__content th, .entry__content td { padding: .7rem .85rem; border-bottom: 1px solid var(--line-solid); text-align: left; }
.entry__content th { font-weight: 900; background: var(--paper-2); }
.entry__content code { background: var(--paper-2); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.entry__content > .wp-block-image, .entry__content > figure { margin-inline: calc(var(--sp-4) * -1); }
@media (min-width: 48rem) { .entry__content > .wp-block-image, .entry__content > figure { margin-inline: 0; } }

/* Índice de contenidos */
.toc {
  background: var(--paper-2); border-radius: var(--r); padding: var(--sp-5);
  border: 1px solid var(--line-solid);
}
.toc h2 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-3); }
.toc ol { margin: 0; padding-left: 1.25em; font-size: var(--fs-sm); }
.toc li + li { margin-top: .4rem; }
.toc a { color: var(--night); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc .toc-h3 { margin-left: 1rem; list-style: none; }

/* Progreso de lectura */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--coral); z-index: 101; width: 0; transition: width .1s linear; }

/* Compartir */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.share__btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line-solid); color: inherit; text-decoration: none;
  background: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.share__btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.share__btn svg { width: 18px; height: 18px; }

/* Paginación */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: var(--sp-8); }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem;
  border-radius: var(--r-sm); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
}
.band--light .pagination .page-numbers { border-color: var(--line-solid); }
.pagination .current { background: var(--coral); border-color: var(--coral); color: #fff; }
.pagination a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---------- 16. Migas ---------- */

.breadcrumbs { font-size: var(--fs-xs); color: var(--text-mute); padding-block: var(--sp-4); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-dim); }

/* ---------- 17. Galería ---------- */

.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .is-portrait { aspect-ratio: 2/3; }
@media (min-width: 48rem) { .gallery--masonry > *:nth-child(4n+1) { grid-row: span 2; } .gallery--masonry > *:nth-child(4n+1) img { aspect-ratio: 3/4; } }

/* Visor a pantalla completa */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: var(--gutter);
  background: rgb(8 10 12 / .94); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88svh; width: auto; border-radius: var(--r-sm); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / .08);
  color: var(--paper); cursor: pointer; font-size: 1.5rem; line-height: 1;
}
.lightbox__close { top: var(--gutter); right: var(--gutter); }
.lightbox__nav--prev { left: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox__caption { position: absolute; bottom: var(--gutter); left: 50%; translate: -50% 0; font-size: var(--fs-sm); color: var(--text-dim); text-align: center; max-width: 40rem; }

/* ---------- 18. Vídeo ---------- */

.video-frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-3); aspect-ratio: 16/9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(16 20 24 / .25); border: 0; cursor: pointer; color: var(--white);
  transition: background .3s;
}
.video-frame__play:hover { background: rgb(16 20 24 / .1); }
.video-frame__play span {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--coral) 92%, transparent); box-shadow: 0 12px 40px -12px rgb(240 84 84 / .8);
  transition: transform .25s var(--ease);
}
.video-frame__play:hover span { transform: scale(1.08); }
.video-frame.is-playing .video-frame__play { display: none; }

/* ---------- 19. Ficha técnica ---------- */

.specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.band--light .specs { border-color: var(--line-solid); }
.specs > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding: .85rem 0; border-bottom: 1px solid var(--line); }
.band--light .specs > div { border-color: var(--line-solid); }
.specs dt { color: var(--text-mute); font-size: var(--fs-sm); margin: 0; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- 20. CTA ---------- */

.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--night) 0%, var(--ink) 65%);
  padding: clamp(2rem, 1rem + 5vw, 4.5rem);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 30rem; height: 30rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta p { color: color-mix(in srgb, var(--paper) 82%, transparent); max-width: 50ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* ---------- 21. Pie ---------- */

.site-footer { background: #0b0e11; color: var(--text-dim); padding-block: var(--sp-8) var(--sp-5); font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__news {
  display: grid; gap: var(--sp-5); align-items: center;
  padding-bottom: var(--sp-7); margin-bottom: var(--sp-7); border-bottom: 1px solid var(--line);
}
@media (min-width: 52rem) { .footer__news { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.footer__news h2 { font-size: var(--fs-h3); color: var(--white); text-transform: none; letter-spacing: -.02em; margin-bottom: .5rem; }
.footer__news p { margin: 0; }

.newsletter__row { display: grid; gap: var(--sp-3); }
@media (min-width: 30rem) { .newsletter__row { grid-template-columns: 1fr auto; } }
.newsletter input[type="email"] {
  width: 100%; padding: .8rem 1rem; min-height: 48px;
  background: color-mix(in srgb, var(--paper) 7%, transparent);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--paper);
}
.newsletter input[type="email"]:focus { border-color: var(--gold); outline: none; }
.newsletter input::placeholder { color: var(--text-mute); }
.newsletter .form__status:empty { display: none; }
.newsletter .form__status { margin-top: var(--sp-3); }
.newsletter .form__note { margin-top: var(--sp-3); }
.newsletter .form__note a { text-decoration: underline; }

.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 60rem) { .footer__brand { grid-column: span 1; max-width: 22rem; } }
.footer__brand img { height: 32px; margin-bottom: var(--sp-4); }
.footer h2, .footer__grid h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--white); margin-bottom: var(--sp-4); font-weight: 900; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__contact { display: grid; gap: .6rem; }
.footer__contact a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__contact svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between;
  align-items: center; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-mute);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }

/* ---------- 22. Botones flotantes ---------- */

.floaties { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 90; display: grid; gap: .6rem; }
@media (min-width: 60rem) { .floaties { right: var(--sp-5); bottom: var(--sp-5); } }
.floatie {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  box-shadow: var(--shadow-lg); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease);
}
.floatie:hover { transform: scale(1.08); }
.floatie svg { width: 26px; height: 26px; }
.floatie--wa { background: #25d366; }
.floatie--top { background: var(--ink-3); border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, transform .2s; }
.floatie--top.is-visible { opacity: 1; visibility: visible; }

/* Barra fija de acción en móvil */
.action-bar {
  position: fixed; inset: auto 0 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr;
  gap: .5rem; padding: .6rem var(--sp-4) calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.action-bar.is-visible { transform: none; }
@media (min-width: 60rem) { .action-bar { display: none; } }
body:has(.action-bar.is-visible) .floaties { bottom: 5.25rem; }

/* ---------- 23. Utilidades ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0; }

/* Aparición al hacer scroll: discreta y desactivable */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Impresión */
@media print {
  .site-header, .site-footer, .floaties, .action-bar, .hero__media, .share, .toc,
  .btn-row, .breadcrumbs, .calc-callout, .langs, .cta, .mobile-nav { display: none !important; }
  .hero { min-height: 0; padding-top: 0; }
  .hero h1, .band--light h2 { color: #000; }
  .band--light, .band--paper, .band--dark { background: #fff !important; color: #000 !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .entry__content a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ---------- 24. Mapa de zonas de vuelo ---------- */

.map-canvas {
  height: min(72svh, 620px); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-solid); background: var(--paper-2); z-index: 1;
}
.map-legend { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-4); font-size: var(--fs-sm); color: #4a5560; }
.map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.map-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.map-dot--red { background: var(--coral); }
.map-dot--amber { background: var(--gold); }
.map-dot--green { background: #3f9d6e; }
.leaflet-popup-content { font-family: inherit; font-size: var(--fs-sm); line-height: 1.5; }

/* ---------- 25. Calculadora ---------- */

.calc__step { display: none; border: 0; padding: 0; margin: 0; }
.calc__step.is-active { display: block; }
.calc__step legend h2 { margin-bottom: var(--sp-5); }
.calc__options { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.calc__options--rows { grid-template-columns: 1fr; }
.calc__option input { position: absolute; opacity: 0; }
.calc__card {
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
  padding: var(--sp-4) var(--sp-5); border: 1.5px solid var(--line-solid);
  border-radius: var(--r); background: var(--white); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .18s var(--ease);
}
.calc__options--rows .calc__card { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.calc__card small { color: #55606b; }
.calc__option input:checked + .calc__card { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent); }
.calc__option input:focus-visible + .calc__card { outline: 2px solid var(--gold); outline-offset: 3px; }
.calc__result {
  background: var(--paper-2); border: 1px solid var(--line-solid); border-radius: var(--r);
  padding: var(--sp-5); margin-bottom: var(--sp-5); text-align: center;
}
.calc__price { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 .35rem; color: var(--ink); }

/* ---------- 26. YouTube lite ---------- */

.yt-lite {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden;
  background: var(--ink-3) center/cover no-repeat; cursor: pointer; border: 0; padding: 0; width: 100%;
  display: block;
}
.yt-lite::after {
  content: ""; position: absolute; inset: 0;
  background: rgb(16 20 24 / .25); transition: background .3s;
}
.yt-lite:hover::after { background: rgb(16 20 24 / .1); }
.yt-lite.is-playing::after { display: none; }
.yt-lite__btn {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; z-index: 2;
  border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: color-mix(in srgb, var(--coral) 92%, transparent);
  box-shadow: 0 12px 40px -12px rgb(240 84 84 / .8); color: #fff;
  transition: transform .25s var(--ease);
}
.yt-lite:hover .yt-lite__btn { transform: scale(1.08); }
.yt-lite.is-playing .yt-lite__btn { display: none; }
.yt-lite__note { font-size: var(--fs-xs); color: var(--text-mute); margin-top: .5rem; }

/* Calculadora v2: barra de progreso, precios y desglose */
.calc { position: relative; }
.calc__bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem;
  list-style: none; margin: 0 0 var(--sp-6); padding: 0; counter-reset: none;
}
.calc__bar li { display: grid; justify-items: center; gap: .4rem; position: relative; color: var(--text-mute); }
.calc__bar li::before {
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
  background: var(--line-solid); z-index: 0;
}
.calc__bar li:first-child::before { display: none; }
.calc__bar-dot {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line-solid); font-weight: 900; font-size: var(--fs-xs);
  position: relative; z-index: 1; transition: background .25s, border-color .25s, color .25s;
}
.calc__bar-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.calc__bar .is-current { color: var(--ink); }
.calc__bar .is-current .calc__bar-dot { border-color: var(--coral); background: var(--coral); color: #fff; }
.calc__bar .is-done { color: var(--ink); cursor: pointer; }
.calc__bar .is-done .calc__bar-dot { border-color: var(--coral); color: var(--coral); }
.calc__bar .is-done::before, .calc__bar .is-current::before { background: var(--coral); }

.calc__badge {
  display: inline-block; padding: .25rem .6rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--night) 10%, transparent); color: var(--night);
  font-size: var(--fs-xs); font-weight: 900; white-space: nowrap; margin-top: .25rem;
}
.calc__option input:checked + .calc__card .calc__badge { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-dark); }

.calc__step { animation: calc-in .35s var(--ease); }
@keyframes calc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .calc__step { animation: none; } }

.calc__breakdown { list-style: none; margin: 0 0 var(--sp-4); padding: 0; text-align: left; display: grid; gap: .4rem; }
.calc__breakdown li {
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: baseline;
  padding-bottom: .4rem; border-bottom: 1px dashed var(--line-solid); font-size: var(--fs-sm); color: #4a5560;
}
.calc__breakdown strong { color: var(--ink); white-space: nowrap; }

.calc__live {
  position: sticky; bottom: 1rem; z-index: 5;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  margin-top: var(--sp-6); padding: .8rem 1.25rem; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
}
.calc__live strong { font-size: 1.15rem; letter-spacing: -.01em; color: var(--white); }
.calc__live[hidden] { display: none; }

/* ¿Se puede volar hoy? */
.wind__grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-bottom: var(--sp-4); }
.wind__spot {
  display: grid; gap: .35rem; padding: var(--sp-4) var(--sp-5);
  background: var(--white); border: 1.5px solid var(--line-solid); border-left-width: 5px; border-radius: var(--r);
}
.wind__spot--green { border-left-color: #3f9d6e; }
.wind__spot--amber { border-left-color: var(--gold); }
.wind__spot--red { border-left-color: var(--coral); }
.wind__name { display: inline-flex; align-items: center; gap: .5rem; font-weight: 900; color: var(--ink); }
.wind__vals { display: flex; flex-wrap: wrap; gap: .35rem var(--sp-4); font-size: var(--fs-sm); color: #55606b; }
.wind__vals strong { color: var(--ink); }

/* Aviso de la calculadora sobre los formularios de presupuesto */
.calc-callout {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-7);
  background: color-mix(in srgb, var(--gold) 14%, var(--white));
  border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--r);
}
.calc-callout__icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: color-mix(in srgb, var(--gold) 24%, transparent); color: #8a6420;
}
.calc-callout__text { flex: 1 1 16rem; display: grid; gap: .15rem; color: var(--ink); }
.calc-callout__text strong { font-size: var(--fs-lg); letter-spacing: -.01em; }
.calc-callout__text span { font-size: var(--fs-sm); color: #6a5a35; }
.calc-callout .btn { flex: 0 0 auto; }
@media (max-width: 32rem) { .calc-callout .btn { width: 100%; } }
