/* ==========================================================================
   Luciérnaga — Estilos propios
   Sobre Bootstrap 5 (grid y reset). Toda la identidad visual se define aquí.
   Orden: variables · fuentes · base · botones · header · hero · secciones
          · tarjetas · destacado LED · reel · clientes · razones · chips
          · proceso · CTA · landings · footer · responsive · accesibilidad
   ========================================================================== */

/* ------------------------------------------------------------------ Variables */
:root {
    /* Paleta de marca */
    --ink:        #1E1E1E;   /* Negro carbón */
    --yellow:     #F8C810;   /* Amarillo Luciérnaga */
    --warm:       #F7F5EF;   /* Blanco cálido */
    --muted:      #6F6F6F;   /* Gris texto secundario */

    /* Apoyos derivados */
    --ink-2:      #2b2b2b;
    --warm-2:     #efeadf;
    --white:      #ffffff;
    --yellow-2:   #ffd84a;
    --text-body:  #4a4a4a;   /* Texto de párrafo con contraste AA sobre fondos claros */
    --line:       rgba(30, 30, 30, .12);

    /* Sombras y radios */
    --shadow:     0 24px 70px rgba(0, 0, 0, .12);
    --shadow-sm:  0 12px 30px rgba(0, 0, 0, .10);
    --radius:     28px;
    --radius-lg:  42px;
    --radius-sm:  16px;
    --radius-pill: 999px;

    /* Tipografía */
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Espaciado de secciones */
    --section-y:  100px;
    --section-y-tight: 70px;
}

/* ------------------------------------------------------------------ Fuentes */
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------------ Base */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--warm);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--text-body); }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }

/* Contenedor propio (sobre-escribe el de Bootstrap para controlar el ancho) */
.container {
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

/* Enlace de salto para accesibilidad */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    z-index: 9999;
    background: var(--yellow);
    color: var(--ink);
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

/* ------------------------------------------------------------------ Botones */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-pill);
    padding: 15px 24px;
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--yellow); color: #141414; }
.btn-dark    { background: var(--ink);    color: var(--warm); }
.btn-ghost   { background: transparent;   border-color: var(--line); color: var(--ink); }
.btn-light   { background: var(--white);  color: var(--ink); border-color: var(--line); }
.btn-small   { padding: 12px 18px; font-size: .92rem; }

.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button-row--top { margin-top: 30px; }
.microcopy  { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ------------------------------------------------------------------ Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 239, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(30, 30, 30, .08);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
    background: rgba(247, 245, 239, .95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}
.header-inner { height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.site-nav { display: flex; gap: 22px; align-items: center; margin-left: auto; font-size: .95rem; }
.site-nav a { position: relative; color: var(--ink-2); opacity: .82; transition: opacity .2s ease, color .2s ease; }
.site-nav a:hover, .site-nav a.is-active { opacity: 1; color: var(--ink); }
.site-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -10px;
    height: 3px;
    background: var(--yellow);
    border-radius: 20px;
}

.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span {
    display: block; width: 25px; height: 2px;
    background: var(--ink); margin: 5px 0; border-radius: 5px;
    transition: transform .2s ease, opacity .2s ease;
}

/* ------------------------------------------------------------------ Secciones */
.section { padding: var(--section-y) 0; }
.section-tight { padding: var(--section-y-tight) 0; }

.section-dark {
    background: var(--ink);
    color: var(--warm);
    border-radius: var(--radius-lg);
    margin: 30px auto;
    width: min(1240px, calc(100% - 24px));
    overflow: hidden;
}
.section-dark h2, .section-dark h3, .section-dark p { color: var(--warm); }
.section-dark p { opacity: .82; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 18px var(--yellow);
}
.section-dark .eyebrow { color: var(--yellow); }

.section-heading { max-width: 820px; margin-bottom: 46px; }
.section-heading--center { text-align: center; margin-inline: auto; }
.section-heading p { font-size: 1.12rem; margin-top: 18px; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: 76px 0 72px; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    right: -20vw; top: -18vw;
    width: 55vw; height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 200, 16, .34), rgba(248, 200, 16, 0) 66%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 48px;
    align-items: center;
}
.hero-copy p { font-size: 1.18rem; max-width: 660px; margin: 24px 0 22px; }

