/* ==========================================================
   Trasteros a tu medida — Landing de preapertura (tema oscuro)
   Colores de la fachada: antracita de las puertas (#3B4248 / #2A3035), amarillo (#F2B21E) y blanco.
   Tipografías: Barlow Condensed (titulares, la condensada tipo DIN de la fachada) e Inter (texto).
   ========================================================== */
:root {
  --bg: #2a3035;
  --bg-2: #242a2e;
  --bg-3: #1e2327;
  --card: #313840;
  --card-2: #383f47;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #e3e6e8;
  --muted: #a6aeb5;          /* 5,2:1 sobre las tarjetas (AA) */
  --ink: #ffffff;
  --yellow: #f2b21e;         /* amarillo de la fachada: 7,7:1 sobre el fondo */
  --yellow-2: #ffc43d;
  --yellow-soft: rgba(242, 178, 30, 0.12);
  --yellow-line: rgba(242, 178, 30, 0.4);
  --on-yellow: #1d2125;
  --puerta: #3b4248;
  --ok: #3ccf7f;
  --err: #ff7f6e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 16px 36px -14px rgba(0, 0, 0, 0.5);
  --pilar: linear-gradient(90deg, #d8980b, #f6b624 30%, #f2b21e 80%, #d4950a);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "DIN Condensed", "Arial Narrow", var(--font);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --nav-h: 80px;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M12 2.6l8.6 5v10.8L12 23.4l-8.6-5V7.6z' fill='none' stroke='%23f2b21e' stroke-width='3.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.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; }

.container { width: min(var(--max), 92vw); margin: 0 auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; scroll-margin-top: 64px; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow); font-weight: 700; margin-bottom: 14px;
}
/* El hexágono del logo como marca de sección */
.eyebrow::before { content: ""; width: 15px; height: 16px; background: var(--hex) center / contain no-repeat; flex: none; }
h1, h2, h3 { font-family: var(--display); line-height: 0.98; margin: 0; color: var(--ink); font-weight: 700; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font-size: clamp(38px, 5.2vw, 62px); text-wrap: balance; }
h3 { font-size: 24px; letter-spacing: 0.01em; line-height: 1.1; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin: 18px 0 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.grad { color: var(--yellow); }

/* Botones: rótulo en mayúsculas, esquinas como los cuadros de los iconos de la fachada */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 14px 30px -12px rgba(242, 178, 30, 0.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--yellow-2); box-shadow: 0 20px 38px -12px rgba(242, 178, 30, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-light { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Logo */
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 56px; width: auto; aspect-ratio: 470 / 126; overflow: visible; transition: height .25s ease; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0; transition: background .25s ease, padding .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(34, 39, 43, 0.9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); padding: 8px 0; box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.7); }
.nav.scrolled .brand-logo { height: 46px; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; gap: 30px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #cfd4d8; }
.nav-links a { position: relative; transition: color .15s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 18px; font-size: 16px; }
@media (max-width: 1020px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .brand-logo { height: 42px; }
  .nav.scrolled .brand-logo { height: 38px; }
  .nav .btn-nav { padding: 10px 13px; font-size: 14.5px; }
}
@media (max-width: 360px) { .nav .btn-nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; overflow: clip; padding: calc(var(--nav-h) + clamp(30px, 4.4vw, 60px)) 0 clamp(64px, 7vw, 100px); }
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(46% 56% at 80% 40%, rgba(242, 178, 30, 0.1), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(242, 178, 30, 0.05), transparent 70%),
    linear-gradient(180deg, #2d3439 0%, var(--bg) 80%); }
/* Juntas verticales de las puertas de chapa */
.hero-bg::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 0, 0, 0.22) 118px 120px, rgba(255, 255, 255, 0.035) 120px 121px, transparent 121px 122px);
  -webkit-mask-image: radial-gradient(70% 80% at 60% 30%, #000 0%, transparent 85%); mask-image: radial-gradient(70% 80% at 60% 30%, #000 0%, transparent 85%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr 0.94fr; grid-template-areas: "copy visual" "card visual"; column-gap: clamp(36px, 5.5vw, 84px); row-gap: 34px; align-items: center; }
.hero-grid > * { min-width: 0; } /* que un botón largo no ensanche la columna en pantallas estrechas */
.hero-copy { grid-area: copy; align-self: end; }
.hero-card { grid-area: card; align-self: start; }
.hero-visual { grid-area: visual; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 12px;
  border-radius: 999px; border: 1px solid var(--yellow-line); background: rgba(242, 178, 30, 0.08);
  font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 22px;
}
.hero-badge .dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(242, 178, 30, 0.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 178, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 178, 30, 0); } }
@media (max-width: 360px) { .hero-badge { gap: 9px; padding: 8px 14px 8px 12px; font-size: 14px; letter-spacing: 0.1em; } } /* a 320 px no cabía en una línea */
.hero h1 { font-size: clamp(54px, 7.4vw, 104px); line-height: 0.92; text-wrap: balance; }
.hero h1 .l { display: block; }
.hero .lead { max-width: 560px; font-size: clamp(16.5px, 1.35vw, 19px); margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-loc { display: inline-flex; align-items: flex-start; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 14.5px; line-height: 1.45; transition: color .2s ease; }
.hero-loc svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--yellow); }
.hero-loc:hover { color: var(--ink); }

