/* Quantum Domotics — hoja de estilos del sitio (rediseño 2026-10, versión 3)
   Fondo estelar fijo para toda la página; las secciones, islas de cristal translúcido a todo el ancho de la pantalla.
   Acento azul eléctrico metalizado (el verde se confundía con el de otras marcas del sector). Los nombres de producto, en
   blanco: el color amarillo de Simulator es sólo de la aplicación, donde avisa de que se está simulando. */

@font-face { font-family: Inter; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Medium.ttf")  format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Bold.ttf")    format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
    --bg:          #04070c;
    --glass:       rgba(255,255,255,0.055);
    --glass-line:  rgba(255,255,255,0.15);
    --text:        #f2f5f9;
    --muted:       rgba(242,245,249,0.80);
    --faint:       rgba(242,245,249,0.58);
    --accent:      #2f7dff;   /* azul eléctrico */
    --accent-2:    #8cbcff;   /* su reflejo claro */
    --accent-glow: rgba(47,125,255,0.5);
    --metal:       linear-gradient(135deg, #1a5be0 0%, #3f8cff 38%, #9cc6ff 52%, #3f8cff 66%, #1747c4 100%);
    --live:        #2bd67b;
    --warn:        #ffb84d;
    --radius:      clamp(14px, 2.2vmin, 26px);
    --island:      min(94vw, 1800px);
    --pad:         clamp(26px, 4.5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg); color: var(--text);
    font-size: clamp(16px, 0.55vw + 12px, 19px); line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #fff; font-weight: 600; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; color: var(--accent-2); background: rgba(47,125,255,0.14); padding: 0.05em 0.35em; border-radius: 5px; }

/* ── Fondo estelar, fijo para toda la página ─────────────────── */
.site-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #000 url("../media/fondo-estelar-portada.webp") center / cover no-repeat; }
.site-bg video { width: 100%; height: 100%; object-fit: cover; filter: blur(1.5px) saturate(1.05); }
.site-bg::after { content: ""; position: absolute; inset: 0; background: rgba(2,5,11,0.40); }

/* ── Tipografía ───────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; color: #fff; }
h2 { font-size: clamp(2rem, 2.6vw + 0.8rem, 3.6rem); }
h3 { font-size: clamp(1.7rem, 1.8vw + 0.8rem, 2.9rem); }
h4 { font-size: clamp(1.1rem, 0.5vw + 0.95rem, 1.45rem); margin-bottom: 0.45em; }
.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #d3dff1 55%, #93a9c9 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
p + p { margin-top: 0.9em; }
.lead { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.4rem); color: var(--muted); max-width: 54em; }
.kicker {
    display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--metal); box-shadow: 0 0 10px var(--accent-glow); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; color: var(--faint); }
.tm { font-size: 0.6em; vertical-align: super; line-height: 0; }

/* ── Botones: azul metalizado ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.55em; padding: 0.85em 1.45em; border-radius: 999px;
    font-weight: 600; font-size: 1rem; line-height: 1; border: 1px solid transparent; cursor: pointer; font-family: inherit;
    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
    background: var(--metal); background-size: 200% 100%; background-position: 0% 0;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    border-color: rgba(190,220,255,0.55); box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 38px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 22px rgba(47,125,255,0.25); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ── Cabecera: logotipo con lema, demostración (al bajar) y el icono del menú ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(5,9,17,0.66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.site-header .bar { width: var(--island); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; height: 76px; }
.site-header .brand img { height: clamp(34px, 3vw, 46px); width: auto; }
.header-actions .btn { transition: opacity .35s ease, transform .2s ease, box-shadow .2s ease, background-position .4s ease, border-color .2s ease, color .2s ease; }   /* las de .btn, más la de aparecer */
.site-header[data-hero]:not(.past-hero) .header-actions .btn { opacity: 0; pointer-events: none; }   /* en la portada, la demostración ya está a la vista */
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.header-actions .btn { padding: 0.7em 1.2em; font-size: 0.92rem; }
.cta-short { display: none; }   /* el texto corto del botón, solo en el móvil */

/* El menú: un icono que despliega todas las secciones al pasar el ratón (y al pulsar, en pantallas táctiles). */
.menu { position: relative; }
.menu-toggle {
    width: 46px; height: 46px; border-radius: 12px; cursor: pointer; font-size: 1.2rem; color: #fff;
    background: rgba(255,255,255,0.07); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.menu:hover .menu-toggle, .menu-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 22px rgba(47,125,255,0.35); }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(760px, 92vw);
    background: rgba(6,10,18,0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    padding: 1.4rem 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* puente: el ratón no pierde el menú al bajar */
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-title { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 0.5rem; font-weight: 600; }
.menu-panel a { display: flex; align-items: center; gap: 0.7rem; padding: 0.42rem 0.5rem; border-radius: 8px; color: var(--muted); font-size: 0.94rem; }
.menu-panel a i { width: 1.2em; text-align: center; color: var(--accent-2); }
.menu-panel a:hover { background: rgba(47,125,255,0.14); color: #fff; text-decoration: none; }
.menu-panel .menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.8rem; margin-top: 0.4rem; }
@media (max-width: 760px) {
    .menu-panel { position: fixed; left: 3vw; right: 3vw; top: 84px; width: auto; grid-template-columns: 1fr; max-height: calc(100vh - 100px); overflow-y: auto; }
    .header-actions .btn { padding: 0.45em 0.8em; font-size: 0.8rem; }   /* en el móvil también, compacta: el tráfico de LinkedIn llega sobre todo desde el móvil */
    .cta-long { display: none; }
    .cta-short { display: inline; }
    /* El logotipo entero (nombre y lema), reducido al sitio que dejan los botones; idioma y menú, algo más pequeños. */
    .site-header .bar { gap: 0.6rem; }
    .header-actions { gap: 0.4rem; }
    .site-header .brand { flex: 1 1 0; min-width: 0; }
    .site-header .brand img { width: 100%; height: auto; max-height: 34px; object-fit: contain; object-position: left center; }
    .header-actions .lang, .menu-toggle { width: 38px; height: 38px; }
}

/* ── Portada: encuadrada en la ventana ─────────────────────── */
/* Más espacio abajo que arriba: el bloque queda algo por encima del centro, donde la vista sitúa el centro. */
.hero { height: 100vh; height: 100svh; min-height: 620px; display: flex; align-items: center; position: relative; padding: 86px 0 clamp(56px, 16vh - 60px, 150px); }
.hero::before {   /* legibilidad: el texto, sobre la parte más oscura */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.42) 35%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0) 80%);
}
.hero-content { width: var(--island); margin: 0 auto; }
.hero-grid {
    display: grid; gap: clamp(14px, 6vh - 16px, 56px) clamp(28px, 4vw, 80px); align-items: center;   /* entre titular y texto */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "title shot" "text shot";
}
.hero-title { grid-area: title; }
.hero-text  { grid-area: text; }
.hero-shot  { grid-area: shot; }
.hero h1 { font-size: clamp(1.7rem, min(3.1vw, 4.9vh) + 0.3rem, 3.8rem); color: #fff; }
.hero h1 .verb {   /* los cuatro usos, resaltados */
    background: linear-gradient(135deg, #5d9bff 0%, #b9d6ff 50%, #5d9bff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .hero-product {   /* el producto, con la tipografía de la marca, como antetítulo: manda el mensaje */
    display: block; height: clamp(18px, 2.7vh, 32px); width: auto; max-width: 100%; margin-bottom: clamp(12px, 2.4vh, 26px);
    filter: drop-shadow(0 0 22px rgba(47,125,255,0.45));
}
.hero .lead { font-size: clamp(0.95rem, min(0.95vw, 1.75vh) + 0.4rem, 1.25rem); }
.hero .lead + .lead { margin-top: 0.9em; }
.footnote { font-size: 0.86rem; color: var(--faint); margin-top: clamp(0.8rem, 2vh, 1.4rem); }
.hero .btn-row { margin-top: clamp(1.4rem, 5vh - 6px, 3rem); }   /* aire entre el texto y los botones */
.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.4rem; opacity: 0.75; animation: bounce 2.2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -16px); } 60% { transform: translate(-50%, -8px); } }
@media (max-width: 1280px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }   /* pantallas medianas: más sitio al texto, la captura se amplía al pulsarla */
@media (max-width: 960px) {
    .hero { height: auto; min-height: 100svh; }
    .hero-grid { grid-template-columns: 1fr; grid-template-areas: "title" "shot" "text"; }   /* en estrecho, la captura justo tras el titular */
    .hero-shot { justify-self: start; width: min(100%, calc(24svh * 16 / 9)); }   /* pequeña, para que quepa todo: se amplía al pulsarla */
    .hero::before { background: rgba(0,0,0,0.45); }
}
/* Entrada animada (al cargar y al volver a la portada) */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-content.animate-in > .hero-grid > * { animation: fadeInUp 1s ease-out both; }
.hero-content.animate-in .hero-title { animation-delay: .12s; }
.hero-content.animate-in .hero-text  { animation-delay: .24s; }
.hero-content.animate-in .hero-shot  { animation-delay: .34s; }