.hero-bullets {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin: 0 0 28px; padding: 0; list-style: none;
}
.hero-bullets li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 9px 13px;
    font-size: .9rem;
    color: var(--text-body);
}

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.trust-item {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 18px;
}
.trust-item strong { display: block; font-size: 1.4rem; letter-spacing: -.03em; }
.trust-item span { font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------------ Tarjeta de video */
.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    box-shadow: var(--shadow);
    isolation: isolate;
}
.video-card video, .video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}
/* Botón de reproducción manual (sin autoplay) */
.video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 3;
}
.video-play span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow);
    color: #141414;
    font-weight: 800;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.video-play.is-hidden { display: none; }

.video-overlay {
    position: absolute;
    inset: auto 18px 18px 18px;
    display: flex; gap: 12px;
    align-items: flex-end; justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}
.video-label {
    background: rgba(247, 245, 239, .92);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
.video-label strong { display: block; letter-spacing: -.02em; }
.video-label span { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.live-pill {
    background: var(--yellow);
    border-radius: var(--radius-pill);
    padding: 10px 13px;
    font-weight: 800; color: #171717;
    font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ Tarjetas de servicio */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card::before {
    content: '';
    position: absolute;
    right: -54px; top: -64px;
    width: 170px; height: 170px;
    border-radius: 50%;
    background: rgba(248, 200, 16, .22);
}
.service-number { position: relative; font-family: var(--font-serif); font-size: 3.6rem; color: var(--yellow); line-height: 1; }
.service-card h3 { position: relative; }
.service-card p { margin: 16px 0 20px; }
.service-card ul {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 8px;
    color: var(--text-body); font-size: .95rem;
}
.service-card li::before { content: '•'; color: var(--yellow); font-weight: 900; margin-right: 8px; }

/* ------------------------------------------------------------------ Destacado / split + LED */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.check-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
    content: '✓';
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--yellow); color: #111;
    font-weight: 900; flex: 0 0 22px; margin-top: 2px;
}
.section-dark .check-list li { color: var(--warm); }

.glow-box {
    position: relative;
    min-height: 520px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0d0d0d, #242424);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
}
.glow-box::before {
    content: '';
    position: absolute;
    right: -120px; bottom: -100px;
    width: 470px; height: 470px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--yellow), rgba(248, 200, 16, 0) 68%);
    opacity: .9;
}
.glow-box::after {
    content: 'LED';
    position: absolute;
    left: 34px; bottom: 30px;
    color: rgba(247, 245, 239, .08);
    font-family: var(--font-serif);
    font-size: 11rem; font-weight: 900; letter-spacing: -.06em; line-height: 1;
}
.spec-card {
    position: absolute;
    background: rgba(247, 245, 239, .94);
    color: var(--ink);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    width: 250px;
}
.spec-card:nth-child(1) { left: 32px; top: 34px; }
.spec-card:nth-child(2) { right: 34px; top: 160px; }
.spec-card:nth-child(3) { left: 70px; bottom: 98px; }
.spec-card strong { display: block; }
.spec-card span { color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ Reel */
.reel-section .video-card { max-width: 980px; margin: 0 auto; }
.reel-caption { text-align: center; max-width: 720px; margin: 22px auto 0; }

/* ------------------------------------------------------------------ Clientes */
.section-clients { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Celda uniforme: cada logo se centra con el mismo alto y aire alrededor */
.client-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 26px 30px;
    background: var(--warm);
    border: 1px solid var(--line);
    border-radius: 18px;
}
/* Logos recortados a su marca: se limita alto Y ancho para equilibrar
   ópticamente wordmarks anchos y emblemas cuadrados. */
.client-cell img {
    width: auto;
    max-width: 132px;
    max-height: 46px;
    object-fit: contain;
}

/* ------------------------------------------------------------------ Razones */
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reason-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}
.reason-card .icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--yellow);
    display: grid; place-items: center;
    font-weight: 900; margin-bottom: 18px;
}
.reason-card p { margin-top: 12px; font-size: .95rem; }

/* ------------------------------------------------------------------ Chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 13px 16px;
    color: var(--ink-2);
    font-weight: 600;
}

/* ------------------------------------------------------------------ Proceso */
.process { counter-reset: step; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}
.process-card::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--ink); color: var(--yellow);
    font-weight: 900; margin-bottom: 18px;
}
.process-card p { margin-top: 12px; font-size: .93rem; }

