/* B&L Technology - estilos propios de la web (tanda 32: antes estaban dentro de index.html) */
:root {
    --bg: #03060f;
    --line: rgba(120, 170, 255, 0.13);
    --blue: #1e8fff;
    --cyan: #38d5ff;
    --text: #dbe7fb;
    --muted: #8fa3c4;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --logo: url('/img/logo.webp');
    --foto: url('/img/taller.webp');
}
html { scroll-padding-top: 96px; }
body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
/* Fondo global: resplandores de marca + cuadrícula técnica que se desvanece */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(60% 50% at 85% -10%, rgba(30, 143, 255, .16), transparent 60%),
        radial-gradient(45% 40% at -5% 45%, rgba(56, 213, 255, .07), transparent 60%),
        var(--bg);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(130, 180, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 180, 255, .035) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}
h1, h2, h3 { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; letter-spacing: -.01em; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050a16; }
::-webkit-scrollbar-thumb { background: linear-gradient(#1e8fff, #0b5cff); border-radius: 10px; border: 2px solid #050a16; }
select option { background: #071022; color: #fff; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(30, 143, 255, .2); }

/* ---------- Paneles / tarjetas ---------- */
.glass-panel {
    background: linear-gradient(180deg, rgba(15, 28, 60, .72), rgba(7, 14, 33, .78));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 24px 50px -30px rgba(0, 0, 0, .75);
}
.glass-panel-glow { position: relative; transition: transform .45s var(--ease), border-color .35s, box-shadow .35s; }
.glass-panel-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 200, 255, .5);
    box-shadow: 0 22px 50px -22px rgba(30, 143, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* Foco de luz que sigue al cursor */
.glass-panel-glow::before, .spot::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 200, 255, .15), transparent 45%);
    transition: opacity .35s;
}
.glass-panel-glow:hover::before, .spot:hover::before { opacity: 1; }
.spot { position: relative; }
.band { background: rgba(7, 14, 34, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Títulos de sección ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: linear-gradient(270deg, transparent, var(--cyan)); }
.sec-title { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.12; margin-top: .75rem; }
.sec-desc { color: var(--muted); font-size: .95rem; line-height: 1.7; margin-top: 1rem; }
.grad-text, .tech-gradient-text {
    background: linear-gradient(120deg, #ffffff 0%, #a8e0ff 32%, #38c8ff 62%, #1e8fff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botones ---------- */
.btn-primary {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.6rem; border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
    color: #03111f; background: linear-gradient(135deg, #6fdcff, #1e8fff); overflow: hidden;
    box-shadow: 0 12px 30px -10px rgba(30, 143, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .3s var(--ease), box-shadow .3s, filter .3s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 40px -10px rgba(30, 143, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px;
    font-weight: 700; font-size: .85rem; color: #e7f1ff; border: 1px solid rgba(150, 190, 255, .3);
    background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); transition: all .3s var(--ease);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(56, 213, 255, .08); transform: translateY(-2px); }

/* ---------- Encabezado ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(3, 6, 15, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s; }
.hdr.scrolled { background: rgba(3, 8, 20, .9); border-bottom-color: var(--line); box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .9); }
.hdr .bar { height: 84px; transition: height .3s var(--ease); }
.hdr.scrolled .bar { height: 68px; }
.brand-logo { display: block; height: 66px; width: 92px; background: var(--logo) center / contain no-repeat; transition: all .3s var(--ease); }
.hdr.scrolled .brand-logo { height: 54px; width: 75px; }
.nav-link { position: relative; padding: .5rem 0; color: #b7c6e2; font-weight: 500; font-size: .86rem; transition: color .25s; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
#scrollProgress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--cyan)); z-index: 60; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 118px); display: flex; align-items: center; padding: 3.5rem 0 6.5rem; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 1; }
#heroNet { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; }
.aurora.a1 { width: 520px; height: 520px; left: -140px; top: -120px; background: rgba(30, 143, 255, .35); animation: drift1 16s ease-in-out infinite; }
.aurora.a2 { width: 460px; height: 460px; right: -120px; top: 20%; background: rgba(56, 213, 255, .22); animation: drift2 19s ease-in-out infinite; }
.floor { position: absolute; left: -10%; right: -10%; bottom: -8%; height: 46%; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(56, 200, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 200, 255, .22) 1px, transparent 1px);
    background-size: 64px 64px; transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%); }
.beam { position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; opacity: .55; background: linear-gradient(90deg, transparent, rgba(56, 213, 255, .85), transparent); animation: beam 8s linear infinite; }
.hero-title { color: #fff; font-weight: 800; line-height: 1.07; font-size: clamp(2.3rem, 5.4vw, 4.2rem); margin-top: 1.25rem; }
.hero-logo-wrap { transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0); transition: transform .25s ease-out; }
.hero-logo { width: min(100%, 520px); aspect-ratio: 640 / 461; margin: 0 auto; background: var(--logo) center / contain no-repeat; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 0 50px rgba(30, 143, 255, .45)); }
.statcard { border-radius: 22px; padding: 1.25rem 1.4rem; background: linear-gradient(160deg, rgba(20, 40, 85, .62), rgba(6, 12, 30, .8)); border: 1px solid rgba(120, 180, 255, .22); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.scroll-mouse { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .55rem; color: #8fa3c4; font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; }
.scroll-mouse i { width: 22px; height: 36px; border: 1.5px solid rgba(160, 200, 255, .55); border-radius: 14px; position: relative; display: block; }
.scroll-mouse i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite; }

/* ---------- Procesos / pasos ---------- */
.steps-line::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 200, 255, .55), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.steps-line.in::before { transform: scaleX(1); }
.step-num { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--cyan); background: radial-gradient(circle at 30% 25%, rgba(56, 213, 255, .25), rgba(8, 16, 38, .95)); border: 1px solid rgba(56, 200, 255, .45); box-shadow: 0 0 28px -4px rgba(30, 143, 255, .55); }

/* ---------- Foto del laboratorio ---------- */
.photo { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--foto) center / cover no-repeat; border: 1px solid rgba(120, 180, 255, .25); box-shadow: 0 40px 80px -40px rgba(30, 143, 255, .45); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 6, 15, .92) 0%, rgba(3, 6, 15, .1) 50%, rgba(3, 20, 60, .25) 100%); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #e7f1ff; background: rgba(8, 18, 42, .7); border: 1px solid rgba(120, 180, 255, .3); backdrop-filter: blur(8px); }

