/* CoNexa Hotel Suite · sitio de venta
   Concepto: el día del hotel. Amanecer (llegadas), servicio, cierre y un vigilante
   que no duerme. Paleta del ícono: azul marino profundo, dorado cálido y arena.
   Una sola familia (Manrope), sin cursivas. */

/* ——— Tokens ——— */
:root {
  --marino-950: #050f18;
  --marino-900: #07141f;
  --marino-800: #0a1d2c;
  --marino-700: #0d2c42;
  --marino-600: #13415c;
  --oro-200: #fbe3a6;
  --oro-300: #f6d896;
  --oro-400: #f3c877;
  --oro-500: #e2a64e;
  --oro-600: #c8913f;
  --oro-700: #9a6a24;
  --arena-50: #fbf7f0;
  --arena-100: #f4ecdd;
  --arena-200: #e8dcc6;

  --ok: #2f7d57;
  --aviso: #b7791f;
  --grave: #b83a33;

  /* Modo claro */
  --fondo: var(--arena-50);
  --fondo-2: var(--arena-100);
  --tarjeta: #ffffff;
  --tinta: #0b1e2c;
  --tinta-2: #3b4f60;
  --tenue: #66778a;
  --linea: #e4d9c5;
  --acento: #9a6a24;
  --acento-fondo: rgba(200, 145, 63, 0.12);
  --sombra: 0 1px 2px rgba(11, 30, 44, 0.06), 0 14px 34px -18px rgba(11, 30, 44, 0.28);

  --radio: 16px;
  --radio-chico: 10px;
  --ancho: 1180px;
  --margen: 16px;
  --fuente: "Manrope", "Manrope-respaldo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #08161f;
    --fondo-2: #0b1d2a;
    --tarjeta: #0f2433;
    --tinta: #f3eee4;
    --tinta-2: #c3ccd3;
    --tenue: #8d9daa;
    --linea: #1d3446;
    --acento: #f3c877;
    --acento-fondo: rgba(243, 200, 119, 0.1);
    --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #08161f;
  --fondo-2: #0b1d2a;
  --tarjeta: #0f2433;
  --tinta: #f3eee4;
  --tinta-2: #c3ccd3;
  --tenue: #8d9daa;
  --linea: #1d3446;
  --acento: #f3c877;
  --acento-fondo: rgba(243, 200, 119, 0.1);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* Respaldo métrico para que el titular no salte al cargar Manrope */
@font-face {
  font-family: "Manrope-respaldo";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 104%;
  descent-override: 29%;
}

/* ——— Base ——— */
*, *::before, *::after { box-sizing: border-box; font-style: normal !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-synthesis: none;
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); }
p { margin: 0; }
p, li, li > span, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em, i, cite, address, dfn, var { font-style: normal; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oro-500); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--margen); }
.contenedor--angosto { max-width: 820px; }
.visual-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oro-400); color: var(--marino-900); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

.seccion { padding-block: 72px; }
.encabezado { max-width: 680px; margin-bottom: 40px; }
.encabezado h2 { margin-top: 12px; }
.entrada { margin-top: 16px; font-size: 18px; color: var(--tinta-2); max-width: 580px; text-wrap: pretty; }