/* ------------------------------------------------------------------ CTA */
.cta-band {
    position: relative;
    background: var(--ink);
    color: var(--warm);
    border-radius: var(--radius-lg);
    padding: 70px;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute;
    right: -110px; top: -110px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 200, 16, .75), rgba(248, 200, 16, 0) 68%);
}
.cta-band h2, .cta-band p { color: var(--warm); position: relative; }
.cta-band p { opacity: .82; max-width: 650px; margin: 18px 0 28px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ------------------------------------------------------------------ Landings */
.landing-hero { padding: 74px 0 60px; }
.landing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.landing-lead { font-size: 1.18rem; margin-top: 24px; max-width: 720px; }
.landing-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.landing-card h3 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; }
.landing-card p { margin: 12px 0 22px; }
.price-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

.service-hero-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.service-hero-list li { padding-left: 32px; position: relative; color: var(--text-body); }
.service-hero-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    color: #111; background: var(--yellow);
    border-radius: 50%;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    font-size: .8rem; font-weight: 900;
}
.ad-note {
    display: inline-flex;
    margin-top: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 10px 13px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: .9rem;
}

.two-col-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.content-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
}
.content-card p { margin-top: 14px; }

.feature-panel {
    background: var(--warm);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}
.feature-panel h3 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; color: var(--ink); }
.feature-panel .check-list li { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}
.faq summary { cursor: pointer; font-weight: 800; letter-spacing: -.02em; }
.faq p { margin-top: 12px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: #080808; color: var(--warm); padding: 72px 0 28px; margin-top: 80px; }
.site-footer p, .site-footer a, .site-footer span { color: rgba(247, 245, 239, .72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 4px; }
.footer-title { color: var(--warm); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col a { display: block; margin: 9px 0; }
.footer-brand .btn-pill { color: #141414; margin-top: 20px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 46px; padding-top: 22px;
    display: flex; justify-content: space-between; gap: 20px;
    font-size: .88rem;
}

/* Botón flotante WhatsApp (móvil) */
.mobile-whatsapp { display: none; }

/* ================================================================== Responsive */
@media (max-width: 1050px) {
    .header-cta { display: none; }
    .site-nav { gap: 16px; }
    .hero-grid, .landing-grid, .split { grid-template-columns: 1fr; }
    .hero { padding-top: 50px; }
    .trust-strip, .reason-grid, .process-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .glow-box { min-height: 430px; }
    .section { padding: 80px 0; }
}

@media (max-width: 780px) {
    body { font-size: 15px; }
    .container { width: min(100% - 28px, 1180px); }
    .header-inner { height: 72px; }
    .brand img { height: 38px; }

    /* Menú móvil desplegable */
    .menu-toggle { display: block; margin-left: auto; }
    .site-nav {
        position: absolute;
        left: 14px; right: 14px; top: 78px;
        background: var(--warm);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { width: 100%; padding: 10px 0; }
    .site-nav a.is-active::after { display: none; }

    h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
    h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .hero-copy p, .landing-lead { font-size: 1rem; }
    .button-row .btn-pill, .cta-buttons .btn-pill { width: 100%; }

    .card-grid, .two-col-grid,
    .trust-strip, .reason-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }

    .section-dark { border-radius: 28px; }
    .reel-section .video-card { min-height: 0; }
    .video-overlay { position: static; background: #111; padding: 12px; align-items: stretch; }
    .video-label { width: 100%; }
    .live-pill { display: none; }

    .cta-band { padding: 36px 22px; border-radius: 28px; }
    .footer-bottom { flex-direction: column; }

    /* LED glow-box: apila las tarjetas de especificaciones */
    .glow-box { min-height: 0; padding: 12px; }
    .glow-box::after { font-size: 7rem; }
    .spec-card {
        position: relative;
        left: auto; right: auto; top: auto; bottom: auto;
        width: auto; margin: 18px;
    }

    /* Botón flotante WhatsApp */
    .mobile-whatsapp {
        display: flex;
        position: fixed;
        left: 14px; right: 14px; bottom: 14px;
        z-index: 99;
        justify-content: center;
        background: var(--yellow);
        color: #111;
        border-radius: var(--radius-pill);
        padding: 16px 22px;
        font-weight: 800;
        box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    }
    .site-footer { padding-bottom: 96px; }
}

/* ================================================================== Accesibilidad */
/* Foco visible y consistente para navegación por teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn-pill:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 6px;
}
.section-dark a:focus-visible,
.cta-band a:focus-visible,
.site-footer a:focus-visible {
    outline-color: var(--yellow);
}

/* Respeto a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
