/* ============================================================
   ORIXE STUDIO · Sistema de diseño de landings
   Estética: negro puro + glassmorphism (web principal) + halos
   iridiscentes (LocalNode). Usado por /industrial, /automatizaciones,
   /desarrollo-web, /geo, /inmobiliaria, /eventos-3d, /prensa, /blog.
   ============================================================ */

:root {
    --primary-color: #000000;
    --secondary-color: #1c1c1e;
    --accent-color: #ffffff;
    --text-color: #f5f5f7;
    --text-dim: #b9bdcc;
    --background-color: #000000;
    --card-background: rgba(28, 28, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border-color: rgba(255, 255, 255, 0.08);
    --glass-background: rgba(28, 28, 30, 0.6);
    --halo-violet: #8e44ad;
    --halo-blue: #2980b9;
    --halo-cyan: #22d3ee;
    --halo-orange: #d35400;
    --whatsapp-color: #25D366;

    /* === SISTEMA TIPOGRÁFICO === (idéntico a style.css, ver nota allí) */
    --font-display: 'Unbounded', 'Poppins', sans-serif;
    --font-body: 'Manrope', 'Inter', sans-serif;
    --font-ui: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-family: var(--font-body);
    --tracking-display: -0.03em;

    --header-height: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
/* Necesario ahora que el HTML lleva width/height (evita CLS): sin esto, al
   encoger por max-width la altura se quedaria fija y deformaria la imagen. Las
   reglas que fijan altura a proposito (.hero-media img, .dw-hero-shot > img)
   ganan por especificidad y no se ven afectadas. */
img { height: auto; }
a { color: inherit; }

/* Jerarquía base: los titulares sin clase propia también van en display.
   Por debajo de 19px NO usar --font-display: Unbounded es una tipografía de
   titular y a cuerpo pequeño se vuelve ilegible (ver .press-card h3, .prose th). */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.14; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ---------- Halos de fondo (estética LocalNode) ---------- */
.background-glow { position: fixed; border-radius: 50%; filter: blur(150px); opacity: .28; z-index: -1; pointer-events: none; }
.glow-1 { width: 46vw; height: 46vw; background: var(--halo-violet); top: -12vw; left: -10vw; animation: glowFloat1 28s ease-in-out infinite alternate; }
.glow-2 { width: 40vw; height: 40vw; background: var(--halo-blue); bottom: -14vw; right: -8vw; animation: glowFloat2 33s ease-in-out infinite alternate; }
.glow-3 { width: 30vw; height: 30vw; background: var(--halo-cyan); top: 40vh; left: 55vw; opacity: .14; animation: glowFloat1 25s ease-in-out infinite alternate-reverse; }
@keyframes glowFloat1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,4vh) scale(1.15); } }
@keyframes glowFloat2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-5vw,-5vh) scale(.95); } }

/* ---------- Header / navegación (unificado con la home) ---------- */
.main-header { position: fixed; top: 1rem; left: 0; width: 100%; z-index: 1000; transition: top .3s ease; }
.main-nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.main-nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.main-nav .logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a, .nav-link { position: relative; text-decoration: none; font-family: var(--font-ui); font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--text-color); transition: color .3s; }
.nav-links a::after, .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -6px; left: 50%; transform: translateX(-50%); background: #fff; transition: width .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: inline; border-radius: 999px; background: #fff; color: #000 !important; padding: 9px 18px; font-weight: 700; text-decoration: none; }
.nav-cta::after { display: none !important; }

/* LocalNode: destello iridiscente EN MOVIMIENTO (violeta, cian, rosa + brillos blancos).
   El desplazamiento lo anima landing.js con requestAnimationFrame (se mueve siempre,
   también con reduce-motion); aquí solo el gradiente, el recorte a texto y el glow. */
.nav-localnode { font-weight: 700;
    background: linear-gradient(100deg, #c4b5fd 0%, #a5b4fc 20%, #7dd3fc 38%, #d8b4fe 56%, #a78bfa 76%, #c4b5fd 100%);
    background-size: 260% auto; background-position: 0 center; -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 0 3px rgba(167,139,250,.35)); }
.nav-localnode:hover { filter: drop-shadow(0 0 6px rgba(125,211,252,.5)); }