/* Captura con brillo */
.shot {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-line); background: #0b1018;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(47,125,255,0.18);
}
.shot img, .shot video { width: 100%; height: auto; }
.shot.diagram { background: transparent; border: 0; box-shadow: none; overflow: visible; }   /* los diagramas, sobre el fondo de la página */
[data-zoom], [data-zoom-video] { cursor: zoom-in; }
.shot[data-zoom] { position: relative; }
.shot[data-zoom]::after {   /* indica que se amplía */
    content: "\f065"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: 0.85rem; line-height: 1;
    position: absolute; right: 10px; bottom: 10px; padding: 0.5em; border-radius: 8px; color: #fff;
    background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.18); opacity: 0.75; transition: opacity .2s ease;
}
.shot[data-zoom]:hover::after { opacity: 1; }

/* ── Franja de título: abre cada gran bloque (h2) ──────────── */
.band { width: var(--island); margin: clamp(80px, 12vmin, 160px) auto clamp(-20px, -2vmin, -10px); padding: 0 var(--pad); }
.band h2 { position: relative; padding-bottom: 0.4em; }
.band h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(240px, 40%); height: 3px; background: var(--metal); border-radius: 3px; box-shadow: 0 0 16px var(--accent-glow); }
.band .lead { margin-top: 1rem; }

