/* ============================================================
   ElectronicST — Sistema de diseño (estilo oscuro cinemático)
   ============================================================ */
:root {
    --black: #000000;
    --panel: #0c0c0f;
    --panel-2: #131318;
    --text: #f5f5f7;
    --muted: #86868b;
    --muted-2: #a1a1aa;
    --line: rgba(255, 255, 255, .12);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--black); color: var(--text); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
/* Fondo de seda monocromo: imagen descargada del sitio de Resend
   (assets/img/background-auth.webp). Fijo: no se mueve con el scroll.
   Se usa la misma imagen en escritorio y móvil con `cover`. En móvil se
   desplaza la posición para mostrar la zona iluminada de la seda en lugar
   del centro negro. */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url("img/background-auth.webp") center / cover no-repeat;
}
body::after {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 280px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, #000 0%, #000 30%, rgba(0, 0, 0, .85) 55%, rgba(0, 0, 0, .45) 85%, transparent 100%);
}
@media (max-width: 720px) {
    body::before { background-position: 85% 20%; }
}
img {
    max-width: 100%; display: block;
    -webkit-user-select: none; user-select: none;
    -webkit-user-drag: none; -khtml-user-drag: none;
    -moz-user-select: none; -o-user-select: none;
}
a { -webkit-tap-highlight-color: transparent; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Transición nativa de página (navegadores compatibles) */
@view-transition { navigation: auto; }

/* ---------------- Botones ---------------- */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
    font-family: inherit; text-decoration: none; border: none; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn-blue { background: #fff; color: #000 !important; box-shadow: 0 8px 24px rgba(255, 255, 255, .14); }
.btn-blue:hover { background: #e8e8ed; box-shadow: 0 12px 32px rgba(255, 255, 255, .2); }

.btn-light { background: #fff; color: #1d1d1f; }
.btn-light:hover { background: #e8e8ed; }

.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Botones de contacto: WhatsApp (verde) y mensaje de texto (negro) */
.btn-wa { background: #25d366; border: 1px solid transparent; color: #04120a; }
.btn-wa:hover { background: #2ee06f; }
.btn-sms { background: #000; border: 1px solid var(--line); color: #fff; }
.btn-sms:hover { background: #16161a; }
.btn-ico { width: 17px; height: 17px; flex: none; }

/* Brillo que recorre el botón */
.btn-blue::after, .btn-light::after {
    content: ""; position: absolute; top: 0; left: -90%; width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(0, 0, 0, .08), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn-blue:hover::after, .btn-light:hover::after { left: 140%; }

/* Enlace con flecha estilo Apple */
.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff; text-decoration: none; font-weight: 500; font-size: 15px;
    transition: color .2s;
}
.link-arrow:hover { color: #c7c7cc; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------- Navegación ---------------- */
.nav {
    position: sticky; top: 0; z-index: 60;
    padding: 10px 14px 0;
    pointer-events: none;
}
.nav-inner {
    position: relative; z-index: 61;
    display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px;
    padding: 0 8px 0 16px;
    pointer-events: auto;
}
/* Cápsula flotante: el fondo/blur va en un pseudo-elemento para que el menú
   móvil (position: fixed) siga posicionándose respecto al viewport */
.nav-inner::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .15) 100%),
        rgba(6, 6, 8, .88);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 44px rgba(0, 0, 0, .4);
    transition: background .3s, border-color .3s;
}
.nav.scrolled .nav-inner::before {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 100%),
        rgba(4, 4, 6, .96);
    border-color: rgba(255, 255, 255, .16);
}
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 16px; }
.brand img {
    height: 25px; width: auto;
    transition: transform .35s var(--ease);
}
.brand .logo-desktop { display: block; }
.brand .logo-mobile { display: none; }
.brand:hover img { transform: scale(1.06); }
@media (max-width: 720px) {
    .brand img { height: 28px; }
    .brand .logo-desktop { display: none; }
    .brand .logo-mobile { display: block; }
}
.burger { position: relative; z-index: 2; }
.nav-links { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; }
.nav-links > a {
    position: relative; z-index: 1;
    text-decoration: none; color: var(--muted-2); font-weight: 500; font-size: 13.5px;
    padding: 8px 14px; border-radius: 999px; transition: color .25s;
}
.nav-links > a:hover, .nav-links > a.active { color: #fff; }
.nav-pill {
    position: absolute; top: 50%; left: 0; z-index: 0;
    height: 36px; width: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    transform: translateY(-50%); opacity: 0; pointer-events: none;
    transition: left .35s var(--ease), width .35s var(--ease), opacity .25s;
}
.nav-meta { display: none; }
.nav-cta { margin-left: 8px; }

.burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; border: none; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .08); padding: 0 11px;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
    .burger { display: flex; }
    .nav-pill { display: none; }
    .nav-links {
        position: fixed; inset: 0;
        flex-direction: column; align-items: center; justify-content: center; gap: 6px;
        background: rgba(4, 4, 8, .82);
        backdrop-filter: blur(28px) saturate(1.4);
        -webkit-backdrop-filter: blur(28px) saturate(1.4);
        opacity: 0; pointer-events: none;
        transition: opacity .35s var(--ease);
    }
    .nav-links.open { opacity: 1; pointer-events: auto; }
    .nav-links > a {
        font-size: clamp(26px, 6.5vw, 34px); font-weight: 700; letter-spacing: -.02em;
        color: var(--text); padding: 10px 24px;
        opacity: 0; transform: translateY(22px);
        transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s;
        transition-delay: 0s;
    }
    .nav-links.open > a { opacity: 1; transform: none; transition-delay: var(--d, 0s), var(--d, 0s), 0s; }
    .nav-links .nav-cta { margin: 20px 0 0; font-size: 16px; padding: 15px 34px; }
    .nav-meta {
        display: block; position: absolute; bottom: 32px; left: 24px; right: 24px;
        text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8;
        opacity: 0; transform: translateY(14px);
        transition: opacity .45s var(--ease), transform .45s var(--ease);
    }
    .nav-links.open .nav-meta { opacity: 1; transform: none; transition-delay: .32s; }
    .nav-meta a { color: var(--muted-2); font-weight: 600; text-decoration: none; }
    /* Link de acceso al admin (solo visible en el menú móvil) */
    .nav-meta .nav-admin-link { color: #d4af37; letter-spacing: .05em; }
}

/* ---------------- Hero a pantalla completa ---------------- */
.hero {
    position: relative; min-height: calc(100svh - 70px);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: -12% 0 0; height: 112%; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; opacity: 1; }
.hero::after {
    content: ""; position: absolute; inset: -30% 0 0; height: 130%; z-index: -1;
    background: linear-gradient(180deg, #000 0%, #000 8%, rgba(0, 0, 0, .42) 24%, rgba(0, 0, 0, .32) 72%, #000 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 110px 24px 90px; max-width: 920px; will-change: opacity; }
.hero-eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .24em;
    text-transform: uppercase; color: #d4d4d8;
}
.hero h1 {
    font-size: clamp(44px, 7.5vw, 92px); font-weight: 800;
    letter-spacing: -.045em; line-height: 1.02; margin: 18px 0 20px;
    text-wrap: balance;
}
.hero .sub { color: #d4d4d8; font-size: clamp(16px, 1.7vw, 20px); max-width: 600px; margin: 0 auto 38px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Entrada escalonada del hero */
.h-in { opacity: 0; animation: heroUp 1s var(--ease) forwards; }
.h-in-1 { animation-delay: .1s; }
.h-in-2 { animation-delay: .22s; }
.h-in-3 { animation-delay: .36s; }
.h-in-4 { animation-delay: .5s; }
@keyframes heroUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

/* ---------------- Marquee ---------------- */
.marquee {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    overflow: hidden; padding: 16px 0; background: #000;
}
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-size: 12.5px; font-weight: 600; letter-spacing: .22em;
    text-transform: uppercase; color: #6e6e73; white-space: nowrap;
}
.marquee-track b { color: rgba(255, 255, 255, .45); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Capítulos de producto ---------------- */
.chapter { padding: 120px 0 30px; text-align: center; overflow: hidden; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .24em;
    text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.chapter h2 {
    font-size: clamp(36px, 5.5vw, 64px); font-weight: 800;
    letter-spacing: -.04em; line-height: 1.05; margin: 14px 0 16px;
    text-wrap: balance;
}
.chapter .sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); max-width: 580px; margin: 0 auto 10px; }
.chapter .price-line { color: #d4d4d8; font-size: 15px; font-weight: 600; margin-bottom: 26px; }
.chapter .cta-row { display: flex; gap: 14px 28px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 60px; }

.chapter-figure { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.chapter-figure .glow {
    position: absolute; inset: 12% -4% auto; height: 75%;
    border-radius: 50%; filter: blur(100px); opacity: .45;
    background: var(--glow, #8e8e93); z-index: 0; pointer-events: none;
}
.chapter-figure img {
    position: relative; z-index: 1; width: 100%; border-radius: 26px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
}

/* Cuadros flotantes sobre la imagen del capítulo */
.figure-media {
    position: relative; display: inline-block; width: 100%;
}
.figure-badge {
    position: absolute; z-index: 2;
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 20px;
    background: rgba(12, 12, 15, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(30px) scale(.92);
    transition: opacity 1.1s cubic-bezier(.34, 1.56, .64, 1), transform 1.1s cubic-bezier(.34, 1.56, .64, 1);
}
.figure-badge-top {
    top: 6%; left: 6%;
    transition-delay: .35s;
}
.figure-badge-top-right {
    top: 6%; right: 6%;
    transition-delay: .5s;
}
.figure-badge-bottom {
    bottom: 6%; right: 6%;
    transition-delay: .65s;
}
.figure-badge-bottom-left {
    bottom: 6%; left: 6%;
    transition-delay: .8s;
}
.chapter-figure.in .figure-badge {
    opacity: 1; transform: none;
}
.badge-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}
.badge-title {
    font-size: 17px; font-weight: 800; letter-spacing: -.01em;
    color: var(--text);
}

@media (max-width: 720px) {
    .figure-badge {
        padding: 10px 12px;
        border-radius: 12px;
        max-width: calc(50% - 16px);
    }
    .figure-badge-top { top: 4%; left: 4%; }
    .figure-badge-top-right { top: 4%; right: 4%; }
    .figure-badge-bottom { bottom: 4%; right: 4%; }
    .figure-badge-bottom-left { bottom: 4%; left: 4%; }
    .badge-eyebrow { font-size: 9px; letter-spacing: .12em; }
    .badge-title { font-size: 13px; }
}

/* ---------------- Where we operate ---------------- */
.operate { padding: 80px 24px 40px; }
.operate-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center;
}
.operate-info h2 {
    font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.05; margin: 14px 0 16px;
}
.operate-info .sub { color: var(--muted); font-size: 16px; margin-bottom: 32px; max-width: 460px; }
.operate-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
    padding: 18px 20px; margin-bottom: 14px;
    transition: transform .35s var(--ease), border-color .3s;
}
.operate-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .22);
}
.operate-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .9); flex-shrink: 0;
}
.operate-icon svg { width: 24px; height: 24px; }
.operate-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.operate-card p { color: var(--muted); font-size: 13.5px; }
.operate-map {
    position: relative; border-radius: 26px; overflow: hidden;
    border: 1px solid var(--line); background: #111;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
    aspect-ratio: 4 / 3;
}
#coverageMap { width: 100%; height: 100%; background: #0b1426; }
/* Tinte azul navy sobre el canvas WebGL (ajustar hue-rotate/saturate al gusto) */
.maplibregl-canvas { filter: brightness(.9) sepia(.6) hue-rotate(185deg) saturate(1.7); }
/* Tarjeta de la tienda: flota fija arriba del mapa (no es popup de MapLibre) */
.store-card {
    position: absolute; top: 14px; left: 50%; z-index: 5;
    transform: translate(-50%, -8px); opacity: 0;
    background: rgba(12, 12, 15, .92); color: var(--text);
    border: 1px solid var(--line); border-radius: 16px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    pointer-events: none;
}
.store-card.visible { opacity: 1; transform: translate(-50%, 0); }
/* Flechita dorada sobre el punto exacto de la tienda (rebota en el sitio) */
.map-arrow {
    width: 24px; height: 24px; color: #d4af37;
    opacity: 0; transition: opacity .5s var(--ease) .2s;
}
.map-arrow.visible { opacity: 1; }
.map-arrow svg {
    width: 100%; height: 100%; display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
    animation: arrowBounce 1.6s ease-in-out infinite;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(-9px); }
    50% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .map-arrow svg { animation: none; transform: translateY(-4px); }
}
.sp-card { padding: 15px 18px 16px; display: grid; gap: 3px; }
.sp-title { font-size: 14.5px; font-weight: 700; }
.sp-sub { font-size: 12.5px; color: var(--muted); }
.sp-meta {
    margin-top: 11px; padding-top: 10px;
    border-top: 1px solid var(--line); display: grid; gap: 7px;
}
.sp-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); }
.sp-row svg { width: 14px; height: 14px; color: #d4af37; flex-shrink: 0; }
.coverage-legend {
    position: absolute; left: 12px; bottom: 12px; z-index: 5;
    background: rgba(12, 12, 15, .92); color: var(--text);
    border: 1px solid var(--line); border-radius: 14px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 12px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.coverage-legend h4 {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--muted); margin-bottom: 8px;
}
.coverage-legend ul { list-style: none; display: grid; gap: 6px; }
.coverage-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.coverage-legend .swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.coverage-legend .swatch-alabama { background: #d4af37; }

@media (max-width: 860px) {
    .operate-grid { grid-template-columns: 1fr; }
    .operate-map { aspect-ratio: 16 / 10; }
}

/* ---------------- Valores ---------------- */
.values { padding: 110px 24px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.value {
    position: relative;
    padding: 34px 30px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s var(--ease);
    overflow: hidden;
}
.value::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .08) 0%, transparent 55%);
    opacity: 0; transition: opacity .4s;
}
.value::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .11) 1px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9) 0%, transparent 70%);
    opacity: .55;
}
.value:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .5);
}
.value:hover::before { opacity: 1; }
.value-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .4s var(--ease), background .3s;
}
.value:hover .value-icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, .12);
}
.value svg { width: 24px; height: 24px; color: rgba(255, 255, 255, .9); }
.value h3 { position: relative; font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.value p { position: relative; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------------- Panel de reserva (CTA) ---------------- */
.cta-banner {
    position: relative; margin: 40px 14px 0; border-radius: 28px; overflow: hidden;
    border: 1px solid var(--line);
    background: transparent;
}
/* Luz blanca que deriva lentamente por el panel */
.cta-banner::before {
    content: ""; position: absolute; inset: -25%; pointer-events: none;
    background:
        radial-gradient(36% 50% at 32% 42%, rgba(255, 255, 255, .10) 0%, transparent 70%),
        radial-gradient(28% 42% at 68% 62%, rgba(255, 255, 255, .07) 0%, transparent 70%);
    animation: ctaLight 16s ease-in-out infinite alternate;
}
@keyframes ctaLight {
    0% { transform: translate3d(-4%, -3%, 0) scale(1); }
    100% { transform: translate3d(4%, 4%, 0) scale(1.12); }
}
/* Campo de puntos */
.cta-banner::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.6px);
    background-size: 24px 24px;
}
.cta-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center;
    padding: 74px 60px;
}
.cta-copy h2 {
    font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.08; margin: 0 0 14px; text-wrap: balance;
}
.cta-copy > p { color: var(--muted-2); font-size: 16px; max-width: 480px; margin-bottom: 30px; }
.cta-points { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; }
.cta-points li { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13.5px; font-weight: 500; }
.cta-points svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .85); flex-shrink: 0; }

