/* ==========================================================================
   TOKAPEDIDOS - HOJA DE ESTILOS PRINCIPAL
   Design System Oficial: Clean Light Theme con Red Glow & Dark Blocks (#0B0B0B)
   REGLA ESTRICTA: Cero Cursivas / font-style: normal !important
   ========================================================================== */

:root {
    /* Paleta Principal TokaPedidos */
    --primary: #E30417;
    --primary-hover: #C20314;
    --primary-glow: #FF1E32;
    --primary-subtle: #FEF2F2;
    --primary-border: rgba(227, 4, 23, 0.22);

    /* Fondos y Superficies */
    --bg-page: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #F1F5F9;
    --bg-dark: #0B0B0B;
    /* Negro profundo oficial idéntico al register/login */

    /* Bordes y Líneas */
    --border-light: #E2E8F0;
    --border-focus: #E30417;

    /* Tipografía y Textos */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-title: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Acentos */
    --accent-green: #059669;
    --accent-mp: #009EE3;

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 18px 40px -10px rgba(0, 0, 0, 0.10);
    --shadow-red: 0 8px 24px rgba(227, 4, 23, 0.28);
    --shadow-glow: 0 4px 22px rgba(227, 4, 23, 0.45);

    /* Transiciones */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- SISTEMA DE ENTRADA CINEMATOGRÁFICA (TEXT REVEAL & STAGGER) --- */
.toka-reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
    transition: opacity 0.85s var(--ease-cinematic),
                transform 0.85s var(--ease-cinematic),
                filter 0.85s var(--ease-cinematic);
    will-change: transform, opacity, filter;
}

.toka-reveal.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
}

.toka-delay-1 { transition-delay: 0.08s !important; }
.toka-delay-2 { transition-delay: 0.16s !important; }
.toka-delay-3 { transition-delay: 0.24s !important; }
.toka-delay-4 { transition-delay: 0.32s !important; }
.toka-delay-5 { transition-delay: 0.40s !important; }
.toka-delay-6 { transition-delay: 0.48s !important; }

@media (prefers-reduced-motion: reduce) {
    .toka-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* RESET GLOBAL & REGLA CERO ITALIC */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main) !important;
    font-style: normal !important;
    /* CRÍTICO: Cero Cursivas */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-main);
    font-style: normal !important;
}

/* --- BARRA FINA ROJA DE PROGRESO DE LECTURA (0% A 100%) --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #E30417;
    width: 0%;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(227, 4, 23, 0.8);
    transition: width 0.08s ease-out;
}

/* --- PRELOADER ANIMADO OFICIAL (ALINEACIÓN EXACTA Y CONCÉNTRICA) --- */
#preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

/* Caja contenedora con dimensiones fijas y origen concéntrico exacto */
.preloader-spinner-box {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculo interior continuo con borde superior rojo */
.loader-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    margin-top: -43px;
    margin-left: -43px;
    border: 3px solid rgba(227, 4, 23, 0.12);
    border-top-color: #E30417;
    border-radius: 50%;
    box-sizing: border-box;
    animation: preloaderSpin 1s infinite linear;
    transform-origin: center center;
}

/* Círculo exterior discontinuo en rotación inversa */
.loader-particles-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    margin-top: -54px;
    margin-left: -54px;
    border: 2px dashed rgba(227, 4, 23, 0.25);
    border-radius: 50%;
    box-sizing: border-box;
    animation: preloaderSpinReverse 3.2s infinite linear;
    transform-origin: center center;
}

/* Logo Toka centrado de forma absoluta en el punto medio exacto */
.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    object-fit: contain;
    animation: preloaderPulse 1.6s infinite ease-in-out;
    transform-origin: center center;
}

.preloader-text {
    color: #E30417;
    font-weight: 800;
    letter-spacing: 3.5px;
    font-size: 0.88rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    user-select: none;
}

@keyframes preloaderSpin { 
    to { transform: rotate(360deg); } 
}

@keyframes preloaderSpinReverse { 
    to { transform: rotate(-360deg); } 
}

@keyframes preloaderPulse { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.12); } 
}

