/* ==========================================================================
   FlyWorkDrone — hoja de estilos principal
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --brand: #e3141b;
  --brand-600: #c20f15;
  --brand-50: #fdeced;

  /* Neutros */
  --ink: #0b0f14;
  --ink-2: #121921;
  --ink-3: #1b242f;
  --ink-line: rgba(255, 255, 255, 0.12);
  --ink-muted: rgba(255, 255, 255, 0.72);
  --bg: #f5f4f0;
  --surface: #ffffff;
  --text: #14171c;
  --muted: #565d68;
  --line: #e2e0da;

  /* Paleta térmica (ironbow) */
  --heat: linear-gradient(90deg, #2b0f55 0%, #7a1fa2 22%, #e3141b 52%, #ff7a00 76%, #ffd84d 100%);
  --heat-text: linear-gradient(90deg, #ff4040 0%, #ff8a00 55%, #ffd84d 100%);

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --section-pad: clamp(64px, 9vw, 120px);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.06), 0 24px 60px rgba(16, 24, 40, 0.14);
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid #ff8a8e;
  outline-offset: 3px;
  border-radius: 4px;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.mono {
  font-family: var(--font-mono);
}

/* --- Botones ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(227, 20, 27, 0.28);
}

.btn-primary:hover {
  background: var(--brand-600);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: #fff;
  color: var(--text);
}

.btn-light:hover {
  background: #f1efea;
}

.btn-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-sm {
  padding: 0.7em 1.15em;
  font-size: 0.925rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* --- Etiquetas ----------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(227, 20, 27, 0.15);
}

.on-dark .eyebrow {
  color: #ff5a5f;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Cabecera ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: #fff;
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: auto;
}

.brand b {
  color: var(--brand);
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.site-nav li a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav li a:hover,
.site-nav li a[aria-current="page"] {
  color: #fff;
}

.site-nav li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: #fff;
}

.header-phone .icon {
  width: 16px;
  height: 16px;
  color: #ff5a5f;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-cta-mobile {
  display: none;
}

@media (max-width: 1080px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    padding: 12px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  }

  .nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--ink-line);
  }

  .site-nav li a {
    display: block;
    padding: 15px 0;
    font-size: 1.05rem;
  }

  .site-nav li a[aria-current="page"]::after {
    display: none;
  }

  .nav-cta-mobile {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
}

/* --- Hero (portada) ------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 70%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.95) 0%, rgba(11, 15, 20, 0.86) 34%, rgba(11, 15, 20, 0.4) 66%, rgba(11, 15, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(11, 15, 20, 0.96) 0%, rgba(11, 15, 20, 0) 38%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.6) 0%, rgba(11, 15, 20, 0) 22%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
  padding-block: clamp(64px, 10vw, 128px) clamp(40px, 6vw, 72px);
}

.hero h1 {
  max-width: 15.5ch;
  margin-bottom: 24px;
}

.hot-text {
  background: var(--heat-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 54ch;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Visor térmico decorativo */
.hud {
  position: relative;
  min-height: 400px;
  height: 100%;
}

.hud-frame {
  position: absolute;
  inset: 6% 0 4% 6%;
}

.hud-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.hud-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hud-readout {
  position: absolute;
  top: 14px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 1.6s steps(2, start) infinite;
}

.hud-scale {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 150px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hud-scale-bar {
  height: 6px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: var(--heat);
}

.hud-scale-labels {
  display: flex;
  justify-content: space-between;
}

.spot {
  position: absolute;
  width: 0;
  height: 0;
}

.spot-core {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c2 0%, #ffd84d 28%, #ff7a00 56%, rgba(227, 20, 27, 0.9) 78%, rgba(227, 20, 27, 0) 100%);
  box-shadow: 0 0 22px 6px rgba(255, 122, 0, 0.55);
}

.spot-ring {
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 216, 77, 0.85);
  border-radius: 50%;
  animation: ping 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.spot:nth-of-type(2) .spot-ring { animation-delay: 0.8s; }
.spot:nth-of-type(3) .spot-ring { animation-delay: 1.6s; }

.spot-label {
  position: absolute;
  left: 22px;
  top: -34px;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(11, 15, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
}

.spot-label strong {
  font-weight: 600;
  color: #fff;
}

.spot-label::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 33px;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

@keyframes ping {
  0% { transform: scale(0.45); opacity: 1; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

@keyframes blink {
  to { visibility: hidden; }
}

/* Cifras */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
}

.stat {
  padding: 26px 24px 30px 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--ink-line);
}

.stat-value {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hud {
    display: none;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.7) 100%),
      linear-gradient(0deg, rgba(11, 15, 20, 0.96) 0%, rgba(11, 15, 20, 0) 40%);
  }
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--ink-line);
  }
}

/* --- Franja de credenciales --------------------------------------------- */

.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 22px;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-list .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

@media (max-width: 760px) {
  .trust-list {
    justify-content: flex-start;
  }
}