/* ── Islas de cristal (los apartados, h3) ──────────────────── */
.island {
    width: var(--island); margin: clamp(48px, 7vmin, 96px) auto; padding: var(--pad);
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: calc(var(--radius) * 1.3);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: border-color .35s ease, box-shadow .35s ease;
}
.island:hover { border-color: rgba(140,188,255,0.5); box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(47,125,255,0.1); }
.section-head { max-width: 1000px; margin-bottom: clamp(30px, 4vw, 56px); }
.section-head h3 { margin-bottom: 0.45em; }

/* Tarjetas */
.grid { display: grid; gap: clamp(14px, 1.8vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
    padding: clamp(20px, 2.2vw, 34px); backdrop-filter: blur(6px);
    transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); background: rgba(0,0,0,0.38); border-color: var(--accent); box-shadow: 0 16px 36px rgba(0,0,0,0.35), 0 0 26px rgba(47,125,255,0.25); }
.card p, .card li { color: var(--muted); font-size: 0.98rem; }
.card ul { margin: 0.6rem 0 0 1.1rem; }
.card li + li { margin-top: 0.3rem; }
.card .icon {
    width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
    color: #fff; background: var(--metal); border: 1px solid rgba(190,220,255,0.5); font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(47,125,255,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.card .tag { margin-top: 0.9rem; }

/* Tarjetas de producto, con su logotipo */
.product-card { display: flex; flex-direction: column; }
.logo-heading { margin: 0; line-height: 0; }
.logo-heading img { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.logo-platform { height: clamp(56px, 4.4vw, 80px); margin: 0.4rem 0 1.1rem; }
.product-card .logo { height: clamp(46px, 3.6vw, 60px); margin-bottom: 1rem; }
.product-card.wide { grid-column: 1 / -1; }
.product-card.wide ul { columns: 2 22rem; column-gap: 2.5rem; }
.product-card .status { align-self: flex-start; margin-bottom: 0.9rem; }

/* Estados */
.status { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.32em 0.75em; border-radius: 6px; border: 1px solid currentColor; }
.status.available { color: var(--live); }
.status.dev       { color: var(--warn); }
.status.vision    { color: var(--accent-2); }

/* Pasos */
.step { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.step + .step { margin-top: clamp(48px, 6vw, 88px); }
.step.reverse .step-media { order: -1; }
.step-label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 0.7rem; display: block; }
.ticks { list-style: none; margin-top: 1rem; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }
.step .btn-row { margin-top: 1.6rem; }
@media (max-width: 960px) { .step { grid-template-columns: 1fr; } .step.reverse .step-media { order: 0; } }

/* Ficha técnica */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 3vw, 56px); margin-top: clamp(28px, 3vw, 44px); }
.spec div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.spec dt { color: var(--accent-2); font-weight: 600; font-size: 0.92rem; }
.spec dd { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .spec { grid-template-columns: 1fr; } .spec div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 22px); }
.gallery figure { transition: transform .3s ease; }
.gallery figure:hover { transform: translateY(-4px); }
.gallery figcaption { margin-top: 0.55rem; font-size: 0.88rem; color: var(--faint); }
.gallery.pair { grid-template-columns: repeat(2, 1fr); }   /* dos capturas enfrentadas: el plano y el panel */
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery, .gallery.pair { grid-template-columns: 1fr; } }