/* LAYOUT BASE */
.container-wide {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient-red {
    background: linear-gradient(135deg, #E30417 0%, #B91C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- BANNER DE PROMO SUPERIOR --- */
.top-promo-bar {
    background: linear-gradient(90deg, #99000E 0%, #E30417 50%, #80000C 100%);
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    text-align: center;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 1260px;
    margin: 0 auto;
}

.promo-badge {
    background: rgba(255, 255, 255, 0.22);
    padding: 0.18rem 0.68rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.promo-badge svg {
    width: 14px;
    height: 14px;
}

.badge-text-desktop {
    display: inline;
}

.badge-text-mobile {
    display: none;
}

.promo-ticker-wrapper {
    display: inline-flex;
    align-items: center;
}

.promo-ticker-content {
    font-size: 0.85rem;
}

.promo-extra-text {
    opacity: 0.9;
}

.promo-link-desktop {
    color: #FFFFFF;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: underline;
    white-space: nowrap;
}

.promo-link-desktop svg {
    width: 14px;
    height: 14px;
}

.promo-link-mobile {
    display: none;
}

/* --- NAVBAR CÁPSULA FLOTANTE (ESTADO INICIAL BAJO PROMO BAR & FIXED AL SCROLLEAR) --- */
.floating-nav-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
    margin-top: 0.85rem;
    margin-bottom: -4rem;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Fijado permanente al hacer scroll */
.floating-nav-container.is-fixed {
    position: fixed;
    top: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    animation: slideDownNav 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownNav {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.capsule-navbar-light {
    pointer-events: auto;
    /* Habilita interactividad dentro del navbar */
    width: 100%;
    max-width: 1260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
}

.capsule-navbar-light.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(227, 4, 23, 0.25);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.nav-brand-light {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-brand-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.nav-brand-logo-img.logo-desktop {
    display: block;
}

.nav-brand-logo-img.logo-mobile {
    display: none;
    height: 32px;
}

.nav-menu-desktop-light {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.nav-item-light {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.nav-item-light:hover,
.nav-item-light.active {
    color: var(--primary);
    background: rgba(227, 4, 23, 0.05);
}

.nav-actions-light {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-pill-glass-light {
    background: rgba(15, 23, 42, 0.04);
    color: #0F172A;
    border-radius: var(--radius-pill);
    padding: 0.42rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.btn-pill-glass-light:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary);
}

.btn-pill-glass-light svg {
    width: 15px;
    height: 15px;
}

.btn-pill-red-nav {
    background: linear-gradient(135deg, #E30417 0%, #C20314 100%);
    color: #FFFFFF;
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(227, 4, 23, 0.32);
    transition: var(--transition);
}

.btn-pill-red-nav:hover {
    background: linear-gradient(135deg, #FF1E32 0%, #E30417 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227, 4, 23, 0.45);
}

.btn-pill-red-nav svg {
    width: 15px;
    height: 15px;
}

.mobile-toggle-btn-light {
    display: none;
    color: #0F172A;
    font-size: 1.4rem;
    padding: 0.3rem;
}

.mobile-toggle-btn-light svg {
    width: 24px;
    height: 24px;
}

/* SISTEMA DE BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-toka-primary {
    background: linear-gradient(135deg, #E30417 0%, #C20314 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-red);
}

.btn-toka-primary:hover {
    background: linear-gradient(135deg, #FF1E32 0%, #E30417 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(227, 4, 23, 0.4);
}

.btn-outline-slate {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    color: var(--text-title);
    box-shadow: var(--shadow-sm);
}

.btn-outline-slate:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-hero-wide {
    padding: 0.95rem 1.8rem;
    font-size: 0.98rem;
    font-weight: 800;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

.glow-pulse {
    animation: glowPulseAnimation 2.6s infinite ease-in-out;
}

@keyframes glowPulseAnimation {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(227, 4, 23, 0.35);
    }

    50% {
        box-shadow: 0 4px 30px rgba(227, 4, 23, 0.65);
    }
}

/* MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 9999;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.drawer-close {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
}

.drawer-link:hover {
    background: var(--bg-card-subtle);
    color: var(--primary);
}

.drawer-link svg {
    width: 18px;
    height: 18px;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --- HERO SECTION CON VIDEO EN FONDO NEGRO OFICIAL #0B0B0B --- */
.hero-section {
    position: relative;
    padding: 7rem 0 5rem;
    background: #0B0B0B;
    background-image: radial-gradient(circle at 65% 40%, rgba(227, 4, 23, 0.16) 0%, #0B0B0B 75%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    color: #FFFFFF;
}

/* Video WebM de fondo con baja opacidad sobre el fondo negro */
.hero-video-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    filter: saturate(1.2);
}

.hero-mesh-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 75% 35%, rgba(227, 4, 23, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(255, 77, 94, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(227, 4, 23, 0.2);
    border: 1px solid rgba(227, 4, 23, 0.4);
    color: #FF4D5E;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-badge-tag svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 3.1rem;
    line-height: 1.15;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.08rem;
    color: #CBD5E1;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.hero-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-bullet-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #E2E8F0;
}

.hero-bullet-item strong {
    color: #FFFFFF;
}

.hero-bullet-item svg {
    color: var(--accent-green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Botones en una sola línea */
.hero-cta-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* --- SIMULADOR POS INTERACTIVO EN HERO --- */
.hero-visual-wrapper {
    position: relative;
}

.simulator-frame {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.browser-bar {
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-light);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #EF4444;
}

.dot-yellow {
    background: #F59E0B;
}

.dot-green {
    background: #10B981;
}

.browser-address {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-grow: 1;
    max-width: 320px;
}

.browser-address svg {
    width: 12px;
    height: 12px;
}

.pos-app-layout {
    display: grid;
    grid-template-columns: 56px 1fr 240px;
    height: 440px;
    background: #F8F9FA;
}

/* Mini Sidebar */
.pos-sidebar {
    background: #FFFFFF;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1.25rem;
}

.pos-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pos-nav-btn {
    color: var(--text-muted);
    padding: 8px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.pos-nav-btn.active,
.pos-nav-btn:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.pos-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* POS Main Area */
.pos-catalog-area {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pos-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pos-store-pill {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pos-badge-status {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.pos-category-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    overflow-x: auto;
}

.pos-cat-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.pos-cat-pill.active,
.pos-cat-pill:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.pos-prod-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.7rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pos-prod-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pos-prod-emoji {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.pos-prod-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.2;
}

.pos-prod-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.3rem;
}

/* POS Cart Side */
.pos-cart-panel {
    background: #FFFFFF;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.85rem;
}

.pos-cart-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.pos-cart-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-title);
    display: flex;
    justify-content: space-between;
}

.pos-mesa-tag {
    color: var(--accent-green);
    font-size: 0.75rem;
}

.pos-cart-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 240px;
}

.pos-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--border-light);
}

.pos-cart-item-name {
    font-weight: 600;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pos-cart-item-qty {
    background: var(--bg-card-subtle);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.pos-cart-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 0.6rem;
}

.pos-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.pos-cart-total-val {
    color: var(--primary);
    font-size: 1.05rem;
}

.btn-pos-pay {
    width: 100%;
    background: #009EE3;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.btn-pos-pay:hover {
    background: #0081BA;
    transform: translateY(-1px);
}

/* Floating Badges Alrededor de Hero (Estilo Dark Glassmorphism) */
.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 10;
    animation: floatCard 4s ease-in-out infinite;
}

.float-text-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.float-text-sub {
    font-size: 0.7rem;
    color: #94A3B8;
}

.float-top-right {
    top: -15px;
    right: -15px;
}

.float-bottom-left {
    bottom: -18px;
    left: -15px;
    animation-delay: 2s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.float-icon.green {
    background: var(--accent-green);
}

.float-icon.red {
    background: var(--primary);
}

.float-icon svg {
    width: 18px;
    height: 18px;
}

.float-text-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.2;
}

.float-text-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- SECCIÓN MARQUEE DE INTEGRACIONES --- */
.integrations-bar-section {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 2.5rem 0;
    overflow: hidden;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.section-tag svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 1.5rem;
}

.marquee-blur-mask::before,
.marquee-blur-mask::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-blur-mask::before {
    left: 0;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-blur-mask::after {
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 24s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.2rem;
    flex-shrink: 0;
}

.marquee-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.marquee-card-icon svg {
    width: 18px;
    height: 18px;
}

.marquee-card-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-title);
}

.marquee-card-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- SELECTOR DE RUBROS GASTRONÓMICOS (ADAPTABILIDAD DINÁMICA TOTAL) --- */
.rubros-section {
    position: relative;
    z-index: 25;
    margin-top: -180px;
    padding-top: calc(5rem + 140px);
    padding-bottom: 5rem;
    background: linear-gradient(180deg, 
        rgba(248, 249, 250, 0) 0%, 
        rgba(248, 249, 250, 0.25) 20%, 
        rgba(248, 249, 250, 0.65) 45%, 
        rgba(248, 249, 250, 0.92) 70%, 
        var(--bg-page) 88%, 
        var(--bg-page) 100%
    );
    border-bottom: 1px solid var(--border-light);
}

@media (max-width: 991px) {
    .rubros-section {
        margin-top: -120px;
        padding-top: calc(3.5rem + 100px);
        padding-bottom: 3.5rem;
    }
}

.rubros-tabs-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0 3rem;
}

.rubros-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rubro-tab-btn {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rubro-tab-btn:hover,
.rubro-tab-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(227, 4, 23, 0.28);
}

.rubro-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.rubro-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.rubro-feature-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.rubro-feature-item svg {
    color: var(--accent-green);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rubro-visual-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

/* --- MÓDULOS DEL SISTEMA: SCROLL-WORLD CON REENSAMBLADO 3x2 EN GRILLA --- */
.modules-scroll-section {
    position: relative;
    height: 300vh;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
}

.modules-sticky-stage {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem 0;
    box-sizing: border-box;
}

.modules-heading-box {
    margin-bottom: 2rem;
    transition: opacity 0.4s var(--ease-cinematic), transform 0.4s var(--ease-cinematic);
}

.modules-flow-viewport {
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Tira horizontal continua en Scroll-World */
.modules-cards-track {
    display: flex;
    gap: 1.8rem;
    width: max-content;
    will-change: transform;
    transition: transform 0.08s linear;
    padding: 1rem 0;
}

/* Tarjeta individual de módulo */
.module-card {
    position: relative;
    width: 380px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.45s var(--ease-cinematic);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    overflow: hidden;
    cursor: default;
}

/* Tarjeta activa en degradado rojo de marca */
.module-card.is-active-module {
    background: linear-gradient(135deg, #FF1E32 0%, #E30417 55%, #A00010 100%) !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    box-shadow: 0 20px 45px rgba(227, 4, 23, 0.35) !important;
    transform: scale(1.03);
}

.module-card.is-active-module .module-title {
    color: #FFFFFF !important;
}

.module-card.is-active-module .module-desc {
    color: rgba(255, 255, 255, 0.92) !important;
}

.module-card.is-active-module .module-desc code {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #FFFFFF !important;
}

.module-card.is-active-module .module-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
}

.module-card.is-active-module .module-icon {
    background: #FFFFFF !important;
    color: #E30417 !important;
}

.module-card.is-active-module .module-checklist {
    color: rgba(255, 255, 255, 0.95) !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

.module-card.is-active-module .module-checklist li svg {
    color: #FFFFFF !important;
}

.module-card.is-active-module .module-circle-arrow {
    background: #FFFFFF !important;
    color: #111111 !important;
    border-color: transparent !important;
}

/* Cabecera de la tarjeta con ícono y botón interactivo */
.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.module-icon svg {
    width: 24px;
    height: 24px;
}

/* Botón circular interactivo con flecha dual */
.module-circle-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    color: var(--text-title);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-cinematic);
}

.module-circle-arrow svg {
    width: 17px;
    height: 17px;
    transition: transform 0.35s var(--ease-cinematic);
}

.module-circle-arrow .arrow-main {
    position: relative;
}

.module-circle-arrow .arrow-clone {
    position: absolute;
    transform: translate(-160%, 160%);
}

.module-card:hover .module-circle-arrow .arrow-main {
    transform: translate(160%, -160%);
}

.module-card:hover .module-circle-arrow .arrow-clone {
    transform: translate(0, 0);
}

.module-card-body {
    flex-grow: 1;
}

.module-badge {
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.6rem;
    transition: var(--transition-fast);
}

.module-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.module-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.module-desc code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.module-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-body);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
    transition: border-color 0.3s ease;
}

.module-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-checklist li svg {
    color: var(--accent-green);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* --- TABLA DE PRECIOS CLAROS Y SIN LETRA CHICA --- */
.pricing-section {
    padding: 5.5rem 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
}

.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3.5rem;
}

.pricing-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pricing-toggle-label.active {
    color: var(--text-title);
}

.toggle-switch {
    width: 58px;
    height: 32px;
    background: #E2E8F0;
    border-radius: 30px;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-handle {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active .toggle-handle {
    transform: translateX(26px);
}

.discount-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 15px 40px -10px rgba(227, 4, 23, 0.18);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(227, 4, 23, 0.35);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 0.4rem;
}

.plan-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 40px;
}

.plan-price-wrap {
    margin: 1.5rem 0;
    overflow: hidden;
}

.plan-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.plan-currency {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-title);
}

/* Efecto Marquesina / Transición Suave en Números */
.plan-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -1px;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.plan-amount.animating-out {
    transform: translateY(-12px);
    opacity: 0;
}

.plan-amount.animating-in {
    transform: translateY(12px);
    opacity: 0;
}

.plan-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.plan-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-body);
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features-list svg.check {
    color: var(--accent-green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.plan-features-list svg.cross {
    color: #CBD5E1;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.plan-features-list li.disabled {
    color: #94A3B8;
}

/* --- TARJETAS INTERACTIVAS DE PRESENCIA NACIONAL --- */
.map-section {
    padding: 5.5rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
}

.presence-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.presence-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.presence-card:hover,
.presence-card.active {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(227, 4, 23, 0.12);
    background: #FFFAFA;
}

.presence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.presence-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.presence-icon svg {
    width: 22px;
    height: 22px;
}

.presence-badge {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.presence-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 0.4rem;
}

.presence-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 5.5rem 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
}

.faq-accordion-wrapper {
    max-width: 820px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-header {
    padding: 1.35rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-title);
}

.faq-header svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-card.open .faq-header svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-body {
    padding: 0 1.6rem 1.35rem;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    display: none;
}

.faq-card.open .faq-body {
    display: block;
}

/* --- GRAN BANNER FINAL CTA (COLOR NEGRO PROFUNDO #0B0B0B OFICIAL) --- */
.final-cta-section {
    padding: 6.5rem 0;
    background: #0B0B0B;
    background-image: radial-gradient(circle at 50% 50%, rgba(227, 4, 23, 0.16) 0%, #0B0B0B 75%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-video-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.final-cta-card {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.final-cta-desc {
    font-size: 1.15rem;
    color: #94A3B8;
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

.final-cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- FOOTER INSTITUCIONAL --- */
.site-footer {
    background: #FFFFFF;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    height: 32px;
    margin-bottom: 1.25rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 1.25rem;
    letter-spacing: -0.2px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.85rem;
}

.contact-item svg {
    color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-val {
    color: var(--text-title);
    font-weight: 700;
}

.contact-val:hover {
    color: var(--primary);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

/* --- MODAL TICKET COMPACTO (SIN SCROLL INTERNO) --- */
.ticket-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.ticket-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ticket-modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 380px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    max-height: 92vh;
    overflow: hidden;
    /* Cero scroll innecesario */
    display: flex;
    flex-direction: column;
}

.ticket-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1;
    z-index: 10;
}

.thermal-ticket {
    background: #FCFCFD;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace !important;
    color: #1E293B;
    font-size: 0.78rem;
    overflow: hidden;
}

.thermal-ticket * {
    font-family: 'Courier New', Courier, monospace !important;
}

.ticket-header {
    text-align: center;
}

.ticket-logo-text {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.ticket-store-name {
    font-weight: 700;
    font-size: 0.8rem;
}

.ticket-subtext {
    font-size: 0.7rem;
    color: #64748B;
}

.ticket-divider {
    color: #94A3B8;
    text-align: center;
    margin: 4px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticket-badge-approved {
    background: #DCFCE7;
    color: #15803D;
    font-weight: 800;
    padding: 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem;
}

.ticket-meta {
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-row-head {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.ticket-item-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.ticket-totals {
    display: flex;
    flex-direction: column;
}

.ticket-total-row.grand-total {
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}

.ticket-fiscal-footer {
    text-align: center;
    font-size: 0.7rem;
    margin-top: 4px;
}

/* Botones en una sola línea */
.ticket-modal-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-ticket-action {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 12px;
}

/* --- MODAL DEMO EN CELULAR FLOTANTE (IFRAME) --- */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.demo-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.demo-modal-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    font-size: 2rem;
    color: #FFFFFF;
    line-height: 1;
    cursor: pointer;
}

.demo-phone-frame {
    width: 350px;
    height: 660px;
    max-height: 85vh;
    background: #000000;
    border-radius: 44px;
    border: 9px solid #1E293B;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #1E293B;
    border-radius: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-notch-camera {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0F172A;
}

.demo-notch-speaker {
    width: 30px;
    height: 4px;
    border-radius: 3px;
    background: #334155;
}

.demo-phone-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #FFFFFF;
    border-radius: 34px;
}

.demo-phone-caption {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-caption-badge {
    background: #10B981;
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* --- POPUP DE COOKIES OFICIAL (IDÉNTICO AL LOGIN) --- */
.cookie-consent-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #E2E8F0;
    padding: 1.4rem;
    max-width: 440px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.cookie-consent-popup.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-popup-content {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.cookie-icon-wrapper {
    color: #475569;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.cookie-text {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}

.cookie-text a {
    font-weight: 700;
    text-decoration: underline;
    color: #0F172A;
}

.cookie-actions-row {
    display: flex;
    gap: 0.75rem;
}

.btn-cookie-action {
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.btn-cookie-accept,
.btn-cookie-reject {
    background: #F1F5F9;
    color: #0F172A;
}

.btn-cookie-accept:hover,
.btn-cookie-reject:hover {
    background: #E2E8F0;
    color: var(--primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .rubro-panel-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .presence-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .modules-scroll-section {
        height: auto !important;
        padding: 4.5rem 0 !important;
    }

    .modules-sticky-stage {
        position: static !important;
        height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .modules-flow-viewport {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0.5rem 0 1.5rem !important;
        scrollbar-width: none;
    }

    .modules-flow-viewport::-webkit-scrollbar {
        display: none;
    }

    .modules-cards-track {
        display: flex !important;
        gap: 1.25rem !important;
        width: max-content !important;
        transform: none !important;
        padding: 0 1.25rem !important;
    }

    .module-card {
        width: 310px !important;
        max-width: 85vw !important;
    }
}

@media (max-width: 768px) {
    /* 1. TOP PROMO BAR MOBILE: Badge fijo 'LANZAMIENTO', marquesina fluida y botón 'Accedé' */
    .top-promo-bar {
        padding: 0.35rem 0.5rem;
        height: 38px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .promo-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.4rem;
        flex-wrap: nowrap;
        position: relative;
    }

    .badge-text-desktop {
        display: none !important;
    }

    .badge-text-mobile {
        display: inline !important;
        font-size: 0.68rem;
        font-weight: 800;
    }

    .promo-badge {
        flex-shrink: 0;
        z-index: 5;
        background: #8A000E;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.18rem 0.5rem;
        box-shadow: 4px 0 10px rgba(138, 0, 14, 0.9);
        gap: 0.25rem;
    }

    .promo-badge svg {
        width: 12px;
        height: 12px;
    }

    .promo-ticker-wrapper {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        mask-image: linear-gradient(90deg, transparent 0%, black 14px, black calc(100% - 14px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 14px, black calc(100% - 14px), transparent 100%);
    }

    .promo-ticker-content {
        display: inline-block;
        white-space: nowrap;
        font-size: 0.74rem;
        padding-left: 100%;
        animation: promoMarqueeAnimation 16s linear infinite;
    }

    @keyframes promoMarqueeAnimation {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }

    .promo-link-desktop {
        display: none !important;
    }

    .promo-link-mobile {
        display: inline-flex !important;
        align-items: center;
        gap: 0.2rem;
        flex-shrink: 0;
        z-index: 5;
        background: rgba(255, 255, 255, 0.22);
        border: 1px solid rgba(255, 255, 255, 0.35);
        padding: 0.2rem 0.55rem;
        border-radius: 20px;
        font-size: 0.72rem;
        font-weight: 800;
        color: #FFFFFF;
        text-decoration: none;
        box-shadow: -4px 0 10px rgba(138, 0, 14, 0.9);
        white-space: nowrap;
    }

    .promo-link-mobile svg {
        width: 11px;
        height: 11px;
    }

    /* 2. NAVBAR MOBILE: Logo icono.svg compacto, botones Accedé y Probá gratis proporcionados */
    .nav-brand-logo-img.logo-desktop {
        display: none !important;
    }

    .nav-brand-logo-img.logo-mobile {
        display: block !important;
        height: 28px;
    }

    .floating-nav-container {
        padding: 0 0.65rem;
    }

    .capsule-navbar-light {
        padding: 0.35rem 0.65rem;
        gap: 0.4rem;
    }

    .nav-menu-desktop-light {
        display: none;
    }

    .nav-actions-light {
        gap: 0.3rem;
    }

    .btn-pill-glass-light {
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }

    .btn-pill-glass-light svg {
        width: 13px;
        height: 13px;
    }

    .btn-pill-red-nav {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }

    .btn-pill-red-nav svg {
        width: 13px;
        height: 13px;
    }

    .mobile-toggle-btn-light {
        display: block;
        padding: 0.2rem;
        font-size: 1.25rem;
    }

    /* 3. HERO MOBILE */
    .hero-section {
        padding: 5.5rem 0 3.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* 4. TU NEGOCIO: TABS CON SCROLL HORIZONTAL Y FADE-IN DEGRADADO */
    .rubros-tabs-wrapper {
        margin: 1.5rem 0 2rem;
        overflow: hidden;
    }

    .rubros-tabs-wrapper::before,
    .rubros-tabs-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 32px;
        z-index: 3;
        pointer-events: none;
    }

    .rubros-tabs-wrapper::before {
        left: 0;
        background: linear-gradient(90deg, var(--bg-page) 15%, rgba(248, 250, 252, 0) 100%);
    }

    .rubros-tabs-wrapper::after {
        right: 0;
        background: linear-gradient(270deg, var(--bg-page) 15%, rgba(248, 250, 252, 0) 100%);
    }

    .rubros-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 0.55rem;
        padding: 0.4rem 1.25rem;
        margin: 0;
        scrollbar-width: none;
    }

    .rubros-tabs::-webkit-scrollbar {
        display: none;
    }

    .rubro-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: center;
        padding: 0.55rem 1.1rem;
        font-size: 0.82rem;
    }

    /* 5. MÓDULOS, PRECIOS Y OTROS COMPONENTES */
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .presence-cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-title {
        font-size: 1.85rem;
    }

    .pos-app-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .pos-sidebar {
        display: none;
    }

    .cookie-consent-popup {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* ==========================================================================
   PÁGINAS LEGALES OFICIALES (TÉRMINOS Y CONDICIONES, POLÍTICA DE PRIVACIDAD)
   ========================================================================== */
.legal-hero-section {
    padding: 13rem 0 3.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.legal-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 1rem 0 0.65rem;
    letter-spacing: -0.02em;
}

.legal-hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
}

.legal-content-section {
    padding: 3.5rem 0 6rem;
    background: var(--bg-page);
}

.legal-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.legal-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.legal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(227, 4, 23, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-card-icon svg {
    width: 22px;
    height: 22px;
}

.legal-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-title);
    margin: 0;
}

.legal-card-body {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
}

.legal-card-body p {
    margin-bottom: 0.85rem;
}

.legal-card-body p:last-child {
    margin-bottom: 0;
}

.legal-card-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.legal-card-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.93rem;
}

.legal-card-body ul li svg {
    color: var(--accent-green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.legal-card-body strong {
    color: var(--text-title);
}

.legal-callout-box {
    background: rgba(227, 4, 23, 0.04);
    border: 1.5px solid rgba(227, 4, 23, 0.2);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.legal-callout-box svg {
    color: var(--primary);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-callout-box p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
}

.legal-contact-box {
    background: linear-gradient(135deg, #0B0B0B 0%, #1e0508 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    color: #FFFFFF;
    text-align: center;
    margin-top: 3.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.legal-contact-box h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.65rem;
}

.legal-contact-box p {
    color: #94A3B8;
    font-size: 0.95rem;
    max-width: 550px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .legal-hero-section {
        padding: 9.5rem 0 2.5rem;
    }
    .legal-hero-title {
        font-size: 2rem;
    }
    .legal-card {
        padding: 1.6rem 1.4rem;
    }
    .legal-contact-box {
        padding: 2.2rem 1.5rem;
    }
}