/* Desplegable de servicios */
.nav-group { position: relative; }
.nav-group > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-group > a .fa-chevron-down { font-size: 10px; opacity: .6; transition: transform .2s ease; }
.nav-group:hover > a .fa-chevron-down { transform: rotate(180deg); }
.nav-drop { list-style: none; margin: 0; }
@media (min-width: 993px) {
    .nav-drop { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
        min-width: 240px; display: grid; gap: 2px; padding: 10px;
        background: rgba(10,10,12,.92); border: 1px solid var(--glass-border-color); border-radius: 20px;
        backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
        box-shadow: 0 20px 60px rgba(0,0,0,.6);
        opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
    .nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
    .nav-drop::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
    .nav-drop a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; white-space: nowrap; }
    .nav-drop a:hover { background: rgba(255,255,255,.08); }
}
/* Botón de idioma EN/ES (idéntico a la home): círculo de cristal a la derecha,
   equilibra el "space-between" para que la píldora quede centrada. */
.nav-right { display: flex; align-items: center; gap: .75rem; }
.lang-btn { background: transparent; border: 1px solid var(--glass-border-color); color: #fff; padding: 5px 12px; border-radius: 5px; cursor: pointer; font-weight: 600; font-family: var(--font-family); transition: all .3s ease; }
/* El menú horizontal completo necesita unos 1000px: por debajo de eso la fila de
   enlaces empuja el botón de idioma y la hamburguesa fuera de la pantalla. Por eso
   el corte está en 993px y no en 769px, igual que en la home (style.css). */
@media (min-width: 993px) {
    .nav-links { padding: .75rem 2rem; background: rgba(20,20,20,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border-color); border-radius: 50px; box-shadow: 0 5px 25px rgba(0,0,0,.2); }
    .lang-btn { height: 50px; width: 50px; border-radius: 50%; padding: 0; background: rgba(20,20,20,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: inline-flex; align-items: center; justify-content: center; }
    .lang-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
}

/* Justo por encima del corte de la hamburguesa el menú cabe, pero muy justo: sin
   esto el botón «Hablemos» toca el borde redondeado de la píldora. */
@media (min-width: 993px) and (max-width: 1200px) {
    .nav-links { gap: 1.1rem; padding: .75rem 1.25rem; }
    .nav-links > li > a { font-size: .95rem; }
}

/* ---------- Menú hamburguesa (mismo comportamiento y aspecto que la home) ----------
   Botón de 30x20 con los tres trazos posicionados en absoluto: así puede
   convertirse en una X al abrir (.active) sin que el hueco del flex la descuadre. */
.hamburger-btn { display: none; background: none; border: none; color: var(--accent-color); cursor: pointer;
    width: 30px; height: 20px; position: relative; padding: 0; }
.hamburger-btn span { display: block; position: absolute; height: 2px; width: 100%; left: 0;
    background: var(--accent-color); border-radius: 2px; opacity: 1; transform: rotate(0deg); transition: .25s ease-in-out; }
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 9px; }
.hamburger-btn span:nth-child(3) { top: 18px; }
.hamburger-btn.active span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger-btn.active span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

/* Va hasta 992px (no 768px) porque el menú horizontal deja de caber mucho antes
   de llegar al móvil: en tablet y en móvil apaisado se salía de la pantalla. */
@media (max-width: 992px) {
    /* La cabecera vuelve a ser una barra superior normal */
    .main-header {
        top: 0;
        background: linear-gradient(to bottom, rgba(10,10,10,.95) 0%, rgba(10,10,10,.6) 50%, rgba(10,10,10,0) 100%);
        border-bottom: none;
        padding-top: 10px;
    }

    .nav-right { gap: .5rem; }
    .lang-btn { padding: 4px 8px; font-size: .85rem; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* 100dvh descuenta la barra de direcciones del móvil (100vh se queda
           por debajo del borde y recortaba los últimos enlaces). */
        height: 100dvh;
        background-color: rgba(5,5,5,.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        /* `safe center` centra cuando el menú cabe, pero se comporta como
           flex-start cuando no cabe: con `center` a secas el desbordamiento se
           reparte arriba y abajo y el primer enlace queda fuera de la pantalla. */
        justify-content: center;
        justify-content: safe center;
        align-items: center;
        gap: 1.3rem;
        /* El padding superior deja libre la X de cerrar. */
        padding: 4.25rem 1.25rem 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 2000;
        clip-path: circle(0% at top right);
        transition: clip-path .7s cubic-bezier(.77,0,.175,1);
        pointer-events: none;
        visibility: hidden;
    }

    .nav-links.active { clip-path: circle(150% at top right); pointer-events: auto; visibility: visible; }

    .nav-links > li { opacity: 0; transform: translateY(30px); transition: all .4s cubic-bezier(.175,.885,.32,1.275); }
    .nav-links.active > li { opacity: 1; transform: translateY(0); }

    /* Entrada escalonada: el menú tiene 8 elementos. */
    .nav-links.active > li:nth-child(1) { transition-delay: .1s; }
    .nav-links.active > li:nth-child(2) { transition-delay: .15s; }
    .nav-links.active > li:nth-child(3) { transition-delay: .2s; }
    .nav-links.active > li:nth-child(4) { transition-delay: .25s; }
    .nav-links.active > li:nth-child(5) { transition-delay: .3s; }
    .nav-links.active > li:nth-child(6) { transition-delay: .35s; }
    .nav-links.active > li:nth-child(7) { transition-delay: .4s; }
    .nav-links.active > li:nth-child(8) { transition-delay: .45s; }

    /* En las landings los enlaces de primer nivel no llevan clase `nav-link`
       (en la home sí), así que se seleccionan por posición: hijo directo del <li>
       que cuelga del menú. Eso deja fuera los del submenú, que van aparte. */
    .nav-links > li > a {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        line-height: 1.25;
        text-transform: uppercase;
        background: linear-gradient(180deg, #fff 0%, #888 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: all .3s ease;
    }

    .nav-links.active > li > a:hover { letter-spacing: 5px; filter: brightness(1.2); }
    .nav-links a::after { display: none; }

    /* Dos columnas centradas: en una sola columna los 6 subenlaces quedaban
       alineados a la izquierda y ocupaban tanto alto que empujaban los últimos
       enlaces fuera de la pantalla. */
    .nav-group {
        width: 100%;
        max-width: 330px;
        margin: .3rem 0;
        text-align: center;
    }

    .nav-drop {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
        text-align: center;
        gap: 4px 8px;
        /* Tarjeta: agrupa los 6 subenlaces para que se lean como un bloque
           dependiente de «Servicios» y no como 6 entradas sueltas del menú. */
        margin-top: .6rem;
        padding: .7rem .6rem;
        background: rgba(255,255,255,.035);
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 18px;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        min-width: 0;
    }

    .nav-drop a {
        display: flex;
        align-items: center;
        justify-content: center;
        /* Dos de los seis rótulos («Automatización e IA» y «Buscadores IA · GEO»)
           no caben en una línea sin dejar la letra diminuta. En vez de encogerla,
           se le da a TODAS las celdas la altura de dos líneas: así la rejilla
           queda regular y el corte parece intencionado. */
        min-height: 2.6em;
        text-wrap: balance;
        padding: 5px 6px;
        border-radius: 12px;
        font-size: .92rem;
        font-weight: 600;
        line-height: 1.3;
        color: rgba(255,255,255,.82);
        text-decoration: none;
        letter-spacing: .2px;
        white-space: normal;
        transition: background-color .25s ease, color .25s ease;
    }

    .nav-drop a:active { background: rgba(255,255,255,.08); color: #fff; }

    /* «Servicios» deja de ser un enlace gigante y pasa a ser el rótulo del
       bloque: pequeño, espaciado y en gris, para marcar la jerarquía. */
    .nav-group > .nav-drop-toggle {
        pointer-events: none;
        display: block;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: 3.5px;
        opacity: 1;
        background: none;
        -webkit-text-fill-color: rgba(255,255,255,.42);
        color: rgba(255,255,255,.42);
    }

    /* En móvil el submenú ya está desplegado, así que la flecha sobra. */
    .nav-group > .nav-drop-toggle .fa-chevron-down { display: none; }

    /* La llamada a la acción cierra el menú: más cuerpo y aire por encima para que
       no parezca un enlace más de la lista. El margen va en el <li> porque el <a>
       es inline y ahí el margen vertical no empuja nada. El `>` es imprescindible:
       sin él también cazaría el último <li> del submenú. */
    .nav-links .nav-cta {
        display: inline-block;
        padding: 14px 42px;
        font-size: 1.2rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        border-radius: 999px;
        /* Se repiten fondo y color porque `.nav-links > li > a` (más específico)
           les pone el degradado recortado a texto del resto de enlaces. */
        background: #fff;
        color: #000;
        -webkit-text-fill-color: #000;
    }
    .nav-links > li:last-child { margin-top: 1.6rem; }

    /* Mismo motivo: el destello iridiscente de LocalNode tiene que ganarle al
       degradado gris de los enlaces del menú. */
    .nav-links > li > a.nav-localnode {
        background: linear-gradient(100deg, #c4b5fd 0%, #a5b4fc 20%, #7dd3fc 38%, #d8b4fe 56%, #a78bfa 76%, #c4b5fd 100%);
        background-size: 260% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hamburger-btn { display: block; z-index: 2100; }
}

/* Pantallas bajas (móviles pequeños y cualquier móvil en horizontal): con el
   espaciado holgado el menú se pasaba unos píxeles y aparecía scroll por nada. */
@media (max-width: 992px) and (max-height: 700px) {
    .nav-links { gap: .9rem; padding-top: 3.5rem; }
    .nav-links > li > a { font-size: 1.3rem; }
    .nav-group { margin: .15rem 0; }
    .nav-links .nav-cta { padding: 11px 36px; font-size: 1.05rem; }
    .nav-links > li:last-child { margin-top: .8rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: calc(var(--header-height) + 40px) 0 60px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 30%, transparent 0%, rgba(0,0,0,.55) 60%, #000 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; padding: 0 20px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 18px; }
h1.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(31px, 5.1vw, 57px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h1.hero-title .grad { background: linear-gradient(92deg, #fff 25%, #c4b5fd 60%, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 640px; margin: 22px auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 15px 30px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid var(--glass-border-color); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 34px rgba(255,255,255,.16); }
.btn-primary:hover { box-shadow: 0 0 46px rgba(196,181,253,.4); }
.btn-glass { background: var(--glass-background); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-whatsapp { background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.4); color: #4ee68a; }
.btn-call { background: rgba(37,163,216,.14); border-color: rgba(37,163,216,.4); color: #5ec4ea; }

/* ---------- Secciones ---------- */
section { padding: 90px 0; position: relative; }
.section-title { font-family: var(--font-display); font-size: clamp(24px, 3.3vw, 36px); font-weight: 700; text-align: center; letter-spacing: -.03em; line-height: 1.15; }
.section-subtitle { font-size: 16.5px; color: var(--text-dim); text-align: center; max-width: 640px; margin: 16px auto 0; }
.section-head { margin-bottom: 52px; }

/* ---------- Franja de confianza / clientes ---------- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; padding: 26px 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.trust-strip .t-label { font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); width: 100%; text-align: center; margin-bottom: 4px; }
.trust-strip .t-name { font-family: var(--font-ui); font-weight: 700; font-size: clamp(15px, 1.8vw, 19px); color: rgba(255,255,255,.55); letter-spacing: .04em; white-space: nowrap; transition: color .25s; }
.trust-strip .t-name:hover { color: #fff; }

/* ---------- Grid de tarjetas glass ----------
   Flexbox centrado: las filas completas se llenan y la última fila,
   si queda incompleta, se centra (en vez de pegarse a la izquierda). */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.card-grid > * { flex: 1 1 280px; max-width: 400px; }
.glass-card { background: var(--card-background); border: 1px solid var(--glass-border-color); border-radius: 28px; padding: 30px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.glass-card:hover { transform: translateY(-4px); border-color: rgba(196,181,253,.35); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 40px rgba(142,68,173,.12); }
.glass-card .card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border-color); font-size: 22px; margin-bottom: 18px; color: #c4b5fd; }
.glass-card h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: 18px; margin-bottom: 10px; }
.glass-card p { font-size: 14.5px; color: var(--text-dim); }

/* ---------- Vídeos de trabajos ---------- */
.work-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.work-grid > * { flex: 1 1 300px; max-width: 520px; }
.work-figure { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--glass-border-color); background: #0a0a0d; cursor: pointer; }
.work-figure video { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.work-figure .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); transition: opacity .25s ease; }
.work-figure .play-badge span { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 26px; color: #fff; transition: transform .2s ease; }
.work-figure:hover .play-badge span { transform: scale(1.08); }
.work-figure.playing .play-badge { opacity: 0; pointer-events: none; }
.work-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; pointer-events: none; }
.work-figure figcaption b { display: block; font-family: var(--font-ui); font-size: 16px; }
.work-figure .fs-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,.3); background: rgba(10,10,14,.55); color: #fff; font-size: 14px; opacity: 0; transition: opacity .25s ease, background .2s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.work-figure:hover .fs-btn, .work-figure.playing .fs-btn { opacity: 1; }
.work-figure .fs-btn:hover { background: rgba(255,255,255,.2); }
/* A pantalla completa el recorte deja de tener sentido: se ve el fotograma entero. */
.work-figure video:fullscreen { object-fit: contain; aspect-ratio: auto; }
.work-figure video:-webkit-full-screen { object-fit: contain; }

/* Pie sobre fotografía dentro de una tarjeta */
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.photo-cap b { display: block; font-family: var(--font-ui); font-size: 14.5px; color: #fff; }
.photo-cap span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* Tarjeta de producto: foto de fondo oscurecida con el logo encima, brillando */
.dw-hero-shot { position: relative; margin: 0; overflow: hidden; background: #06070b; }
.dw-hero-shot > img:first-child { width: 100%; height: 330px; object-fit: cover; display: block; filter: brightness(.34) saturate(.85); }
.dw-hero-shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 45%, rgba(124,196,255,.16), transparent 70%); }
.dw-hero-shot .dw-hero-logo { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: min(46%, 190px); height: auto; aspect-ratio: auto; z-index: 2; filter: drop-shadow(0 0 26px rgba(167,139,250,.65)) drop-shadow(0 0 60px rgba(34,211,238,.35)); animation: dwLogoGlow 4.2s ease-in-out infinite; }
@keyframes dwLogoGlow { 0%, 100% { filter: drop-shadow(0 0 22px rgba(167,139,250,.5)) drop-shadow(0 0 48px rgba(34,211,238,.26)); } 50% { filter: drop-shadow(0 0 34px rgba(167,139,250,.85)) drop-shadow(0 0 78px rgba(34,211,238,.45)); } }
.dw-hero-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; pointer-events: none; }
.dw-hero-shot figcaption b { display: block; font-family: var(--font-ui); font-size: 16px; }
.dw-hero-shot figcaption span { color: rgba(255,255,255,.65); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.work-figure figcaption span { color: rgba(255,255,255,.65); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Pasos / proceso ---------- */
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; counter-reset: step; }
.steps > * { flex: 1 1 220px; max-width: 320px; }
.step { position: relative; background: var(--card-background); border: 1px solid var(--glass-border-color); border-radius: 24px; padding: 28px 24px 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; font-size: 32px; background: linear-gradient(180deg, #c4b5fd, rgba(196,181,253,.15)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 10px; }
.step h3 { font-size: 17px; font-family: var(--font-ui); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---------- Listas con check ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.6; color: var(--text-dim); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 3px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); color: #22d3ee; font-size: 12px; font-weight: 700; }
.check-list li b { color: var(--text-color); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card-background); border: 1px solid var(--glass-border-color); border-radius: 20px; overflow: hidden; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: none; border: none; color: var(--text-color); font-family: var(--font-family); font-size: 16px; font-weight: 600; text-align: left; padding: 20px 24px; cursor: pointer; }
.faq-q::after { content: '+'; font-size: 22px; color: #c4b5fd; transition: transform .25s ease; flex: 0 0 auto; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 14.8px; color: var(--text-dim); }

/* ---------- Prensa / tarjetas de artículo ---------- */
.press-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.press-list > * { flex: 1 1 280px; max-width: 400px; }
.press-card { display: block; text-decoration: none; background: var(--card-background); border: 1px solid var(--glass-border-color); border-radius: 22px; padding: 24px; transition: transform .22s ease, border-color .22s ease; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.press-card:hover { transform: translateY(-3px); border-color: rgba(196,181,253,.4); }
.press-card .p-source { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: #c4b5fd; }
.press-card h3 { font-family: var(--font-ui); font-weight: 700; font-size: 16.5px; line-height: 1.4; margin: 10px 0 8px; color: var(--text-color); }
.press-card .p-date { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; border-top: 1px solid var(--border-color); }
.final-cta .hero-ctas { margin-top: 32px; }
.contact-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 30px; font-size: 14.5px; color: var(--text-dim); }
.contact-mini a { color: #c4b5fd; text-decoration: none; }

/* ---------- Footer (idéntico a la home) ---------- */
.main-footer { border-top: 1px solid var(--border-color); padding: 34px 0; margin-top: 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-address { margin-top: 4px; font-size: 12.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; }
.footer-nav a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.social-links a { color: rgba(255,255,255,.7); font-size: 20px; text-decoration: none; }

/* ---------- Animaciones reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; } .reveal-d5 { transition-delay: .40s; }
/* ---------- Migas ---------- */
.breadcrumbs { font-size: 12.5px; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Prose (artículos de blog) ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 16.5px; color: #d5d8e2; }
.prose h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(21px, 2.6vw, 26px); margin: 46px 0 16px; color: #fff; line-height: 1.25; }
.prose h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: 18px; margin: 34px 0 12px; color: #fff; }
.prose p { margin: 0 0 18px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 18px 22px; display: grid; gap: 8px; }
.prose li { line-height: 1.65; }
.prose a { color: #c4b5fd; text-decoration: underline; text-decoration-color: rgba(196,181,253,.4); text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid #c4b5fd; padding: 6px 0 6px 20px; margin: 24px 0; color: #fff; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border-color); padding: 11px 14px; text-align: left; }
.prose th { background: rgba(255,255,255,.05); font-family: var(--font-ui); font-weight: 700; font-size: 13.5px; }
.prose img, .prose svg { border-radius: 20px; margin: 26px auto; }
.prose figure { margin: 26px 0; }
.prose figcaption { font-size: 13px; color: rgba(255,255,255,.45); text-align: center; margin-top: 10px; }

/* Créditos de foto (atribución discreta) */
.foto-credito{font-size:.72rem;line-height:1.25;color:rgba(230,232,240,.42);text-align:right;margin-top:6px;letter-spacing:.01em;font-style:normal;}
.foto-credito a{color:inherit;text-decoration:underline;}

/* Logotipo de texto al abrir el pie */
.footer-wordmark { text-align: center; margin-bottom: 26px; }
.footer-wordmark a { position: relative; display: inline-block; line-height: 0; }
.footer-wordmark img { width: clamp(180px, 26vw, 250px); height: auto; opacity: .66; transition: opacity .35s ease; }
.footer-wordmark a:hover img { opacity: 1; }
/* Destello sutil que recorre las letras. Va enmascarado con el propio trazo del logo,
   así que solo ilumina la tipografía y nunca pinta un rectángulo encima. */
@supports (mask-image: url('images/logo-orixe-studio.svg')) {
    .footer-wordmark a::after {
        content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
        background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%);
        background-size: 260% 100%; background-repeat: no-repeat;
        -webkit-mask: url('images/logo-orixe-studio.svg') center / contain no-repeat;
        mask: url('images/logo-orixe-studio.svg') center / contain no-repeat;
        animation: fwSheen 7s cubic-bezier(.4,0,.2,1) infinite;
    }
    .footer-wordmark a:hover::after { opacity: .85; }
}
@keyframes fwSheen { 0%, 12% { background-position: 135% 0; } 62%, 100% { background-position: -35% 0; } }
/* Vista previa de la app en un teléfono: es una app móvil, así se ve como se usa.
   Se mira, no se toca. */
.app-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.app-phone-body { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.5; padding: 10px;
    border-radius: 40px; background: #07070a; border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 34px 80px rgba(0,0,0,.72), 0 0 40px rgba(0,0,0,.5); }
.app-phone-body::before { content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
    width: 33%; height: 1.5%; background: #07070a; border-radius: 0 0 12px 12px; z-index: 2; }
/* El iframe hereda su caja como viewport: al 100% eran ~278px y la app se
   pintaba en su diseño más estrecho (el título caía en tres líneas). Se le da un
   viewport de móvil real (390px) y se encoge con transform, igual que hace la
   demo de /localnode/. Las medidas exactas las pone el script del final de
   /sectores/administracion-local/; esto de aquí es el estado seguro por si no
   llega a ejecutarse. */
.app-phone-body { overflow: hidden; }
/* `position:absolute` es imprescindible, no decorativo: el script le da al iframe
   una altura mayor que la caja (viewport de 390px encogido), y en flujo normal eso
   estiraba la caja, que disparaba el ResizeObserver, que recalculaba con la caja ya
   estirada... bucle. La altura llegó a 47.000.000 px. Fuera del flujo, la caja
   manda siempre y el cálculo converge a la primera. */
.app-phone-body iframe { position: absolute; display: block; width: 100%; height: 100%; border: 0;
    border-radius: 31px; background: #0a0a0e; pointer-events: none; user-select: none;
    transform-origin: top left; }
.app-phone figcaption { font-size: 13px; color: var(--text-dim); text-align: center; max-width: 520px; }

/* Apoyo visual de fondo para una sección. La imagen se pasa por --sec-fondo desde el HTML.
   OJO: una url() dentro de una variable se resuelve contra la hoja que la USA, no contra la
   página, así que la ruta va desde la raíz del sitio. Muy velada: manda el texto. */
.sec-fondo { position: relative; isolation: isolate; }
.sec-fondo::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--sec-fondo) center / cover no-repeat;
    opacity: .16; filter: saturate(.7);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