/* --- Secciones ----------------------------------------------------------- */

.section {
  padding-block: var(--section-pad);
}

.section-surface {
  background: var(--surface);
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.section-dark .section-head p {
  color: var(--ink-muted);
}

.section-head.centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-head.centered p {
  max-width: 60ch;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* --- Servicios ----------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-media {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 28px;
}

.service-card-body h3 {
  margin: 0;
  font-size: 1.45rem;
}

.service-card-body p {
  margin: 0;
  color: var(--muted);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  color: var(--text);
}

.card-link .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  transition: transform 0.2s;
}

.service-card:hover .card-link .icon {
  transform: translateX(4px);
}

.service-card.featured {
  grid-row: span 2;
}

.service-card.featured .service-card-media {
  flex: 1;
  min-height: 300px;
}

.service-card.featured .service-card-body {
  flex: none;
}

.service-card.featured h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.service-card.compact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.service-card.compact .service-card-media {
  min-height: 100%;
}

.service-card.compact .service-card-body {
  padding: 24px;
}

.badge-hot {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.badge-hot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7a00;
  box-shadow: 0 0 10px 2px rgba(255, 122, 0, 0.7);
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .service-card.featured {
    grid-row: auto;
  }

  .service-card.featured .service-card-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .service-card.compact {
    grid-template-columns: 1fr;
  }

  .service-card.compact .service-card-media {
    aspect-ratio: 16 / 10;
  }
}

/* --- Proceso ------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--heat);
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #2b0f55 0%, #7a1fa2 22%, #e3141b 52%, #ff7a00 76%, #ffd84d 100%);
  }

  .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 20px;
    padding-bottom: 30px;
  }

  .step::before {
    grid-row: span 2;
    margin: 0;
  }
}

/* --- Capacidades + vídeo ------------------------------------------------- */

.capabilities {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
}

.video-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink-3);
}

.video-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.video-card figcaption .icon {
  width: 16px;
  height: 16px;
  color: #ff5a5f;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.capability-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.capability-title h3 {
  margin: 0;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 0.96rem;
}

.spec-list dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.spec-list dd {
  margin: 0;
}

@media (max-width: 900px) {
  .capabilities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .spec-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* --- Entregable / ficha de anomalía ------------------------------------- */

.deliverable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.deliverable h2 {
  margin-bottom: 20px;
}

.deliverable-lead {
  margin-bottom: 28px;
  font-size: 1.1rem;
  color: var(--muted);
}

.section-dark .deliverable-lead {
  color: var(--ink-muted);
}

.check-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.check-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  stroke-width: 2.6;
}

.report-card {
  position: relative;
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.section-surface .report-card,
.section:not(.section-dark) .report-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3e6;
  color: #a54400;
  font-weight: 600;
}

.severity::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7a00;
}

.report-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

.panel-tile .tile-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(11, 15, 20, 0.7);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #fff;
}