.antetitulo {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--acento);
}
.antetitulo--claro { color: var(--oro-300); }
.hora {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ——— Botones ——— */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.boton--oro {
  color: var(--marino-900);
  background: linear-gradient(180deg, var(--oro-300), var(--oro-500));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -12px rgba(226, 166, 78, 0.9);
}
.boton--oro:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 30px -12px rgba(226, 166, 78, 1); }
.boton--linea { color: #f7f1e6; border-color: rgba(246, 216, 150, 0.45); background: rgba(255, 255, 255, 0.03); }
.boton--linea:hover { border-color: var(--oro-300); }
.boton--linea-oscura { color: var(--tinta); border-color: var(--linea); background: transparent; }
.boton--chico { min-height: 40px; padding: 0 16px; font-size: 14px; }
.boton--ancho { width: 100%; }

/* ——— Barra ——— */
.barra {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 20, 31, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(246, 216, 150, 0.12);
  color: #f3eee4;
}
.barra__fila { display: flex; align-items: center; gap: 12px; height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.marca img { width: 34px; height: 34px; flex: none; }
.marca__nombre { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.marca__nombre span { font-weight: 500; opacity: 0.8; }
.barra__nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; }
.barra__nav a { text-decoration: none; opacity: 0.82; transition: opacity 0.2s; }
.barra__nav a:hover { opacity: 1; }
.barra__acciones { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.reloj-dia { display: none; width: 44px; height: 24px; overflow: visible; }
.reloj-dia path { fill: none; stroke: rgba(246, 216, 150, 0.45); stroke-width: 1.4; stroke-dasharray: 2 3; }
.reloj-dia line { stroke: rgba(246, 216, 150, 0.35); stroke-width: 1.2; }
.reloj-dia circle { fill: var(--oro-400); filter: drop-shadow(0 0 4px rgba(243, 200, 119, 0.8)); }
.tema {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(246, 216, 150, 0.2);
}
.tema span { width: 16px; height: 16px; border-radius: 50%; background: var(--oro-400); box-shadow: 0 0 0 3px rgba(243, 200, 119, 0.18); transition: box-shadow 0.3s, background 0.3s; }
:root[data-theme="dark"] .tema span { background: transparent; box-shadow: inset -5px -3px 0 0 var(--oro-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema span { background: transparent; box-shadow: inset -5px -3px 0 0 var(--oro-300); }
}
.solo-ancho { display: none; }
.solo-angosto { display: inline; }
@media (min-width: 560px) {
  .solo-ancho { display: inline; }
  .solo-angosto { display: none; }
}
@media (min-width: 940px) {
  .barra__nav { display: flex; }
  .barra__acciones { margin-left: 28px; }
  .reloj-dia { display: block; }
}

/* ——— Héroe: amanecer ——— */
.heroe {
  position: relative; overflow: hidden;
  color: #f7f1e6;
  background:
    radial-gradient(60% 50% at 50% 70%, rgba(226, 166, 78, 0.22), transparent 70%),
    linear-gradient(180deg, #040d15 0%, #0a1d2c 45%, #173a52 78%, #2c4a5a 100%);
}
.heroe__rejilla { display: grid; gap: 40px; padding-top: 48px; }
.heroe__texto { max-width: 620px; position: relative; z-index: 2; }
.heroe h1 { margin-top: 18px; font-size: clamp(36px, 5.4vw, 64px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.04; color: #faf5ec; }
.heroe__sub { margin-top: 20px; font-size: 18px; line-height: 1.55; color: #c9d3da; max-width: 520px; text-wrap: pretty; }
.heroe__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.heroe__botones--centro { justify-content: center; }
.heroe__sello { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--oro-300); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #5fd49a; box-shadow: 0 0 0 4px rgba(95, 212, 154, 0.18); flex: none; }

/* Escena: arco, sol, horizonte y mar (móvil primero) */
.heroe__escena { position: relative; height: 640px; width: 100%; max-width: 420px; margin-inline: auto; --sol-x: 50%; --horizonte: 196px; }
.escena__cielo {
  position: absolute; left: 50%; top: 0; width: 244px; height: var(--horizonte);
  transform: translateX(-50%); overflow: hidden; border-radius: 122px 122px 0 0;
  background: radial-gradient(80% 70% at 50% 100%, rgba(243, 200, 119, 0.35), transparent 70%);
}
.escena__sol {
  position: absolute; left: 50%; bottom: -64px; width: 128px; height: 128px; margin-left: -64px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff1c9 0%, var(--oro-200) 30%, var(--oro-500) 100%);
  box-shadow: 0 0 60px 18px rgba(243, 200, 119, 0.35);
}
.escena__arco {
  position: absolute; left: 50%; top: 0; width: 244px; height: 330px; transform: translateX(-50%);
  border: 2px solid rgba(246, 216, 150, 0.75); border-bottom: 0; border-radius: 122px 122px 0 0;
  -webkit-mask: linear-gradient(180deg, #000 70%, transparent);
  mask: linear-gradient(180deg, #000 70%, transparent);
}
.escena__mar { position: absolute; left: 0; right: 0; top: var(--horizonte); height: 800px; }
.escena__mar::before {
  content: ""; position: absolute; top: 0; left: -100vw; right: -100vw; height: 100%;
  background: linear-gradient(180deg, #1c3b4f 0%, #0c2334 40%, #081a27 100%);
  border-top: 1px solid rgba(246, 216, 150, 0.7);
}
.escena__mar i {
  position: absolute; left: var(--sol-x); height: 3px; border-radius: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--oro-300), transparent);
  animation: brillo 4.5s ease-in-out infinite;
}
.escena__mar i:nth-child(1) { top: 14px; width: 150px; }
.escena__mar i:nth-child(2) { top: 30px; width: 104px; animation-delay: -1.1s; opacity: 0.8; }
.escena__mar i:nth-child(3) { top: 44px; width: 64px; animation-delay: -2.2s; opacity: 0.6; }
.escena__mar i:nth-child(4) { top: 56px; width: 34px; animation-delay: -3.3s; opacity: 0.45; }
@keyframes brillo { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.js .escena__sol { animation: amanecer 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.2s; }
@keyframes amanecer { from { transform: translateY(70%); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ——— Teléfono (mockup 1) ——— */
.telefono {
  position: absolute; left: 50%; top: 224px; width: 272px; transform: translateX(-50%);
  padding: 9px; border-radius: 42px;
  background: linear-gradient(160deg, #22313d, #0b141b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px #000;
}
.telefono__pantalla {
  height: 410px; overflow: hidden; border-radius: 34px;
  background: #f6f3ee; color: #0b1e2c; font-size: 12px; line-height: 1.35;
  -webkit-mask: linear-gradient(180deg, #000 86%, transparent);
  mask: linear-gradient(180deg, #000 86%, transparent);
}
.app-barra { display: flex; align-items: center; gap: 8px; padding: 18px 16px 12px; background: #0a1d2c; color: #f3eee4; }
.app-barra__icono { width: 20px; height: 20px; border-radius: 6px; background: url("img/icono.svg") center / cover; flex: none; }
.app-barra__titulo { font-weight: 700; font-size: 14px; }
.app-barra__fecha { margin-left: auto; font-size: 11px; color: var(--oro-300); white-space: nowrap; }
.segmentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 12px 8px; padding: 4px; background: #e9e3d8; border-radius: 12px; }
.segmentos span { text-align: center; padding: 7px 2px; border-radius: 9px; font-size: 11px; font-weight: 600; color: #4b5b69; white-space: nowrap; }
.segmentos span b { color: #0b1e2c; font-variant-numeric: tabular-nums; }
.segmentos .activo { background: #fff; color: #0b1e2c; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.llegada { margin: 8px 12px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(11, 30, 44, 0.06), 0 0 0 1px #ece6db; }
.llegada__fila { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.unidad { font-weight: 800; font-size: 13px; white-space: nowrap; }
.estado { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.estado--ok { color: #1f6a47; background: #e2f3ea; }
.estado--aviso { color: #8a5a12; background: #fbefd8; }
.estado--hecho { color: #3b4f60; background: #eceff2; }
.llegada__nombre { margin-top: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llegada__dato { color: #66778a; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.app-boton { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 30px; padding: 0 12px; border-radius: 9px; background: #0a1d2c; color: #f6d896; font-size: 11px; font-weight: 700; white-space: nowrap; }
.app-boton--sec { background: #fff; color: #0a1d2c; box-shadow: 0 0 0 1px #d8d0c2 inset; }
.llegada--hecha { opacity: 0.62; }

/* ——— Un día de operación ——— */
.dia { background: #081a27; color: #d6dee4; padding: 8px 0 44px; }
.dia__linea { position: relative; display: grid; gap: 0; }
.dia__linea li { position: relative; display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; padding: 12px 0 12px 22px; border-left: 1px solid rgba(246, 216, 150, 0.3); }
.dia__linea li::before { content: ""; position: absolute; left: -5px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--oro-400); box-shadow: 0 0 0 4px rgba(243, 200, 119, 0.15); }
.dia__linea .hora { grid-row: span 2; align-self: start; justify-self: start; color: var(--oro-300); }
.dia__linea b { color: #faf5ec; font-size: 16px; }
.dia__linea li > span:last-child { font-size: 14px; color: #9fb0bc; }
.dia__vigia::before { background: transparent !important; border: 2px solid var(--oro-300); }
@media (min-width: 880px) {
  .dia { padding: 10px 0 56px; }
  .dia__linea { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .dia__linea li { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid rgba(246, 216, 150, 0.3); padding: 24px 0 0; row-gap: 4px; }
  .dia__linea li::before { left: 0; top: -5px; }
  .dia__linea .hora { grid-row: auto; margin-bottom: 8px; }
  .dia__vigia { border-top-style: dashed !important; }
}

/* ——— Prueba ——— */
.prueba__rejilla { display: grid; gap: 40px; align-items: center; }
.prueba h2 { margin-top: 12px; }
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.cifras div { padding: 20px 18px; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); }
.cifras dt { font-size: 13px; font-weight: 600; color: var(--tenue); }
.cifras dd { margin: 6px 0 0; font-size: 40px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 980px) {
  .prueba__rejilla { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

/* ——— Módulos ——— */
.modulos { background: var(--fondo-2); }
.grupo { display: grid; gap: 28px; padding-block: 48px; border-top: 1px solid var(--linea); }
.grupo:first-of-type { border-top: 0; padding-top: 8px; }
.grupo__hora { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--acento); margin-bottom: 12px; }
.grupo__texto > p:not(.grupo__hora) { margin-top: 12px; color: var(--tinta-2); max-width: 520px; text-wrap: pretty; }
.lista { margin-top: 20px; display: grid; gap: 10px; }
.lista li { position: relative; padding-left: 26px; font-weight: 500; }
.lista li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-radius: 8px 8px 0 0; border: 1.6px solid var(--oro-600); border-bottom: 0; }
.tarjetas { display: grid; gap: 12px; }
.tarjetas li { display: grid; align-content: start; gap: 4px; padding: 18px; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); }
.tarjetas b { font-size: 16px; }
.tarjetas span { font-size: 15px; color: var(--tinta-2); line-height: 1.45; }
@media (min-width: 600px) {
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grupo { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; padding-block: 64px; }
  .grupo--con-pantalla { align-items: center; }
  .grupo--invertido .grupo__texto { order: 2; }
}

/* ——— Laptop con el planificador (mockup 2) ——— */
.laptop { margin: 0; width: 100%; }
.laptop__tapa { padding: 10px 10px 12px; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #1d2a35, #0b141b); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 70px -40px rgba(11, 30, 44, 0.6); }
.laptop__pantalla { background: #f6f3ee; color: #0b1e2c; border-radius: 6px; overflow: hidden; }
.laptop__base { height: 12px; margin-inline: -2.5%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #c9ced3, #8e969e); position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #7c848c; }
.plan__barra { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0a1d2c; color: #f3eee4; font-size: 12px; }
.plan__titulo { font-weight: 700; }
.plan__mes { color: #9fb0bc; white-space: nowrap; }
.plan__hoy { margin-left: auto; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(246, 216, 150, 0.5); color: var(--oro-300); font-weight: 700; font-size: 11px; }
.plan {
  position: relative; display: grid;
  grid-template-columns: 54px repeat(10, minmax(0, 1fr));
  grid-template-rows: 34px repeat(8, 27px);
  padding: 0 6px 8px 0; font-size: 10.5px;
}
.plan__esquina { grid-area: 1 / 1; align-self: center; padding-left: 8px; color: #8a97a3; font-weight: 600; }
.plan__dia { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a97a3; font-weight: 600; line-height: 1.1; font-size: 9.5px; }
.plan__dia b { color: #0b1e2c; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.plan__dia--hoy b { color: #9a6a24; }
.plan__unidad { grid-column: 1; align-self: center; padding-left: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid #ebe5da; height: 100%; display: flex; align-items: center; }
.plan__unidad--sub { color: #66778a; font-weight: 600; }
.plan__hoycol { grid-column: 3 / 4; grid-row: 2 / -1; background: rgba(226, 166, 78, 0.14); border-inline: 1px solid rgba(226, 166, 78, 0.45); }
.plan::before {
  content: ""; position: absolute; left: 54px; right: 6px; top: 34px; bottom: 8px; pointer-events: none;
  background-image: linear-gradient(90deg, #ebe5da 1px, transparent 1px), linear-gradient(180deg, #ebe5da 1px, transparent 1px);
  background-size: calc(100% / 10) 100%, 100% 27px;
}
.reserva {
  position: relative; z-index: 1; align-self: center;
  margin: 0 2px; height: 20px; padding: 0 6px; border-radius: 6px;
  display: flex; align-items: center;
  background: #2b5f82; color: #fff; font-weight: 700; font-size: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(11, 30, 44, 0.25);
}
.reserva--casa { background: linear-gradient(180deg, #e2a64e, #c8913f); color: #1c1407; }
.reserva--agencia { background: #2f7a74; }
.reserva--bloqueo { background: repeating-linear-gradient(135deg, #d9d2c6 0 4px, #cbc3b6 4px 8px); color: #4b5b69; box-shadow: none; }
.reserva--dueno {
  background: linear-gradient(90deg, #efe6d6 70%, rgba(239, 230, 214, 0)); color: #6a4a18;
  border: 1px dashed #c8913f; border-right: 0; border-radius: 6px 0 0 6px; box-shadow: none;
}
.reserva--fantasma { background: transparent; border: 1.5px dashed #2b5f82; box-shadow: none; opacity: 0; z-index: 0; }
.reserva--movil { box-shadow: 0 8px 16px -6px rgba(11, 30, 44, 0.55); }
.js .reserva--movil { animation: arrastrar 7s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
.js .reserva--fantasma { animation: fantasma 7s ease infinite; }
@keyframes arrastrar {
  0%, 22% { transform: translateX(-66.67%); }
  30% { transform: translateX(-66.67%) translateY(-2px) scale(1.04); }
  58% { transform: translateY(-2px) scale(1.04); }
  66%, 100% { transform: none; }
}
@keyframes fantasma { 0%, 26% { opacity: 0; } 32%, 70% { opacity: 1; } 84%, 100% { opacity: 0; } }

/* ——— Comandas (mockup 4) ——— */
.comandas { margin: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.ticket {
  position: relative; padding: 16px 14px 22px; color: #1a1a1a; background: #fffdf8;
  border-radius: 4px 4px 0 0; box-shadow: 0 18px 30px -18px rgba(11, 30, 44, 0.5), 0 0 0 1px rgba(11, 30, 44, 0.06);
  transform: rotate(-1.2deg); font-size: 13px; line-height: 1.35;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
.ticket--barra { transform: rotate(1.4deg); margin-top: 26px; }
.ticket__estacion { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1.5px dashed #1a1a1a; }
.ticket__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket__meta--tenue { margin-top: 2px; font-weight: 500; color: #5a5a5a; font-size: 12px; }
.ticket__items { margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed #1a1a1a; display: grid; gap: 8px; }
.ticket__items li { display: grid; grid-template-columns: 18px 1fr; column-gap: 6px; font-weight: 600; }
.ticket__items b { font-variant-numeric: tabular-nums; }
.ticket__items small { grid-column: 2; font-size: 12px; font-weight: 500; color: #5a5a5a; }
.firma { grid-column: 1 / -1; padding: 16px 18px; background: #fff; color: #0b1e2c; border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(11, 30, 44, 0.6), 0 0 0 1px rgba(11, 30, 44, 0.08); }
.firma__fila { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.firma__fila b { font-variant-numeric: tabular-nums; }
.firma svg { width: 100%; max-width: 240px; height: 50px; margin: 6px 0 2px; }
.firma path { fill: none; stroke: #13415c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.js .visible .firma path { animation: firmar 2.4s ease 0.4s both; }
@keyframes firmar { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.firma__pie { font-size: 12px; color: #66778a; border-top: 1px solid #ebe5da; padding-top: 8px; }

/* ——— Vigilante ——— */
.vigilante {
  position: relative; overflow: hidden; color: #d6dee4;
  background: radial-gradient(90% 60% at 85% 10%, rgba(19, 65, 92, 0.6), transparent 60%), linear-gradient(180deg, #06121c, #081a27);
}
.vigilante__faro {
  position: absolute; left: -40%; top: -60%; width: 180%; height: 220%; pointer-events: none;
  background: conic-gradient(from 110deg at 30% 30%, transparent 0deg, rgba(243, 200, 119, 0.07) 18deg, transparent 36deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side at 30% 30%, #000 30%, transparent);
  mask: radial-gradient(closest-side at 30% 30%, #000 30%, transparent);
}
.js .vigilante__faro { animation: faro 15s ease-in-out infinite alternate; transform-origin: 30% 30%; }
@keyframes faro { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }
.vigilante__rejilla { position: relative; display: grid; gap: 44px; align-items: center; }
.vigilante h2 { margin-top: 14px; color: #faf5ec; }
.vigilante .entrada { color: #b9c5ce; }
.reglas { margin-top: 26px; display: grid; gap: 0; }
.reglas li { padding: 12px 0 12px 28px; position: relative; border-top: 1px solid rgba(246, 216, 150, 0.14); font-weight: 600; color: #e8e2d6; font-size: 16px; }
.reglas li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--oro-400); }
.vigilante__nota { margin-top: 14px; font-size: 13px; color: #8d9daa; }
.hallazgos {
  position: relative; margin: 0; padding: 14px; overflow: hidden;
  background: #f6f3ee; color: #0b1e2c; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(246, 216, 150, 0.2), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.hallazgos__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
.hallazgos__titulo { font-weight: 800; font-size: 16px; }
.hallazgos__estado { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #3b4f60; white-space: nowrap; }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47, 125, 87, 0.5); }
.js .pulso { animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(47, 125, 87, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(47, 125, 87, 0); } }
.hallazgo { padding: 14px; margin-top: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px #ece6db; }
.hallazgo--grave { box-shadow: 0 0 0 1px #efc9c5, inset 4px 0 0 var(--grave); }
.hallazgo__fila { display: flex; justify-content: space-between; align-items: center; }
.gravedad { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.gravedad--grave { color: #fff; background: var(--grave); }
.gravedad--aviso { color: #7a4f10; background: #fbefd8; }
.hallazgo__hora { font-size: 12px; color: #66778a; font-variant-numeric: tabular-nums; }
.hallazgo__titulo { margin-top: 8px; font-weight: 750; font-size: 15px; line-height: 1.3; text-wrap: balance; }
.hallazgo__dato { margin-top: 4px; font-size: 13px; color: #3b4f60; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hallazgo__porque { text-wrap: pretty; margin-top: 10px; padding: 10px 12px; background: #faf6ee; border-radius: 10px; font-size: 13px; color: #3b4f60; line-height: 1.45; }
.hallazgo__porque b { color: #0b1e2c; }
.hallazgo__acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.hallazgos__pie { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px 2px; font-size: 12px; color: #66778a; white-space: nowrap; }
.hallazgos__barrido { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(226, 166, 78, 0.16) 90%, rgba(226, 166, 78, 0.7)); }
.js .visible .hallazgos__barrido { animation: barrido 6s ease-in-out infinite 1s; }
@keyframes barrido { 0% { transform: translateY(-60px); opacity: 0; } 8% { opacity: 1; } 45% { transform: translateY(520px); opacity: 1; } 50%, 100% { transform: translateY(520px); opacity: 0; } }
@media (min-width: 980px) {
  .vigilante__rejilla { grid-template-columns: 1fr 0.9fr; gap: 72px; }
  .hallazgos { padding: 18px; }
}

/* ——— Para quién ——— */
.perfiles { display: grid; gap: 12px; }
.perfiles li { display: grid; align-content: start; gap: 6px; padding: 24px 20px; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); position: relative; overflow: hidden; }
.perfiles li::after { content: ""; position: absolute; right: -56px; bottom: -86px; width: 120px; height: 120px; border-radius: 60px 60px 0 0; border: 1.5px solid var(--acento-fondo); border-bottom: 0; box-shadow: 0 0 0 18px var(--acento-fondo); opacity: 0.8; }
.perfiles__cifra { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; color: var(--acento); white-space: nowrap; font-variant-numeric: tabular-nums; }
.perfiles b { font-size: 17px; }
.perfiles span:last-child { color: var(--tinta-2); font-size: 15px; line-height: 1.45; }
@media (min-width: 600px) { .perfiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .perfiles { grid-template-columns: repeat(4, 1fr); } }

/* ——— Implantación ——— */
.implantacion { background: var(--fondo-2); }
.pasos { display: grid; gap: 0; counter-reset: paso; }
.pasos li { position: relative; display: grid; align-content: start; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 28px; }
.pasos li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1.5px; background: linear-gradient(180deg, var(--oro-500), transparent); }
.pasos li:last-child::before { display: none; }
.pasos__num { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--marino-900); background: linear-gradient(180deg, var(--oro-300), var(--oro-500)); }
.pasos b { font-size: 19px; align-self: center; padding-top: 9px; }
.pasos li > span:last-child { color: var(--tinta-2); font-size: 16px; margin-top: 4px; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .pasos li { grid-template-columns: 1fr; padding-bottom: 0; row-gap: 6px; }
  .pasos li::before { left: 56px; right: -12px; top: 22px; bottom: auto; width: auto; height: 1.5px; background: linear-gradient(90deg, var(--oro-500), rgba(226, 166, 78, 0.1)); }
  .pasos__num { grid-row: auto; margin-bottom: 10px; }
  .pasos b { padding-top: 0; }
}

/* ——— Seguridad ——— */
.seguridad__rejilla { display: grid; gap: 36px; }
.seguridad h2 { margin-top: 12px; }
.seguros { display: grid; gap: 12px; }
.seguros li { display: grid; align-content: start; gap: 4px; padding: 18px 18px 18px 56px; position: relative; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); }
.seguros li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 11px 11px 4px 4px; border: 2px solid var(--acento); background: var(--acento-fondo); }
.seguros b { font-size: 16px; }
.seguros span { color: var(--tinta-2); font-size: 15px; line-height: 1.45; }
@media (min-width: 600px) { .seguros { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .seguridad__rejilla { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; } }

/* ——— En camino ——— */
.en-camino { background: var(--fondo-2); }
.camino { display: grid; gap: 12px; }
.camino li { display: grid; align-content: start; gap: 6px; justify-items: start; padding: 22px 20px; border: 1.5px dashed color-mix(in srgb, var(--oro-600) 55%, transparent); border-radius: var(--radio); background: var(--fondo); }
.etiqueta-camino { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--acento); background: var(--acento-fondo); }
.camino b { font-size: 18px; margin-top: 4px; }
.camino li > span:last-child { color: var(--tinta-2); font-size: 15px; }
@media (min-width: 760px) { .camino { grid-template-columns: repeat(2, 1fr); } }

/* ——— Preguntas ——— */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0; font-size: 18px; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--acento); border-bottom: 2px solid var(--acento); transform: rotate(45deg); transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 8px 22px 0; color: var(--tinta-2); max-width: 680px; }

/* ——— Cierre: atardecer ——— */
.cierre {
  position: relative; overflow: hidden; text-align: center; color: #f7f1e6;
  padding: 96px 0 230px;
  background: linear-gradient(180deg, #0a1d2c 0%, #173a52 55%, #5a4a3e 88%, #8a6440 100%);
}
.cierre__sol {
  position: absolute; left: 50%; bottom: -150px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff1c9, var(--oro-400) 45%, var(--oro-600));
  box-shadow: 0 0 120px 40px rgba(243, 200, 119, 0.35);
}
.cierre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(180deg, #0c2334, #081a27); border-top: 1px solid rgba(246, 216, 150, 0.6); }
.cierre__caja { position: relative; z-index: 1; display: grid; justify-items: center; }
.cierre__icono { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7); }
.cierre h2 { margin-top: 24px; color: #faf5ec; max-width: 640px; }
.cierre .entrada { color: #c9d3da; margin-inline: auto; }

/* ——— Pie ——— */
.pie { background: var(--marino-950); color: #b9c5ce; padding: 56px 0 28px; font-size: 15px; }
.pie__rejilla { display: grid; gap: 32px; }
.pie .marca { color: #f3eee4; }
.pie__marca p { margin-top: 14px; }
.pie__marca p:first-of-type { color: #e8e2d6; font-weight: 600; }
.pie__tenue { color: #7f909d; font-size: 14px; }
.pie__col { display: grid; gap: 10px; align-content: start; }
.pie__col a { text-decoration: none; color: #d6dee4; width: fit-content; overflow-wrap: anywhere; }
.pie__col a:hover { color: var(--oro-300); }
.pie__rotulo { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oro-300); }
.pie__final { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; font-size: 13px; color: #7f909d; }
.pie__final::before { content: ""; position: absolute; top: 0; left: var(--margen); right: var(--margen); border-top: 1px solid rgba(246, 216, 150, 0.12); }
@media (min-width: 760px) { .pie__rejilla { grid-template-columns: 1.6fr 1fr 0.8fr; } }

/* ——— Diálogo de demo ——— */
.dialogo {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 0; border: 0; border-radius: 22px;
  background: var(--tarjeta); color: var(--tinta);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}
.dialogo::backdrop { background: rgba(5, 15, 24, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialogo[open] { animation: aparecer 0.3s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.demo { position: relative; padding: 26px 20px 22px; }
.demo h2 { font-size: 26px; padding-right: 40px; }
.demo__sub { margin-top: 6px; color: var(--tinta-2); font-size: 16px; }
.dialogo__cerrar { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fondo-2); font-size: 24px; line-height: 1; cursor: pointer; color: var(--tinta); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 16px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo > span, .opciones legend { font-size: 14px; font-weight: 700; color: var(--tinta-2); }
.campo input:not([type="radio"]) {
  width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px;
  border: 1px solid var(--linea); border-radius: 12px; background: var(--fondo); color: var(--tinta);
}
.campo input:focus { outline: 2px solid var(--oro-500); outline-offset: 0; border-color: transparent; }
.campo input[aria-invalid="true"] { border-color: var(--grave); }
.opciones { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.opciones legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.opciones label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--linea); border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; }
.opciones input { width: 18px; height: 18px; accent-color: var(--oro-600); margin: 0; }
.opciones label:has(input:checked) { border-color: var(--oro-500); background: var(--acento-fondo); }
.demo__error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--grave); background: rgba(184, 58, 51, 0.08); }
.demo__alterno { margin-top: 14px; text-align: center; font-size: 15px; color: var(--tinta-2); }
.demo__alterno a { color: var(--acento); font-weight: 700; }
.demo__paso[data-paso="listo"] .boton { margin-top: 18px; }
.demo__paso[data-paso="listo"] h2 { outline: none; }
@media (min-width: 560px) { .demo { padding: 32px 30px 26px; } }

/* ——— Movimiento al entrar en pantalla ——— */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .revelar.visible { opacity: 1; transform: none; }

/* ——— Escritorio ——— */
@media (min-width: 760px) {
  :root { --margen: 28px; }
  .seccion { padding-block: 104px; }
}
@media (min-width: 980px) {
  .heroe__rejilla { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-top: 72px; }
  .heroe__texto { padding-bottom: 150px; }
  .heroe__escena { max-width: 520px; height: 660px; --sol-x: 190px; --horizonte: 330px; margin-right: 0; }
  .escena__cielo, .escena__arco { left: 190px; top: 50px; width: 320px; border-radius: 160px 160px 0 0; }
  .escena__cielo { height: calc(var(--horizonte) - 50px); }
  .escena__arco { height: 420px; }
  .escena__sol { width: 170px; height: 170px; margin-left: -85px; bottom: -85px; }
  .telefono { left: auto; right: 0; top: 150px; transform: none; }
  .telefono__pantalla { height: 470px; }
  /* El horizonte nace detrás del arco y se desvanece antes del texto */
  .escena__mar::before {
    -webkit-mask: linear-gradient(90deg, transparent calc(100vw - 160px), #000 calc(100vw + 120px));
    mask: linear-gradient(90deg, transparent calc(100vw - 160px), #000 calc(100vw + 120px));
  }
}

/* ——— Movimiento reducido: todo quieto y visible ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
  .reserva--fantasma { opacity: 1; }
  .hallazgos__barrido { display: none; }
}

/* ——— Páginas legales (.doc) ———
   Columna de lectura de 720 px. Se usa con plantilla-legal.html. */
.doc { max-width: 720px; margin-inline: auto; padding: 56px var(--margen) 88px; font-size: 17px; line-height: 1.65; color: var(--tinta); }
.doc > :first-child { margin-top: 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--linea); }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p { margin: 0 0 14px; color: var(--tinta-2); }
.doc .doc__fecha { font-size: 14px; font-weight: 600; color: var(--tenue); margin-bottom: 28px; }
.doc a { color: var(--acento); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--tinta-2); }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--oro-600); }
.doc strong, .doc b { color: var(--tinta); }
.doc blockquote { margin: 0 0 16px; padding: 14px 18px; border-left: 3px solid var(--oro-500); background: var(--acento-fondo); border-radius: 0 10px 10px 0; }
.doc hr { border: 0; border-top: 1px solid var(--linea); margin: 36px 0; }
.doc .tabla { width: 100%; overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--linea); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
.doc th { font-weight: 700; background: var(--fondo-2); color: var(--tinta); }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 559px) {
  .doc { font-size: 16px; padding-top: 40px; }
  .doc table { font-size: 14px; }
}