/* ---------- Reveal (animaciones al hacer scroll) ---------- */
.js .reveal { opacity: 0; translate: 0 34px; filter: blur(6px); transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); will-change: opacity, translate; }
.js .reveal.reveal-left { translate: -44px 0; }
.js .reveal.reveal-right { translate: 44px 0; }
.js .reveal.reveal-zoom { translate: 0 18px; scale: .93; }
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; filter: none; }

/* ---------- Otros ---------- */
#faqAccordion [id^="faqContent-"]:not(.hidden) { animation: faqIn .4s var(--ease); }
.map-dark { filter: invert(.92) hue-rotate(188deg) saturate(.7) contrast(.92) brightness(.95); }
#toTop { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #cfe6ff; background: rgba(8, 18, 42, .85); border: 1px solid var(--line); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .35s var(--ease); }
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { border-color: var(--cyan); color: #fff; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(90px, 60px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-80px, 70px); } }
@keyframes beam { 0% { top: 0; opacity: 0; } 10% { opacity: .55; } 90% { opacity: .55; } 100% { top: 100%; opacity: 0; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes cyberPulse { 0%, 100% { opacity: .3; transform: scale(1); } 50% { opacity: .6; transform: scale(1.05); } }
.animate-aura { animation: cyberPulse 6s ease-in-out infinite; }

@media (max-width: 1023px) { .hero { min-height: auto; padding: 2.5rem 0 5.5rem; } .scroll-mouse { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; translate: 0 0; scale: 1; filter: none; transition: none; }
    .aurora, .beam, .hero-logo, .scroll-mouse i::after { animation: none; }
    html { scroll-behavior: auto; }
}