/* Imagen térmica dibujada en CSS: celdas de módulo + punto caliente */
.panel-tile.ir {
  background:
    radial-gradient(circle at 63% 41%, #fffbe0 0 3%, #ffd84d 7%, #ff7a00 13%, #e3141b 20%, rgba(122, 31, 162, 0) 34%),
    repeating-linear-gradient(90deg, rgba(20, 6, 45, 0.55) 0 2px, transparent 2px 16.66%),
    repeating-linear-gradient(0deg, rgba(20, 6, 45, 0.55) 0 2px, transparent 2px 20%),
    linear-gradient(160deg, #3d1470 0%, #5a1a8f 45%, #7a1fa2 75%, #9b2a8a 100%);
}

.panel-tile.ir::after {
  content: "";
  position: absolute;
  left: 63%;
  top: 41%;
  width: 34px;
  height: 34px;
  border: 1.5px solid #fff;
  border-radius: 4px;
  transform: translate(-50%, -50%);
}

.panel-tile.rgb {
  background:
    repeating-linear-gradient(90deg, rgba(220, 230, 245, 0.55) 0 2px, transparent 2px 16.66%),
    repeating-linear-gradient(0deg, rgba(220, 230, 245, 0.55) 0 2px, transparent 2px 20%),
    linear-gradient(160deg, #1f3c78 0%, #2a5298 50%, #34609f 100%);
}

.panel-tile.rgb::after {
  content: "";
  position: absolute;
  left: 63%;
  top: 41%;
  width: 34px;
  height: 34px;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  transform: translate(-50%, -50%);
}

.report-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.report-data div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.report-data div:nth-child(odd) {
  padding-right: 14px;
}

.report-data dt {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-data dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.report-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.report-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .deliverable {
    grid-template-columns: 1fr;
  }
}

/* --- Sobre --------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: 25% 60%;
  border-radius: var(--radius-lg);
}

.about-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.about-badge span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.about-badge strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.about p {
  font-size: 1.08rem;
  color: var(--muted);
}

.about .check-list {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about-media img {
    aspect-ratio: 16 / 11;
  }

  .about-badge {
    right: 16px;
    bottom: 16px;
  }
}

/* --- Tarjetas de ventajas ------------------------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.section-surface .feature {
  background: var(--bg);
}

.feature .icon-tile {
  margin-bottom: 22px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Banda CTA ----------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.07);
  transform: translateY(-50%);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(48px, 6vw, 72px);
}

.cta-band h2 {
  max-width: 22ch;
  margin: 0;
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Contacto ------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-intro p {
  font-size: 1.08rem;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 32px 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--brand);
}

.contact-list .icon-tile {
  width: 40px;
  height: 40px;
}

.contact-list .icon-tile .icon {
  width: 19px;
  height: 19px;
}

.contact-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-note {
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--muted);
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.form-grid > .full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field label .req {
  color: var(--brand);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8em 0.95em;
  border: 1px solid #d3d0c9;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
  appearance: none;
  padding-right: 2.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23565d68' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(227, 20, 27, 0.14);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--brand);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Campo trampa anti-spam: invisible para personas */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.consent a {
  color: var(--brand);
  font-weight: 600;
}

.legal-mini {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.legal-mini a {
  color: inherit;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.is-error {
  color: var(--brand-600);
}

.form-status.is-ok {
  color: #157f3b;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* --- Pie ----------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--heat);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(56px, 7vw, 80px) 40px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 36ch;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.social a:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.social .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
}

.footer-legal a,
.footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Páginas de servicio ------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.95) 0%, rgba(11, 15, 20, 0.82) 45%, rgba(11, 15, 20, 0.45) 100%),
    linear-gradient(0deg, rgba(11, 15, 20, 0.9) 0%, rgba(11, 15, 20, 0) 45%);
}

.page-hero-inner {
  padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 72px);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
}

.page-hero .hero-lead {
  margin-bottom: 0;
}

.breadcrumb {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero .stats {
  margin-top: 48px;
}

.stats-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .stats-3 {
    grid-template-columns: 1fr;
  }

  .stats-3 .stat,
  .stats-3 .stat + .stat {
    padding: 18px 0;
    border-left: 0;
  }

  .stats-3 .stat + .stat {
    border-top: 1px solid var(--ink-line);
  }
}

.section-tight {
  padding-block: clamp(48px, 6vw, 72px);
}

.page-hero .trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  list-style: none;
}

.trust-inline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.trust-inline .icon {
  width: 15px;
  height: 15px;
  color: #ff5a5f;
}

/* Problema / solución */
.split-rows {
  display: grid;
  gap: 0;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px 72px;
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.split-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.split-row h2 {
  margin: 0;
}

.split-row p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 860px) {
  .split-row {
    grid-template-columns: 1fr;
  }
}

/* Panel de formatos (fotogrametría) */
.formats-card {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.formats-card img,
.formats-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.formats-card .report-head {
  color: rgba(255, 255, 255, 0.6);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.format-grid span {
  display: grid;
  place-items: center;
  padding: 14px 6px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Otros servicios */
.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.related a:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.related .icon {
  color: var(--brand);
}

@media (max-width: 640px) {
  .related {
    grid-template-columns: 1fr;
  }
}

/* --- Páginas legales y simples ------------------------------------------ */

.legal {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}

.legal h3 {
  margin-top: 1.6em;
  font-size: 1.15rem;
}

.legal p,
.legal li {
  color: #3a4049;
}

.legal ul {
  display: grid;
  gap: 8px;
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.legal a {
  color: var(--brand-600);
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}

.legal tr:last-child td {
  border-bottom: 0;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.summary-table th {
  width: 30%;
}

.simple-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  padding-block: var(--section-pad);
  text-align: center;
}

.simple-page .big {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.simple-page p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--muted);
}

.simple-page .hero-actions {
  justify-content: center;
}

/* --- Aviso de cookies ---------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  width: min(100% - 32px, 980px);
  padding: 20px 24px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner strong {
  color: #fff;
}

.cookie-banner a {
  color: #fff;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  padding: 0.7em 1.15em;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

.cookie-dialog {
  width: min(100% - 32px, 560px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.cookie-dialog::backdrop {
  background: rgba(11, 15, 20, 0.6);
}

.cookie-dialog form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.cookie-dialog h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cookie-dialog p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-option strong {
  display: block;
  margin-bottom: 2px;
}

.cookie-option span {
  font-size: 0.86rem;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfccc5;
  transition: background-color 0.2s;
  pointer-events: none;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.switch input:checked + .switch-track {
  background: var(--brand);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch input:disabled + .switch-track {
  opacity: 0.55;
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid #ff8a8e;
  outline-offset: 2px;
}

.cookie-dialog .cookie-actions {
  justify-content: flex-end;
}

/* --- Animación de entrada ------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