.cta-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line); border-radius: 22px;
    padding: 24px; display: flex; flex-direction: column; gap: 12px;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.cta-logo {
    width: 320px; height: auto; margin: 0 auto 48px; display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
@media (max-width: 720px) {
    .cta-logo { width: 190px; margin-bottom: 34px; }
}
.cta-card .btn { width: 100%; }
/* Iconos alineados en columna: posición fija a la izquierda, texto centrado */
.cta-card .btn .btn-ico { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); }
.cta-qr {
    display: flex; align-items: center; gap: 14px;
    margin-top: 8px; padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, .16);
}
.cta-qr img { width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line); }
.cta-qr span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

@media (max-width: 860px) {
    .cta-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 26px; text-align: center; }
    .cta-copy > p { margin-inline: auto; }
    .cta-points { justify-content: center; }
    .cta-qr { justify-content: center; text-align: left; }
}

/* ---------------- Catálogo (productos) ---------------- */
.page-hero { padding: 84px 0 8px; text-align: center; }
.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em;
    line-height: 1.04; margin: 14px 0 16px; text-wrap: balance;
}
.page-hero p { color: var(--muted); font-size: 16.5px; max-width: 560px; margin: 0 auto; }

.filters {
    position: relative; display: flex; gap: 2px; width: fit-content; max-width: calc(100vw - 48px);
    margin: 42px auto 54px; padding: 5px; background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line); border-radius: 999px;
    overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
    position: relative; z-index: 1; border: none; background: transparent;
    padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
    color: var(--muted-2); cursor: pointer; white-space: nowrap; font-family: inherit;
    transition: color .3s;
}
.filter-btn.active { color: #000; }
.filter-pill {
    position: absolute; top: 5px; left: 0; height: calc(100% - 10px); z-index: 0;
    background: #fff; border-radius: 999px;
    transition: transform .38s var(--ease), width .38s var(--ease);
}

/* ---------------- Tarjetas de producto ---------------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 26px; }
.card-product {
    position: relative; background: var(--panel); border: 1px solid var(--line);
    border-radius: 22px; overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s var(--ease), opacity .28s ease;
    animation: cardIn .65s var(--ease) backwards;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
.card-product:hover {
    transform: translateY(-8px); border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.card-product.hide { opacity: 0; transform: scale(.92); pointer-events: none; }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-product:hover .card-media img { transform: scale(1.07); }
.card-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; font-size: 10.5px; font-weight: 700;
    letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.card-badge.new { background: #fff; border-color: transparent; color: #0a0a0c; }
/* Badge de urgencia (última unidad): rojo con pulso animado */
.card-badge-hot {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    animation: badgePulse 1.6s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.card-body { padding: 22px; }
.card-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card-tag { color: var(--muted); font-size: 13px; margin: 4px 0 13px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.spec { font-size: 11.5px; font-weight: 600; color: #d4d4d8; background: rgba(255, 255, 255, .08); padding: 4px 10px; border-radius: 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------------- Página de detalle de producto ---------------- */
.product-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
    padding: 84px 24px 40px;
}
.product-media { position: relative; }
.product-media img {
    width: 100%; border-radius: 26px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
}
.product-info h1 {
    font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.04em;
    line-height: 1.05; margin: 14px 0 12px;
}
.product-info .sub { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.product-info .specs { margin-bottom: 26px; }
.price-detail { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.price-detail small { color: var(--muted); font-size: 12px; font-weight: 500; }
.price-detail .amount { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.product-desc { color: var(--muted-2); font-size: 15px; line-height: 1.7; margin-bottom: 30px; max-width: 460px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
    .product-detail { grid-template-columns: 1fr; padding: 56px 24px 30px; }
    .product-actions .btn { width: 100%; }
}

/* ---------------- Componentes del producto ---------------- */
.components { padding: 40px 24px 30px; }
.components-head { text-align: center; margin-bottom: 36px; }
.components-head h2 {
    font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.05; margin: 14px 0 12px;
}
.components-head .sub { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto; }
.components-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.component-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
    padding: 26px 22px; text-align: center;
    transition: transform .35s var(--ease), border-color .3s;
}
.component-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .22);
}
/* Entrada escalonada de las tarjetas de componentes (reveal una por una) */
.components-grid .component-card:nth-child(2) { transition-delay: .08s; }
.components-grid .component-card:nth-child(3) { transition-delay: .16s; }
.components-grid .component-card:nth-child(4) { transition-delay: .24s; }
.components-grid .component-card:hover { transition-delay: 0s; }
.component-icon {
    width: 46px; height: 46px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .9);
}
.component-icon svg { width: 22px; height: 22px; }
.component-label {
    display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.component-value {
    display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em;
    color: var(--text); margin-bottom: 6px;
}
.component-desc {
    display: block; font-size: 13px; color: var(--muted);
}

@media (max-width: 860px) {
    .components-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Galería del producto ---------------- */
.product-gallery { padding: 40px 24px 60px; }
.gallery-head { text-align: center; margin-bottom: 30px; }
.gallery-head h2 {
    font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.05; margin: 14px 0 0;
}
.gallery-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    max-width: 920px; margin: 0 auto;
}
.gallery-item {
    border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
    background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    aspect-ratio: 4 / 3;
    transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 720px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------------- Reseñas / Testimonios ---------------- */
.testimonials { padding: 40px 24px 60px; overflow: hidden; }
.testimonials-head { text-align: center; margin-bottom: 30px; }
.testimonials-head h2 {
    font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.05; margin: 14px 0 12px;
}
.testimonials-head .sub { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto; }

.testimonials-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.testimonials-track {
    display: flex; gap: 20px; width: max-content;
    animation: testimonialScroll 40s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }

@keyframes testimonialScroll {
    to { transform: translateX(-50%); }
}

.testimonial-card {
    flex: 0 0 320px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
    padding: 24px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.testimonial-rating {
    display: flex; align-items: center; gap: 10px;
}
.testimonial-stars {
    display: flex; align-items: center; gap: 2px;
}
.testimonial-score {
    color: var(--text); font-size: 14px; font-weight: 700;
}
.testimonial-text {
    color: var(--muted-2); font-size: 14.5px; line-height: 1.65;
    flex: 1;
}
.testimonial-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    flex-wrap: nowrap;
}
.testimonial-author {
    color: var(--text); font-size: 13px; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.trustpilot-badge {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--muted); font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap; flex-shrink: 0;
}
.trustpilot-badge svg, .trustpilot-badge img { flex-shrink: 0; }
.trustpilot-badge strong { color: #fff; }

@media (max-width: 720px) {
    .testimonial-card { flex: 0 0 280px; padding: 20px; }
    .testimonials-track { animation-duration: 32s; }
    /* Footer de la reseña en una sola línea: nombre + badge sin cortes */
    .testimonial-author { font-size: 12px; }
    .trustpilot-badge { font-size: 9.5px; letter-spacing: .04em; gap: 4px; }
    .trustpilot-badge img { width: 13px; height: 13px; }
}

/* ---------------- Reveal al hacer scroll ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(.94) translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in, .reveal-scale.in { opacity: 1; transform: none; }

/* ---------------- Footer ---------------- */
footer {
    position: relative;
    margin-top: 110px; border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start;
    justify-content: space-between; padding: 46px 0 22px;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    padding: 18px 0 30px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 13px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

.map-link { color: inherit; text-decoration: none; }
.map-link:hover { color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
    .chapter { padding: 90px 0 20px; }
    /* Aire lateral en móvil: mapa y tarjetas no pegados a los bordes */
    .operate { padding-left: 30px; padding-right: 30px; }
    .values { padding: 80px 30px; }
    /* Página de producto: nada pegado a los lados en teléfonos */
    .product-detail, .components, .product-gallery, .testimonials { padding-left: 30px; padding-right: 30px; }
    /* Mapa más alto en teléfonos: la flecha queda visible bajo la tarjeta */
    .operate-map { aspect-ratio: 4 / 5; }
    .card-foot { flex-direction: column; align-items: flex-start; }
    .card-foot .btn { width: 100%; }
    .hero-content { padding: 90px 20px 80px; }

    /* Hero: en móvil la imagen apaisada se recorta mucho con object-fit:cover,
       así que reducimos la altura, centramos el punto de interés y aclaramos
       el degradado superior para que la laptop sea visible. */
    .hero { min-height: calc(92svh - 70px); }
    .hero-media { inset: 0; height: 100%; }
    .hero-media img { object-position: 50% 45%; }
    .hero::after {
        background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 18%, rgba(0,0,0,.22) 38%, rgba(0,0,0,.25) 72%, rgba(0,0,0,.85) 100%);
    }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal, .reveal-scale { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
}

/* ---------------- Selector de condición (página de producto) ---------------- */
.condition-picker { margin: 26px 0 24px; }
.condition-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.condition-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.condition-option {
    display: grid; gap: 3px; padding: 14px 8px; cursor: pointer; text-align: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    color: var(--text); font-family: inherit;
    transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.condition-option strong { font-size: 14px; font-weight: 700; }
.condition-option span { color: var(--muted); font-size: 13px; font-weight: 600; }
.condition-option:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .25); }
.condition-option.active { border-color: #d4af37; background: rgba(212, 175, 55, .08); }
.condition-option.active span { color: #d4af37; }

/* ---------------- Carrito: enlace en el nav ---------------- */
/* Animación "agregar al carrito": bolsa que aparece dentro del botón */
.atc-bag { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: #d4af37; opacity: 0; }
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.nav-cart svg { width: 19px; height: 19px; }
.nav-cart-label { display: none; }
.nav-cart-count {
    position: absolute; top: -6px; right: -4px; min-width: 17px; height: 17px;
    border-radius: 999px; background: #d4af37; color: #000;
    font-size: 10.5px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
    transition: transform .25s var(--ease);
}
.nav-cart-count.hidden { display: none; }
.nav-cart-count.bump { transform: scale(1.35); }
@media (max-width: 720px) {
    .nav-cart { gap: 10px; }
    .nav-cart-label { display: inline; }
    .nav-cart-count { position: static; }
}

/* ---------------- Carrito: página ---------------- */
.cart-section { padding: 84px 24px 60px; }
.cart-head h1 {
    font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em;
    line-height: 1.04; margin: 14px 0 42px;
}
.cart-empty { text-align: center; padding: 60px 0 30px; }
.cart-empty.hidden, .cart-grid.hidden { display: none; }
/* Entrada fluida de la página del carrito (solo primera carga) */
@keyframes cartIn {
    from { opacity: 0; transform: translateY(20px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cart-empty.cart-enter { animation: cartIn .6s var(--ease) .08s both; }
.cart-grid.cart-enter .cart-summary { animation: cartIn .6s var(--ease) .2s both; }
.cart-item.cart-enter { animation: cartIn .55s var(--ease) both; }
.cart-empty-icon {
    width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--muted);
}
.cart-empty-icon svg { width: 32px; height: 32px; }
.cart-empty h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 26px; }

.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
    display: flex; align-items: center; gap: 18px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
    padding: 16px 18px;
}
.cart-item-media {
    width: 84px; height: 84px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line); background: #111;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.cart-item-info p { color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.cart-item-price { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.cart-item-cond {
    display: block; width: fit-content; margin-bottom: 9px; padding: 3px 9px;
    border-radius: 999px; border: 1px solid rgba(212, 175, 55, .4);
    color: #d4af37; font-size: 11px; font-weight: 700;
}
.cart-item-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.qty {
    display: flex; align-items: center; gap: 2px;
    border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.qty button {
    width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .07); color: var(--text); font-size: 16px; line-height: 1;
    transition: background .2s;
}
.qty button:hover { background: rgba(255, 255, 255, .16); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item-total { font-size: 16px; font-weight: 800; min-width: 62px; text-align: right; }
.cart-item-remove {
    width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer;
    background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center;
    transition: color .2s, border-color .2s;
}
.cart-item-remove:hover { color: #ff6b6b; border-color: rgba(255, 107, 107, .4); }
.cart-item-remove svg { width: 16px; height: 16px; }

.cart-summary {
    position: sticky; top: 96px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
    padding: 26px 24px;
}
.cart-summary h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; }
.cart-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; color: var(--muted); font-size: 14.5px;
}
.cart-row strong { color: var(--text); font-weight: 700; }
.cart-total {
    border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px;
    font-size: 16px;
}
.cart-total strong { font-size: 22px; font-weight: 800; }
.cart-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 12px 0 20px; }
.cart-summary .btn { width: 100%; margin-top: 10px; }

@media (max-width: 860px) {
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 720px) {
    .cart-section { padding-left: 30px; padding-right: 30px; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-actions { width: 100%; justify-content: space-between; }
}
/* v2.1 */

/* ---------------- Chat flotante 24/7 ---------------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.chat-fab {
    position: relative; width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
    background: #fff; border: 1px solid rgba(255, 255, 255, .9); color: #0a0a0c;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, .65); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab-247 { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; }
.chat-fab-dot {
    position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff;
    animation: chatDotPulse 1.8s ease-out infinite;
}
@keyframes chatDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.chat-panel {
    position: absolute; right: 0; bottom: 72px; width: 320px; max-width: calc(100vw - 44px);
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
    transform-origin: bottom right;
    animation: chatPanelIn .34s cubic-bezier(.22, 1.2, .36, 1);
}
@keyframes chatPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(.92); }
    to { opacity: 1; transform: none; }
}
.chat-panel.closing {
    animation: chatPanelOut .22s cubic-bezier(.5, 0, .75, 0) forwards;
}
@keyframes chatPanelOut {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(12px) scale(.94); }
}
.chat-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding: 16px 16px 12px; border-bottom: 1px solid var(--line);
}
.chat-panel-head strong { display: block; font-size: 15px; }
.chat-panel-head span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 3px; }
.chat-online { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.chat-close {
    background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1;
    cursor: pointer; padding: 2px 6px; border-radius: 8px;
}
.chat-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.chat-panel-body { padding: 14px 16px; }
.chat-msg {
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px; padding: 10px 13px;
    font-size: 13.5px; color: var(--text); line-height: 1.5;
}
.chat-panel-actions { display: grid; gap: 8px; padding: 0 16px 16px; }
.chat-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
    text-decoration: none; transition: transform .2s var(--ease), filter .2s;
}
.chat-btn .btn-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.chat-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.chat-btn-wa { background: #22c55e; color: #04120a; }
.chat-btn-ghost { background: rgba(255, 255, 255, .07); color: var(--text); border: 1px solid var(--line); }
.chat-btn-blue { background: #fff; color: #0a0a0c; }
@media (max-width: 720px) {
    .chat-widget { right: 16px; bottom: 16px; }
    .chat-fab { width: 54px; height: 54px; }
    .chat-panel { bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) {
    .chat-fab-dot, .chat-panel { animation: none; }
}

/* ---------------- Mini-carrito lateral al agregar (solo PC) ---------------- */
.cart-drawer-overlay {
    position: fixed; inset: 0; z-index: 129; background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .45s ease;
    will-change: opacity;
}
.cart-drawer-overlay.closing { transition: opacity .3s ease; }
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed; top: 0; right: 0; z-index: 130; height: 100vh; height: 100dvh;
    width: 400px; max-width: 92vw; padding: 28px 24px;
    background: linear-gradient(180deg, #14141a, var(--panel) 32%);
    border-left: 1px solid rgba(212, 175, 55, .25);
    border-radius: 26px 0 0 26px;
    display: flex; flex-direction: column; gap: 18px;
    transform: translateX(105%); transition: transform .6s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
    box-shadow: -40px 0 100px rgba(0, 0, 0, .6);
}
.cart-drawer::before {
    content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
.cart-drawer.open { transform: none; }
.cart-drawer.closing { transition: transform .38s cubic-bezier(.55, 0, .55, .95); }
/* Entrada escalonada del contenido */
.cart-drawer.open > * { animation: cdItemIn .5s var(--ease) backwards; }
.cart-drawer.open > *:nth-child(2) { animation-delay: .08s; }
.cart-drawer.open > *:nth-child(3) { animation-delay: .16s; }
.cart-drawer.open > *:nth-child(4) { animation-delay: .24s; }
.cart-drawer.open > *:nth-child(5) { animation-delay: .32s; }
@keyframes cdItemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cd-title { display: flex; align-items: center; gap: 12px; }
.cd-check {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212, 175, 55, .14); border: 1px solid rgba(212, 175, 55, .5); color: #d4af37;
    animation: cdCheckPop .5s cubic-bezier(.34, 1.56, .64, 1) .12s backwards;
}
.cd-check svg { width: 20px; height: 20px; }
@keyframes cdCheckPop { from { transform: scale(0); } to { transform: scale(1); } }
.cd-title-text { display: grid; gap: 2px; }
.cd-title-text strong { font-size: 18px; }
.cd-title-text span { color: var(--muted); font-size: 12.5px; }
.cd-close {
    background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1;
    cursor: pointer; padding: 2px 8px; border-radius: 8px; font-family: inherit;
    transition: color .2s, background .2s;
}
.cd-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cd-item {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
    transition: border-color .25s;
}
.cd-item:hover { border-color: rgba(212, 175, 55, .35); }
.cd-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.cd-item-info { flex: 1; display: grid; gap: 3px; min-width: 0; }
.cd-item-info strong { font-size: 14.5px; }
.cd-item-info span { color: var(--muted); font-size: 12px; }
.cd-cond { color: #d4af37 !important; }
.cd-price { font-size: 16px; }
.cd-subtotal {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px 0; border-top: 1px dashed rgba(255, 255, 255, .16); font-size: 15px;
}
.cd-subtotal span { color: var(--muted); }
.cd-subtotal strong { font-size: 19px; }
.cd-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.cd-actions .btn { position: relative; }
.cd-actions .btn .btn-ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; }
.cd-continue {
    background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px; font-family: inherit; margin: 0 auto;
    transition: color .2s;
}
.cd-continue:hover { color: #fff; }
@media (max-width: 860px) {
    .cart-drawer, .cart-drawer-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cart-drawer, .cart-drawer-overlay { transition: none; }
    .cart-drawer.open > *, .cd-check { animation: none; }
}

/* Animación contenida del botón Agregar al carrito (tarjetas) */
.add-cart-card .atc-spin {
    width: 16px; height: 16px; border-radius: 50%; flex: none;
    border: 2px solid rgba(255, 255, 255, .25); border-top-color: #d4af37;
    animation: atcSpin .6s linear infinite;
}
@keyframes atcSpin { to { transform: rotate(360deg); } }
.add-cart-card .atc-done {
    width: 17px; height: 17px; flex: none; color: #d4af37;
    animation: cdCheckPop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-reduced-motion: reduce) {
    .add-cart-card .atc-spin, .add-cart-card .atc-done { animation: none; }
}