/* Ilustración de la fachada */
.hero-visual { position: relative; }
.fachada-wrap { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #1d2125;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.fachada { display: block; width: 100%; height: auto; }
.fa-t { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; }
.hero-time { position: absolute; z-index: 2; top: 18.2%; right: 12%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(20, 23, 26, 0.86); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.6); }
.hero-time svg { width: 15px; height: 15px; color: var(--yellow); }
.hero-time b { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
/* Cajas dibujadas a línea (fachada y «Ventajas») */
.cj path { fill: var(--puerta); stroke: #f2f3f4; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .fachada .cj path { stroke-dashoffset: 1; animation: trazo 1.15s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: calc(.45s + var(--i) * .22s); }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.js .fa-ico { opacity: 0; transform: translateY(14px); animation: icoIn .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(1s + var(--i) * .18s); }
@keyframes icoIn { to { opacity: 1; transform: none; } }
/* Teclado de la puerta: 1-5-9-0 y luz verde */
.fa-k { fill: #4a5259; }
.fa-k.s { animation: tecla 7s infinite; animation-delay: calc(2.4s + var(--n) * .45s); }
@keyframes tecla { 0%, 7%, 100% { fill: #4a5259; } 1.5%, 4% { fill: var(--yellow); } }
.fa-led { fill: #ff5a4e; animation: led 7s infinite 2.4s; }
@keyframes led { 0%, 29% { fill: #ff5a4e; } 30%, 64% { fill: #3ccf7f; } 66%, 100% { fill: #ff5a4e; } }
.fa-brillo { animation: brillo 9s ease-in-out infinite 3s; }
@keyframes brillo { 0% { transform: translateX(0); } 38%, 100% { transform: translateX(900px); } }

/* Tarjeta de apertura */
.hero-card { position: relative; max-width: 540px; padding: 22px 24px 20px; border-radius: 18px;
  background: linear-gradient(160deg, #343b42, #24292e 72%); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--yellow); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-card .label { font-family: var(--display); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); font-weight: 700; }
.hero-card .date { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--yellow); }
.hero-card .date svg { width: 16px; height: 16px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 18px; }
.countdown[hidden], .soon[hidden] { display: none; }
.countdown div { position: relative; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius-sm); padding: 14px 6px 12px; text-align: center; overflow: hidden; }
.countdown b { display: block; font-family: var(--display); font-size: clamp(32px, 3.2vw, 42px); font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown div:first-child b { color: var(--yellow); }
.countdown small { display: block; margin-top: 7px; color: rgba(255, 255, 255, 0.55); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.soon { display: grid; gap: 6px; margin: 10px 0 16px; }
.soon strong { font-family: var(--display); font-size: clamp(44px, 4.4vw, 58px); font-weight: 700; line-height: .95; text-transform: uppercase; color: #fff; white-space: nowrap; }
.soon strong em { font-style: normal; color: var(--yellow); }
.soon span { font-size: 14.5px; color: rgba(255, 255, 255, 0.68); line-height: 1.45; }
.perks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 9px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.perks strong { color: #fff; font-weight: 600; }
.perks svg { flex: none; width: 18px; height: 18px; color: var(--yellow); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "card"; row-gap: 40px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-card { max-width: 560px; width: 100%; margin: -58px auto 0; z-index: 3; } /* solo pisa la acera de la fachada */
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(46px, 13vw, 62px); }
  .hero h1 .l { display: inline; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-cta .btn-primary { white-space: normal; text-align: center; }
  .fachada-wrap { border-radius: 18px; }
  .hero-time { font-size: 11.5px; padding: 5px 10px 5px 8px; right: 10%; }
  .hero-time b { font-size: 14px; }
  .hero-card { margin: -50px 10px 0; width: auto; padding: 18px 16px 16px; }
  .countdown { gap: 7px; }
  .countdown small { font-size: 9.5px; letter-spacing: .1em; }
}

/* Tira amarilla (como la franja «¡Libera espacio, gana tranquilidad!» de la fachada) */
.strip { background: var(--yellow); color: var(--on-yellow); overflow: hidden; overflow: clip; padding: 14px 0; position: relative; z-index: 1; }
.strip-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.strip span { display: inline-flex; align-items: center; gap: 40px; font-family: var(--display); font-size: 19px; font-weight: 700; white-space: nowrap; letter-spacing: .1em; text-transform: uppercase; }
.strip span::after { content: ""; width: 15px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M12 2.6l8.6 5v10.8L12 23.4l-8.6-5V7.6z' fill='none' stroke='%231d2125' stroke-width='3.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cuadro de icono (como los de la fachada: borde amarillo y dibujo amarillo) */
.icon { width: 54px; height: 54px; border-radius: 11px; border: 2px solid var(--yellow); color: var(--yellow); display: grid; place-items: center; flex: none; }
.icon svg { width: 27px; height: 27px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.step:hover { border-color: var(--yellow-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step::before { content: attr(data-n); position: absolute; right: 18px; top: 0; font-family: var(--display); font-size: 110px; font-weight: 800; color: rgba(242, 178, 30, 0.1); line-height: 1; }
.step .icon { margin-bottom: 22px; }
.step h3 { text-transform: uppercase; font-size: 26px; }
.step p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Split (media + texto) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.split-media > img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--yellow); margin-top: 1px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* Acceso con código: puerta con su teclado y el día entero en 24 barras */
.acceso-card { aspect-ratio: 4 / 4.6; isolation: isolate; }
.acceso-puerta { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(0, 0, 0, 0.22) 7% calc(7% + 2px), transparent calc(7% + 2px)),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(0, 0, 0, 0.2) 86px 88px, rgba(255, 255, 255, 0.04) 88px 89px),
    linear-gradient(180deg, #41484f, #30363c); }
.acceso-puerta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: var(--pilar); }
.acceso-puerta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 58% 30%, rgba(255, 255, 255, 0.07), transparent 70%); }
.acceso-chip { position: absolute; z-index: 2; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(20, 23, 26, 0.82); border: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.kp { position: absolute; left: 50%; top: 13%; width: min(232px, 50%); margin-left: 3.5%; transform: translateX(-50%); padding: 16px 16px 18px; border-radius: 20px;
  background: linear-gradient(170deg, #252a2f, #16191c); border: 1px solid #4b535a; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.kp-screen { display: grid; justify-items: center; gap: 9px; padding: 13px 8px 12px; border-radius: 10px; background: #0f1215; border: 1px solid #2c3338; box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6); transition: background .3s ease; }
.kp-msg { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.kp-dots { display: flex; gap: 9px; }
.kp-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); transition: background .15s ease, border-color .15s ease; }
.kp-dots i.on { background: var(--yellow); border-color: var(--yellow); }
.kp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.kp-keys span { display: grid; place-items: center; height: 38px; border-radius: 9px; background: #2c3338; border: 1px solid #434b52; box-shadow: 0 3px 0 #15181b;
  font-family: var(--display); font-size: 21px; font-weight: 600; color: #e8eaec; transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease; }
.kp-keys span.kp-fn { color: #8d959c; font-size: 17px; }
.kp-keys span.press { background: var(--yellow); color: var(--on-yellow); transform: translateY(2px); box-shadow: 0 1px 0 #15181b; }
.kp-led { position: absolute; top: 8px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 8px rgba(255, 90, 78, 0.8); transition: background .2s ease, box-shadow .2s ease; }
.kp.ok .kp-screen { background: #0e2419; border-color: #1f5a3b; }
.kp.ok .kp-msg { color: var(--ok); }
.kp.ok .kp-dots i { background: var(--ok); border-color: var(--ok); }
.kp.ok .kp-led { background: var(--ok); box-shadow: 0 0 10px rgba(60, 207, 127, 0.9); }
.dia { position: absolute; z-index: 2; left: calc(7% + 14px); right: 16px; bottom: 16px; padding: 16px 18px 14px; border-radius: 16px; color: #fff;
  background: rgba(18, 21, 24, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); }
.dia-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dia-head span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.dia-head b { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dia-head small { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }
.dia-bar { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 24px; margin-top: 12px; }
.dia-bar i { border-radius: 3px; background: var(--yellow); opacity: .9; transform-origin: bottom; }
.dia-bar i.now { background: #fff; opacity: 1; }
.js .acceso-card .dia-bar i { transform: scaleY(0.15); opacity: .35; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .45s ease; transition-delay: calc(var(--i) * 28ms + .2s); }
.js .acceso-card.in .dia-bar i { transform: none; opacity: .9; }
.js .acceso-card.in .dia-bar i.now { opacity: 1; }
.dia-marca { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.dia-scale { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.dia-foot { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }
.dia-foot svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }
@media (max-width: 480px) {
  .acceso-card { aspect-ratio: 4 / 5.3; }
  .kp { top: 12%; width: 58%; padding: 12px 12px 14px; }
  .kp-keys { gap: 6px; margin-top: 10px; }
  .kp-keys span { height: 30px; font-size: 18px; }
  .kp-msg { font-size: 12px; letter-spacing: .1em; }
  .dia { left: calc(7% + 8px); right: 10px; bottom: 10px; padding: 12px 12px 11px; }
  .dia-head b { font-size: 28px; } .dia-head small { margin-left: 0; width: 100%; }
  .dia-bar { gap: 2px; height: 20px; }
  .dia-foot { font-size: 12.5px; }
  .acceso-chip { top: 12px; right: 12px; font-size: 13px; padding: 6px 11px; }
}

/* Tamaños: calculadora de metros cuadrados */
.medida { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 2.6vw, 30px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.medida-visual { position: relative; border-radius: 18px; overflow: hidden; padding: 6% 4% 12%;
  background: radial-gradient(70% 70% at 50% 45%, rgba(242, 178, 30, 0.08), transparent 70%), linear-gradient(180deg, #2b3136, #23282c); border: 1px solid var(--line); }
.medida-iso { display: block; width: 100%; height: auto; overflow: visible; }
.iso-suelo { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; transition: fill .3s ease, stroke .3s ease; }
.iso-suelo.on { fill: rgba(242, 178, 30, 0.1); stroke: var(--yellow-line); }
.iso-borde { fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .5; }
.iso-c { opacity: 0; transform: translateY(-34px); transition: opacity .25s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.iso-c.on { opacity: 1; transform: none; }
.iso-c .t { fill: #f5f6f7; }
.iso-c .l { fill: url(#tam-izq); }
.iso-c .r { fill: url(#tam-der); }
.iso-c.ult .t { fill: var(--yellow); }
.medida-cap { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.medida-cap i { width: 12px; height: 12px; border-radius: 3px; background: #f5f6f7; box-shadow: inset 0 -4px 0 #b9bfc5; }
.medida-num { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; line-height: .85; color: var(--yellow); }
.medida-num output { font-size: clamp(96px, 10vw, 136px); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.medida-num small { font-size: clamp(34px, 3.4vw, 46px); color: #fff; }
.medida-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .05em; }
.medida-cat b { color: #fff; font-weight: 700; }
.medida-cat > span:last-child { color: var(--muted); font-weight: 600; font-size: 19px; }
.medida-desc { margin: 12px 0 0; color: var(--text); font-size: 15.5px; min-height: 3.1em; }
.medida-eq { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.medida-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 22px 0 0; background: transparent; cursor: pointer; --p: 50%; }
.medida-range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--yellow) var(--p), rgba(255, 255, 255, 0.12) var(--p)); }
.medida-range::-moz-range-track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.medida-range::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--yellow); }
.medida-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 6px solid var(--yellow); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6); transition: transform .15s ease; }
.medida-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid var(--yellow); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6); }
.medida-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.medida-range:focus-visible { outline: none; }
.medida-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(242, 178, 30, 0.3); }
.medida-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(242, 178, 30, 0.3); }
.medida-scale { position: relative; height: 15px; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; line-height: 15px; color: var(--muted); }
/* Cada valor bajo su punto de la barra (--x de 0 a 1; el pulgar mide 30 px) y los extremos pegados a los bordes */
.medida-scale span { position: absolute; top: 0; left: calc(15px + (100% - 30px) * var(--x, 0)); transform: translateX(-50%); white-space: nowrap; }
.medida-scale span:first-child { left: 0; transform: none; }
.medida-scale span:last-child { left: auto; right: 0; transform: none; }
.medida-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.medida-chips button { display: grid; gap: 1px; padding: 9px 6px; border-radius: 10px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 12.5px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.medida-chips button b { font-family: var(--display); font-size: 21px; font-weight: 700; color: #fff; line-height: 1.05; }
.medida-chips button:hover { border-color: var(--yellow-line); }
.medida-chips button[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow-soft); color: var(--text); }
.medida-chips button[aria-pressed="true"] b { color: var(--yellow); }
.medida-panel > .btn { width: 100%; margin-top: 20px; }
.sizes-note { margin-top: 22px; }
@media (max-width: 900px) { .medida { grid-template-columns: 1fr; } .medida-desc { min-height: 0; } }
@media (max-width: 420px) { .medida-chips { gap: 6px; } .medida-chips button { font-size: 11.5px; padding: 8px 4px; } .medida-panel > .btn { white-space: normal; } }

/* Cámara de vigilancia (seguridad) */
.cam-card { aspect-ratio: 4 / 3; }
.cam-card > img { filter: saturate(.95) contrast(1.03); transform: scale(1.05); animation: camDrift 18s ease-in-out infinite alternate; }
@keyframes camDrift { to { transform: scale(1.12) translate(-1.5%, 1%); } }
.cam-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(10, 10, 10, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 95% at 50% 50%, transparent 55%, rgba(10, 10, 10, 0.4) 100%); }
.cam-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(255, 255, 255, 0.05); animation: flicker 5s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 0; } 47% { opacity: 0; } 48% { opacity: 1; } 49% { opacity: 0; } 82% { opacity: 1; } 83% { opacity: 0; } }
.cam-ui { position: absolute; inset: 0; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #fff; }
.cam-ui > span { position: absolute; }
.cam-rec, .cam-id, .cam-time { padding: 5px 9px; border-radius: 7px; background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cam-rec { top: 22px; left: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.cam-rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px rgba(255, 59, 59, 0.8); animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0.15; } }
.cam-id { top: 22px; right: 24px; }
.cam-time { left: 24px; bottom: 22px; font-variant-numeric: tabular-nums; }
.cam-frame { inset: 12px; border-radius: 6px;
  background:
    linear-gradient(var(--yellow), var(--yellow)) top left / 24px 3px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) top left / 3px 24px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) top right / 24px 3px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) top right / 3px 24px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom left / 24px 3px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom left / 3px 24px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom right / 24px 3px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) bottom right / 3px 24px no-repeat; }
.cam-scan { left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14) 60%, transparent); animation: scan 7s linear infinite; }
@keyframes scan { to { top: 100%; } }
@media (max-width: 480px) { .cam-ui { font-size: 10.5px; } .cam-rec, .cam-id { top: 16px; } .cam-rec, .cam-time { left: 16px; } .cam-id { right: 16px; } .cam-time { bottom: 16px; } }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.feature:hover { border-color: var(--yellow-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature .icon { margin-bottom: 18px; }
.feature h3 { text-transform: uppercase; font-size: 24px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.head-cajas { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.head-cajas > div { max-width: 720px; }
.cajas-dibujo { width: clamp(120px, 13vw, 176px); height: auto; flex: none; overflow: visible; }
.cajas-dibujo .cj path { fill: var(--bg); stroke-width: 2.4; }
.js .head-cajas .cj path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6, 0, .2, 1); transition-delay: calc(.2s + var(--i) * .2s); }
.js .head-cajas.in .cj path { stroke-dashoffset: 0; }
@media (max-width: 640px) { .cajas-dibujo { display: none; } }

/* Ubicación */
.map-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: 24px; align-items: stretch; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #23282c; min-height: 440px; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: end start; padding: 22px; }
/* Plano real de la zona (tools/build-plano.mjs, datos de OpenStreetMap): se ve hasta que se acepta Google Maps */
.map-plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.map-attr { position: absolute; top: 10px; right: 12px; z-index: 1; padding: 3px 8px; border-radius: 6px; background: rgba(29, 33, 37, 0.78); font-size: 11px; color: var(--muted); }
.map-attr a { color: inherit; text-decoration: underline; }
.map-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(35deg, rgba(30, 35, 39, 0.92) 0%, rgba(30, 35, 39, 0.35) 45%, rgba(30, 35, 39, 0) 75%); pointer-events: none; }
.map-consent { position: relative; z-index: 1; display: grid; justify-items: start; gap: 9px; text-align: left; max-width: 380px; padding: 22px 22px 20px; border-radius: var(--radius); background: rgba(40, 46, 51, 0.94); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.map-consent[hidden] { display: none; }
.map-consent > svg { width: 30px; height: 30px; color: var(--yellow); }
.map-consent strong { font-family: var(--display); font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.map-consent p { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.map-consent .btn { padding: 12px 22px; font-size: 16px; }
.map-link { font-size: 13px; color: var(--yellow); text-decoration: underline; font-weight: 600; }
.map-info { display: grid; gap: 14px; align-content: start; }
.map-info-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 2px; }
.map-info-block .label { font-family: var(--display); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 6px; }
.map-info-block strong { font-size: 16px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.map-info-block span:not(.label) { color: var(--muted); font-size: 14px; }
.map-info .btn { justify-content: center; }
.map-info .btn[hidden] { display: none; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } .map-card { min-height: 520px; } .map-plan { object-position: 50% 30%; } }
@media (max-width: 480px) { .map-card { min-height: 540px; } .map-plan { object-position: 50% 20%; } .map-placeholder { padding: 12px; } .map-consent { max-width: none; padding: 18px; } .map-consent p { font-size: 13px; } }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 720px;
  background: rgba(36, 42, 46, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px;
  display: flex; align-items: center; gap: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.cookie-banner[hidden] { display: none; }
.cookie-text strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.cookie-text p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cookie-text a { color: var(--yellow); text-decoration: underline; font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 11px 18px; font-size: 16px; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; } }
body.cookie-open .mobile-cta { display: none !important; }

/* Lista prioritaria: panel oscuro entre dos pilares amarillos, como la puerta de la fachada */
/* overflow: clip (no hidden): con hidden, al enfocar un campo el navegador puede desplazar el bloque de lado */
.signup { position: relative; overflow: hidden; overflow: clip; color: #fff;
  background:
    radial-gradient(38% 50% at 15% 45%, rgba(242, 178, 30, 0.13), transparent 70%),
    radial-gradient(30% 40% at 90% 85%, rgba(242, 178, 30, 0.08), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 0, 0, 0.18) 118px 120px, rgba(255, 255, 255, 0.03) 120px 121px, transparent 121px 122px),
    var(--bg-3); }
.signup::before, .signup::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(8px, 1.3vw, 18px); background: var(--pilar); pointer-events: none; }
.signup::before { left: 0; }
.signup::after { right: 0; }
.signup h2 { color: #fff; }
.signup .lead { color: rgba(255, 255, 255, 0.72); }
.signup-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.signup-benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.signup-benefits li { display: flex; gap: 12px; color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }
.signup-benefits li strong { color: #fff; font-weight: 600; }
.signup-benefits .n { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-family: var(--display); font-size: 17px; font-weight: 700; }
.signup-count { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.72); font-size: 14px; max-width: 480px; }
.signup-count strong { color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.signup-mini { width: 40px; height: auto; flex: none; }
.signup-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.signup-contact span { width: 100%; }
.signup-contact .btn { padding: 11px 18px; font-size: 16px; }
/* El email, en minúsculas y sin el espaciado de los botones; si no cabe, se parte */
.signup-contact .btn-mail { max-width: 100%; font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: anywhere; }
.form-card { position: relative; background: linear-gradient(170deg, #343b42, #2c3238); color: var(--text); border-radius: 22px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8); overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--yellow); }
.form-card h3 { font-size: 34px; text-transform: uppercase; }
.form-card .sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: #cfd4d8; font-weight: 600; }
.field label .opt { opacity: .6; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 10px; background: #252b30; border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b21e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input::placeholder { color: #7f878f; }
.field input:focus, .field select:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(242, 178, 30, 0.16); background-color: #22272b; }
.field.error input { border-color: var(--err); background: rgba(255, 127, 110, 0.07); }
.field .hint { font-size: 12px; color: var(--err); display: none; }
.field.error .hint { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 16px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--yellow); flex: none; width: 16px; height: 16px; }
.consent a { color: var(--yellow); text-decoration: underline; font-weight: 600; }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-card .btn[disabled] { opacity: .7; cursor: wait; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success .check { width: 70px; height: 70px; border-radius: 50%; background: rgba(60, 207, 127, 0.14); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 34px; text-transform: uppercase; }
.form-success p { color: var(--muted); margin: 10px 0 0; }
.form-card.done form { display: none; }
.form-card.done .form-success { display: block; }
.form-error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 127, 110, 0.1); border: 1px solid rgba(255, 127, 110, 0.4); color: #ffb3a8; font-size: 13px; }
.form-error.show { display: block; }
.demo-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(242, 178, 30, 0.1); border: 1px solid rgba(242, 178, 30, 0.35); color: #f6d27a; font-size: 12.5px; }
.demo-note[hidden] { display: none; }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
/* El «+» se dibuja con dos barras (con un carácter de la fuente quedaba descentrado) y gira a «×» al abrir */
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--yellow-line); color: var(--yellow);
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.faq summary:hover { color: var(--yellow); }
.faq details p { color: var(--muted); margin: 0 0 22px; font-size: 15px; max-width: 720px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 96px; background: var(--bg-3); font-size: 13.5px; color: var(--muted); }
.footer .footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.brand-footer { margin-bottom: 22px; }
.brand-footer .brand-logo { height: 60px; }
.footer-brand p { margin: 0 0 8px; line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; color: #c4cacf; }
.footer-brand .fi { flex: none; width: 16px; height: 16px; color: var(--yellow); margin-top: 3px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: flex-end; font-weight: 500; }
.footer nav a:hover { color: var(--yellow); }
.footer nav a[hidden] { display: none; }
.footer .powered { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; letter-spacing: .02em; }
.footer .powered a { color: var(--muted); }
.footer .powered strong { color: var(--ink); font-weight: 700; }
.footer .powered a:hover strong { color: var(--yellow); }
@media (max-width: 720px) { .footer { padding-bottom: 96px; } .footer nav { justify-content: flex-start; } .footer .powered { justify-content: center; text-align: center; } }

/* Modal legal */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 14, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-dialog { position: relative; width: min(860px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7); overflow: hidden; animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex: none; }
.modal-head h3 { font-size: 28px; text-transform: uppercase; }
.modal-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 22px; line-height: 1; transition: background .15s ease, border-color .15s ease; }
.modal-close:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--yellow); }
.modal-body { overflow: auto; padding: 8px 28px 32px; overscroll-behavior: contain; }
.modal-body.legal { padding: 8px 36px 40px; }
.modal-body .eyebrow, .modal-body h1 { display: none; }
.modal-body .lead { font-size: 16px; margin-top: 12px; }
.modal-body .legal-card { padding: 22px 26px; }
.modal-body h2 { font-size: 26px; margin: 30px 0 10px; }
.modal-loading { padding: 40px; text-align: center; color: var(--muted); }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) { .modal { padding: 0; align-items: flex-end; } .modal-dialog { max-height: 92vh; border-radius: 20px 20px 0 0; } .modal-body, .modal-body.legal { padding: 4px 20px 32px; } }

/* Páginas legales */
.legal-page .nav { position: sticky; background: rgba(34, 39, 43, 0.95); }
.legal { padding: 60px 0 100px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(44px, 6vw, 68px); }
.legal .updated { font-size: 13px; color: var(--muted); margin: 10px 0 40px; }
.legal h2 { font-size: 30px; margin: 40px 0 12px; text-transform: uppercase; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal a { color: var(--yellow); text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 8px 0 20px; }
.legal-card dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.legal-card dt { color: var(--muted); }
.legal-card dd { margin: 0; color: var(--ink); }
.legal-card dd.pending { color: #f6c35a; font-style: italic; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--yellow); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.legal td { color: var(--muted); }
.legal td:first-child { color: var(--ink); white-space: nowrap; }
.legal-page .footer { padding-bottom: 32px; }
.legal-page .footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.legal-page .footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
@media (max-width: 560px) { .legal-card dl { grid-template-columns: 1fr; gap: 2px 0; } .legal-card dt { margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; } }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* Sticky mobile CTA */
.mobile-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
.mobile-cta .btn { width: 100%; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.6); }
@media (max-width: 720px) { .mobile-cta.visible { display: block; } }

/* Desplegable de tamaños (menú propio con el estilo de la web) */
.dd { position: relative; display: block; }
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; min-height: 52px; border-radius: 10px; background: #252b30; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.dd-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.dd-btn:focus-visible, .dd-btn[aria-expanded="true"] { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(242, 178, 30, 0.16); background: #22272b; }
.dd-btn .dd-txt { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.dd-btn .dd-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-btn .dd-txt small::before { content: "· "; }
.dd-chev { margin-left: auto; width: 18px; height: 18px; color: var(--yellow); flex: none; transition: transform .15s ease; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-badge { flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.dd-badge.none { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.dd-txt { display: grid; line-height: 1.3; min-width: 0; }
.dd-txt b { font-weight: 600; color: #fff; font-size: 15px; }
.dd-txt small { color: var(--muted); font-size: 13px; }
.dd-menu { position: fixed; z-index: 90; max-height: min(70vh, 440px); overflow: auto; background: #30373d; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.7); padding: 6px; animation: ddIn .14s ease-out; overscroll-behavior: contain; }
.dd-menu.up { animation-name: ddUp; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ddUp { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.dd-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 48px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; outline: none; transition: background .12s ease; }
.dd-opt:hover, .dd-opt.act { background: rgba(242, 178, 30, 0.1); }
.dd-opt[aria-selected="true"] .dd-txt b { color: var(--yellow); }
.dd-ck { margin-left: auto; width: 18px; height: 18px; color: var(--yellow); flex: none; visibility: hidden; }
.dd-opt[aria-selected="true"] .dd-ck { visibility: visible; }
.dd-btn.flash { animation: ddFlash 1.2s ease; }
@keyframes ddFlash { 30% { border-color: var(--yellow); box-shadow: 0 0 0 5px rgba(242, 178, 30, 0.25); } }

/* WhatsApp: botón verde en los contactos y botón flotante (en móvil, junto a la llamada a la acción fija) */
.btn-wa { background: #25d366; color: #0b2e17; border-color: transparent; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.45); }
.btn-wa:hover { transform: translateY(-2px); background: #3ee07b; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.55); transition: transform .18s ease; animation: waPulse 2.4s ease-out 2.5s 3; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float::before { content: attr(data-label); position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  padding: 9px 14px; border-radius: 10px; background: #15181b; color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.wa-float:hover::before, .wa-float:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
@keyframes waPulse { 0% { box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.55); } 100% { box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 20px rgba(37, 211, 102, 0); } }
body.cookie-open .wa-float, body.modal-open .wa-float { display: none; }
@media (max-width: 720px) {
  .wa-float { right: 12px; bottom: 12px; width: 54px; height: 54px; }
  .wa-float::before { display: none; }
  .mobile-cta { right: 76px; }
}

/* Enlaces de texto y contacto */
.inline-link, .faq details p a { color: var(--yellow); text-decoration: underline; font-weight: 600; }
.map-info-block strong a { color: var(--ink); }
.map-info-block strong a:hover { color: var(--yellow); }
.footer-brand p a { color: #c4cacf; font-weight: 500; }
.footer-brand p a:hover { color: var(--yellow); }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track, .cam-card > img, .cam-card::after, .cam-scan, .hero-badge .dot, .live-dot, .wa-float, .fa-k.s, .fa-led, .fa-brillo { animation: none; }
  .js .fachada .cj path, .js .head-cajas .cj path { animation: none; transition: none; stroke-dashoffset: 0; }
  .js .fa-ico { animation: none; opacity: 1; transform: none; }
  .js .acceso-card .dia-bar i { transform: none; opacity: .9; transition: none; }
  .iso-c { transition: none; }
  .dd-menu, .dd-btn.flash { animation: none; }
}