.facts { list-style: none; display: grid; gap: 12px; }
.facts li { position: relative; padding-left: 1.9rem; color: var(--muted); }   /* sin grid: un <strong> dentro del texto caería en otra columna */
.facts li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--accent-2); font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* Problema de fondo: cada punto con su número grande */
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 28px); }
.issue .n { display: block; margin-bottom: 0.6rem; font-size: clamp(2.2rem, 3vw, 3.2rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(140,188,255,0.8); }
@media (max-width: 1100px) { .issues { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .issues { grid-template-columns: 1fr; } }
.source { margin-top: 1.2rem; font-size: 0.86rem; color: var(--faint); }

/* Lo esencial */
.quote { font-size: clamp(1.15rem, 0.9vw + 0.9rem, 1.65rem); color: #fff; max-width: 48em; line-height: 1.5; font-weight: 500; }
.quote em { font-style: normal; color: var(--accent-2); }

/* Hueco de imagen pendiente: se ve a propósito, para no olvidarlo antes de publicar */

/* Hoja de ruta */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 28px); }
.roadmap .col { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: clamp(20px, 2.2vw, 34px); transition: border-color .3s ease, transform .3s ease; }
.roadmap .col:hover { border-color: var(--accent); transform: translateY(-4px); }
.roadmap .col > .status { margin-bottom: 1.1rem; }
.roadmap li { color: var(--muted); list-style: none; padding: 0.55rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.roadmap li strong { display: block; }
@media (max-width: 960px) { .roadmap { grid-template-columns: 1fr; } }

/* Llamada a la acción */
.cta-band { background: linear-gradient(135deg, rgba(47,125,255,0.26), rgba(47,125,255,0.06)); border-color: rgba(140,188,255,0.5); }
.cta-band .btn-row { margin-top: 1.8rem; }

/* Vídeo */
.video-frame { max-width: 1200px; margin: 0 auto; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.caption { margin-top: 0.8rem; font-size: 0.9rem; color: var(--faint); text-align: center; }
.embed-video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); }

/* Contacto */
.contact-list { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.contact-list a { color: var(--text); }
.contact-list i { width: 1.7em; color: var(--accent-2); }

/* Pie */
.site-footer { width: var(--island); margin: 0 auto 32px; padding: 32px var(--pad); font-size: 0.86rem; color: var(--faint); background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); backdrop-filter: blur(10px); display: grid; gap: 1.2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center; }
.footer-top img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a, .footer-social a { color: var(--muted); }
.footer-social { display: flex; gap: 1rem; font-size: 1.15rem; }
.legal { line-height: 1.55; max-width: 70em; }

/* Páginas secundarias y formularios */
.page { padding-top: 92px; }
.page h1 { font-size: clamp(2rem, 2.6vw + 0.8rem, 3.6rem); margin-bottom: 0.5em; }
.back { width: var(--island); margin: clamp(1.6rem, 3vmin, 2.6rem) auto; }
.prose { max-width: 62em; }
.prose h2 { font-size: clamp(1.35rem, 0.8vw + 1rem, 1.8rem); margin: 2em 0 0.6em; }
.prose h3 { font-size: clamp(1.15rem, 0.5vw + 0.95rem, 1.45rem); margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0.8em 0 0 1.2em; }
.prose ol { margin: 0.8em 0 0 1.5em; }
.prose h3 + p { margin-top: 0.8em; }
.prose li + li { margin-top: 0.35em; }
.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { font-size: 0.9rem; color: var(--muted); display: grid; gap: 0.35rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: rgba(0,0,0,0.35); border: 1px solid var(--glass-line); border-radius: 10px; padding: 0.75em 0.9em; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,125,255,0.22); }
.form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; }
.form .check input { margin-top: 0.3em; }
.form button[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Cookies (mismos identificadores que antes: main.js) */
.cookie-banner { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 780px; margin: 0 auto; background: rgba(6,10,18,0.95); backdrop-filter: blur(14px); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); font-size: 0.9rem; color: var(--muted); }
.cookie-banner .btn-row { margin-top: 0.9rem; }
.cookie-banner .btn { padding: 0.6em 1em; font-size: 0.9rem; }
.cookie-modal { display: none; position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.active { display: flex; }
.cookie-modal-content { background: rgba(10,14,22,0.97); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 1.6rem; max-width: 560px; width: 100%; }
.cookie-modal-content h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.cookie-modal-content > p { color: var(--muted); font-size: 0.92rem; }
.cookie-option { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cookie-option h4 { font-size: 0.96rem; margin: 0; }
.cookie-option p { font-size: 0.86rem; color: var(--faint); }
.cookie-modal-buttons { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: rgba(255,255,255,0.2); border-radius: 24px; cursor: pointer; transition: .2s; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: 0.6; cursor: default; }

/* Visor a pantalla completa (capturas y clips) */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 92vh; border-radius: 8px; }
.lightbox img[src$=".svg"] { background: #000; padding: clamp(12px, 3vmin, 40px); width: min(96vw, 1600px); object-fit: contain; }   /* a pantalla completa, sobre negro para verlo nítido */

/* Aparición al bajar */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Las columnas de una cuadrícula pueden encoger por debajo del ancho intrínseco de su contenido (una imagen de 1600 px):
   sin esto, en el móvil la página se sale por la derecha. */
.hero-grid > *, .two-col > *, .step > *, .grid > *, .roadmap > *, .gallery > *, .issues > *, .spec > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-content.animate-in > .hero-grid > *, .scroll-cue { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .site-bg video { display: none; }
}

/* Apartados dentro de una página secundaria (h2 bajo su h1) */
.subsection { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid rgba(255,255,255,0.1); }
.subsection > h2 { font-size: clamp(1.6rem, 1.6vw + 0.9rem, 2.6rem); margin-bottom: 0.4em; }
.card-cta { margin-top: auto; padding-top: 1.3rem; }   /* la llamada a la acción, al pie de la tarjeta */
.page > section.island:first-child { margin-top: clamp(2rem, 5vmin, 3.5rem) !important; }   /* páginas sin «Volver»: separada de la cabecera */

/* Selector de idioma: junto al menú, con su mismo aspecto */
.lang {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; color: #fff;
    background: rgba(255,255,255,0.07); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 22px rgba(47,125,255,0.35); text-decoration: none; }

/* Preguntas frecuentes: desplegables, en una columna (al abrir una, las demás no dejan huecos) */
.faq { display: grid; gap: 0.9rem; }
.faq-item { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 0 clamp(18px, 2vw, 28px); transition: border-color .3s ease, box-shadow .3s ease; }
.faq-item:hover, .faq-item[open] { border-color: rgba(140,188,255,0.45); box-shadow: 0 0 26px rgba(47,125,255,0.15); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(1rem, 0.35vw + 0.9rem, 1.15rem); margin: 0; }
.faq-item summary::after { content: "\f078"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: 0.85rem; color: var(--accent-2); transition: transform .3s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding-bottom: 1.2rem; color: var(--muted); }

