@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES
   ========================================================================== */
:root {
    /* Paleta de Colores: Gris Oxford y Naranja (TEMA CLARO Y FRESCO) */
    --bg-darker: #f5f7fa; /* Fondo principal ultra claro y fresco */
    --bg-dark: #ffffff;   /* Contenedores y secciones */
    --bg-oxford: #ebedf3; /* Gris Oxford suave para divisiones y bordes */
    --bg-oxford-card: #ffffff; /* Tarjetas blancas */
    --bg-oxford-light: #e1e4ee; /* Gris Oxford interactivo suave */
    
    --color-orange-primary: #ff6b00; /* Naranja corporativo */
    --color-orange-hover: #e05e00;
    --color-orange-light: rgba(255, 107, 0, 0.08);
    --color-orange-glow: rgba(255, 107, 0, 0.15);
    --color-orange-glow-heavy: rgba(255, 107, 0, 0.3);
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.08);
    
    /* Colores de Texto */
    --text-white: #1a1e27; /* Títulos en Gris Oxford muy oscuro */
    --text-light: #3a4454; /* Texto de lectura en Gris Oxford medio */
    --text-muted: #64748b; /* Texto secundario */
    --text-dark: #1a1e27;
    
    /* Bordes y Sombras */
    --border-color: rgba(58, 68, 84, 0.08);
    --border-hover: rgba(255, 107, 0, 0.3);
    --border-active: rgba(255, 107, 0, 0.8);
    --shadow-sm: 0 2px 4px rgba(58, 68, 84, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(58, 68, 84, 0.08), 0 8px 10px -6px rgba(58, 68, 84, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(58, 68, 84, 0.12), 0 10px 15px -8px rgba(58, 68, 84, 0.08);
    --shadow-glow: 0 4px 15px rgba(255, 107, 0, 0.15);
    --shadow-glow-active: 0 8px 25px rgba(255, 107, 0, 0.3);
    
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radio de Bordes */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f4f6f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
    border: 2px solid #f4f6f9;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-orange-primary);
}

/* ==========================================================================
   ANIMACIONES GENERALES (@keyframes)
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 0, 0.6); }
    100% { box-shadow: 0 0 15px rgba(255, 107, 0, 0.3); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes blink {
    50% { opacity: 0.4; }
}

/* Clases de Utilidad de Animación */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-glow {
    animation: pulseGlow 3s infinite;
}

/* ==========================================================================
   COMPONENTES PREMIUM & CONTENEDORES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 107, 0, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--color-orange-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-active);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--color-orange-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orange-text {
    color: var(--color-orange-primary);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 107, 0, 0.2);
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(244, 246, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header-scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-normal);
}

.header-scrolled .nav-container {
    height: 65px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.logo svg, .logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-orange-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
}

/* Mobile Sidebar Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transition: var(--transition-normal);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-white);
}

.mobile-nav-link:hover {
    color: var(--color-orange-primary);
    padding-left: 0.5rem;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 150;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

/* ==========================================================================
   BARRA DE ANUNCIO PYME (promo-bar) - Ancho completo, delgada y llamativa
   ========================================================================== */
.promo-bar {
    position: sticky;
    top: 80px;
    margin-top: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2.5rem;
    height: 96px;
    background: linear-gradient(90deg, #0d1526 0%, #1a2745 40%, #1e1a0e 80%, #0d1526 100%);
    border-bottom: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 4px 30px rgba(255, 107, 0, 0.15);
    cursor: pointer;
    overflow: hidden;
    z-index: 95;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* shimmer de fondo animado */
.promo-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,107,0,0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmerBar 3s linear infinite;
    pointer-events: none;
}

@keyframes shimmerBar {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.promo-bar:hover {
    background: linear-gradient(90deg, #0f1a30 0%, #1e2f50 40%, #251f0f 80%, #0f1a30 100%);
    box-shadow: 0 3px 28px rgba(255, 107, 0, 0.22);
}

.promo-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    flex: 1;
}

/* Etiqueta RENTA llamativa */
.promo-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f172a;
    background: linear-gradient(135deg, #faff00 0%, #aaff00 100%);
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(170, 255, 0, 0.5), 0 0 24px rgba(250, 255, 0, 0.2);
    animation: labelPop 2.5s ease-in-out infinite;
}

@keyframes labelPop {
    0%, 100% { box-shadow: 0 0 10px rgba(170,255,0,0.45), 0 0 20px rgba(250,255,0,0.15); }
    50%       { box-shadow: 0 0 18px rgba(170,255,0,0.75), 0 0 36px rgba(250,255,0,0.3); }
}

.promo-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 7px #ff4d4d;
    animation: livePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%   { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(255,77,77,0.8); }
    50%  { transform: scale(1.2); opacity: 1;   box-shadow: 0 0 0 5px rgba(255,77,77,0); }
    100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

.promo-bar-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.promo-bar-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-bar-text strong {
    color: #ffd000;
    font-weight: 800;
}

.promo-bar-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.promo-bar-chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 99px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.promo-bar:hover .promo-bar-chip {
    color: #94a3b8;
    border-color: rgba(255,107,0,0.2);
}

.promo-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c3a 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(255,107,0,0.45);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.promo-bar-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.45s ease;
}

.promo-bar:hover .promo-bar-btn::before {
    left: 100%;
}

.promo-bar-btn:hover,
.promo-bar:hover .promo-bar-btn {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(255,107,0,0.55);
}

.promo-bar-btn svg {
    transition: transform 0.2s ease;
}

.promo-bar:hover .promo-bar-btn svg,
.promo-bar-btn:hover svg {
    transform: translateX(3px);
}

/* Responsivo promo-bar */
@media (max-width: 900px) {
    .promo-bar-chips { display: none; }
}
@media (max-width: 640px) {
    .promo-bar { padding: 0 1rem; }
    .promo-bar-sep { display: none; }
    .promo-bar-text { font-size: 0.76rem; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 20px 0 60px 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 107, 0, 0.05) 0%, rgba(244, 246, 249, 0) 60%),
                radial-gradient(circle at 10% 80%, rgba(58, 68, 84, 0.04) 0%, rgba(244, 246, 249, 0) 50%);
    display: flex;
    align-items: flex-start;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2.25rem;
    color: var(--color-orange-primary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Visual Dashboard del Hero */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
    top: -10%;
    left: -10%;
    z-index: -1;
    pointer-events: none;
}

.dashboard-mockup {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(58, 68, 84, 0.12);
    border: 1px solid var(--border-color);
}

.mockup-header {
    background: #f1f3f8;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 0.35rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }

.mockup-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.mockup-body {
    background: #ffffff;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.mockup-row-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.kpi-card {
    background: #f8fafc;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.kpi-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.kpi-val-orange {
    color: var(--color-orange-primary);
}

.kpi-trend {
    font-size: 0.6rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-top: 0.15rem;
}

.mockup-row-charts {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1rem;
}

.chart-card {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

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

.chart-title {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.chart-svg {
    width: 100%;
    height: 90px;
}

.chart-svg path.line {
    stroke: var(--color-orange-primary);
    stroke-width: 3;
    fill: none;
}

.chart-svg path.area {
    fill: url(#orange-grad);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    font-size: 0.7rem;
    border-left: 2px solid var(--color-orange-primary);
}

.status-item.active {
    border-left-color: var(--color-success);
}

.status-name {
    font-weight: 600;
}

.status-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.orange {
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
}

.status-badge.green {
    background: var(--color-success-bg);
    color: var(--color-success);
}

/* Floating Card Decorator */
.floating-overlay-card {
    position: absolute;
    bottom: -25px;
    left: -35px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-orange-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.floating-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--color-orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-primary);
    font-size: 1.25rem;
}

.floating-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.floating-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Phone Mockup (Device Frame for Real Mobile Dashboard Screenshot) */
.phone-mockup {
    position: absolute;
    bottom: -35px;
    right: -25px;
    width: 175px;
    height: 340px;
    background: #1a1e27;
    border: 8px solid #1a1e27;
    border-radius: 36px;
    box-shadow: var(--shadow-lg), 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 15;
    overflow: hidden;
    transition: var(--transition-normal);
}

.phone-mockup:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 107, 0, 0.2);
}

/* Phone Screen notch details */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 15px;
    background: #1a1e27;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 25;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media query adjustment for smaller screens so mockup is responsive */
@media (max-width: 1024px) {
    .phone-mockup {
        width: 145px;
        height: 285px;
        right: -10px;
        bottom: -20px;
        border-width: 6px;
        border-radius: 28px;
    }
    .phone-screen {
        border-radius: 22px;
    }
    .phone-notch {
        width: 70px;
        height: 12px;
    }
}

@media (max-width: 768px) {
    .phone-mockup {
        position: relative;
        margin: 2rem auto 0 auto;
        right: auto;
        bottom: auto;
        width: 220px;
        height: 430px;
    }
}

/* ==========================================================================
   SECCIÓN DE MÓDULOS ERP (INTERACTIVO)
   ========================================================================== */
.modules-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.modules-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    margin-top: 2rem;
}

.modules-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    align-content: start;
}

.module-chip {
    padding: 1.1rem;
    text-align: left;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-oxford-card);
    transition: var(--transition-normal);
}

.module-chip svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.module-chip:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    background: var(--bg-oxford-light);
}

.module-chip.active {
    background: var(--color-orange-light);
    border-color: var(--color-orange-primary);
    color: var(--color-orange-primary);
    box-shadow: var(--shadow-glow);
}

.module-chip.active svg {
    color: var(--color-orange-primary);
}

/* Detalle dinámico del Módulo */
.module-details-container {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.module-detail-card {
    min-height: 520px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.detail-header {
    margin-bottom: 1.5rem;
}

.detail-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.detail-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.detail-title {
    font-size: 1.75rem;
}

.detail-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.detail-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.bullet-icon {
    color: var(--color-orange-primary);
    font-weight: bold;
    margin-top: 0.15rem;
}

/* Vista preliminar interactiva de la Pantalla del Módulo */
.detail-preview-panel {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.preview-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
    font-weight: 700;
}

/* ==========================================================================
   SIMULADOR DE FLUJO DE PRODUCCIÓN DE CALZADO (WOW EFFECT)
   ========================================================================== */
.flow-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.flow-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

.flow-visual-box {
    margin-top: 2rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
}

/* Mapa del Simulador */
.simulator-track {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simulator-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: var(--bg-oxford-light);
    transform: translateY(-50%);
    z-index: 1;
}

/* Barra de progreso naranja que avanza */
.track-progress-bar {
    position: absolute;
    top: 50%;
    left: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange-primary), var(--color-orange-hover));
    transform: translateY(-50%);
    z-index: 2;
    width: 0%;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px var(--color-orange-glow);
}

.flow-node {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-oxford-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-normal);
}

.flow-node:hover {
    border-color: var(--color-orange-hover);
    transform: scale(1.1);
}

.flow-node.active {
    background: var(--bg-dark);
    border-color: var(--color-orange-primary);
    box-shadow: var(--shadow-glow-active);
    color: var(--color-orange-primary);
}

.flow-node.completed {
    background: var(--color-orange-primary);
    border-color: var(--color-orange-primary);
    color: var(--text-white);
}

.flow-node-label {
    position: absolute;
    top: 55px;
    width: 120px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-muted);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flow-node.active .flow-node-label {
    color: var(--color-orange-primary);
}

.flow-node.completed .flow-node-label {
    color: var(--text-white);
}

/* El Zapato Animado que viaja */
.shoe-avatar {
    position: absolute;
    width: 42px;
    height: 42px;
    background: var(--color-orange-primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    top: calc(50% - 21px);
    left: calc(0% + 20px);
    transition: left var(--transition-slow);
    box-shadow: var(--shadow-glow-active);
    animation: float 2s infinite;
}

.shoe-avatar svg {
    width: 22px;
    height: 22px;
}

/* Panel de Mensajes del Simulador */
.simulator-console {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.console-header {
    background: #f1f3f8;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.console-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.console-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.console-indicator {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    animation: blink 1.5s infinite;
}

.console-indicator.working {
    background: var(--color-orange-primary);
}

.console-body {
    padding: 2rem;
    min-height: 220px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.console-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-orange-primary);
}

.console-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.console-simulation-details {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.console-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.25rem;
}

.console-detail-label {
    color: var(--text-muted);
}

.console-detail-val {
    font-weight: 600;
    color: var(--text-white);
}

.console-detail-val.highlight {
    color: var(--color-orange-primary);
}

.simulator-controls {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   CALCULADORA DE RETORNO DE INVERSIÓN (ROI)
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.calculator-sliders {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.calc-value-bubble {
    padding: 0.25rem 0.85rem;
    background: var(--color-orange-light);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-orange-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* Estilización del Slider Rango */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-oxford-light);
    border-radius: var(--radius-full);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--color-orange-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-modules-selection {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.calc-modules-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.calc-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.calc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg-oxford-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.calc-checkbox-label:hover {
    border-color: var(--border-hover);
}

.calc-checkbox-label input {
    accent-color: var(--color-orange-primary);
    width: 15px;
    height: 15px;
}

.calc-checkbox-label.checked {
    border-color: var(--color-orange-primary);
    background: rgba(255, 107, 0, 0.05);
}

/* Resultados de la Calculadora */
.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-glow);
    background: radial-gradient(circle at 100% 0%, rgba(255, 107, 0, 0.08) 0%, rgba(255, 255, 255, 0.95) 80%);
}

.results-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.results-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 0.35rem;
}

.results-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.result-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label h4 {
    font-size: 1rem;
    font-weight: 600;
}

.metric-label p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-white);
}

.metric-value.highlight {
    color: var(--color-orange-primary);
}

.calc-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-cta {
    width: 100%;
}

.calc-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   BANNER PLAN PYME (HERO) - ESTILOS LEGACY (ya no usado, limpiado)
   ========================================================================== */
.offer-promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2.5rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(100deg, #0f172a 0%, #1a2642 50%, #0f172a 100%);
    border: 1px solid rgba(255, 107, 0, 0.25);
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

/* Borde naranja izquierdo estilo acento */
.offer-promo-banner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff6b00, #ffb03a, #ff6b00);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.offer-promo-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.55);
    box-shadow: 
        0 12px 40px rgba(15, 23, 42, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 107, 0, 0.12);
}

/* Luces Neon Ambientales */
.promo-glow-1 {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(255, 107, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(12px);
}

.promo-glow-2 {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(255, 176, 58, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(15px);
}

/* Icono del Banner */
.offer-promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.12);
    color: #ff8c3a;
    border: 1px solid rgba(255, 107, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.offer-promo-banner:hover .offer-promo-icon {
    background: linear-gradient(135deg, #ff6b00, #ff8c3a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

/* Cuerpo y Textos */
.offer-promo-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.offer-promo-top {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
}

.offer-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: #ff8c3a;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.promo-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ff4d4d;
    display: inline-block;
    box-shadow: 0 0 6px #ff4d4d;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.8);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 0 5px rgba(255, 77, 77, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

.offer-promo-pyme {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

/* Divisor vertical */
.offer-promo-body > .offer-promo-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.offer-promo-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.offer-promo-subheadline {
    display: none; /* Oculto en barra compacta */
}

/* Footer y Precios */
.offer-promo-footer {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.offer-promo-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-shrink: 0;
}

.offer-promo-from {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.offer-promo-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffb03a 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.offer-promo-price small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    -webkit-text-fill-color: initial;
    background: none;
    margin-left: 0.1rem;
}

/* Divisor antes de chips */
.offer-promo-footer::before {
    content: '';
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

/* Chips de Beneficios */
.offer-promo-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.offer-promo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.offer-promo-banner:hover .offer-promo-chip {
    color: #cbd5e1;
    border-color: rgba(255, 107, 0, 0.18);
}

.offer-promo-chip:hover {
    background: rgba(255, 107, 0, 0.1) !important;
    border-color: rgba(255, 107, 0, 0.35) !important;
    color: #fff !important;
}

.offer-promo-chip svg {
    color: #ff6b00;
    flex-shrink: 0;
}

/* Botón de Acción */
.offer-promo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.65rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c3a 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.offer-promo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.offer-promo-banner:hover .offer-promo-btn::before {
    left: 100%;
}

.offer-promo-btn:hover,
.offer-promo-banner:hover .offer-promo-btn {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.55);
}

.offer-promo-btn svg {
    transition: transform 0.25s ease;
}

.offer-promo-btn:hover svg,
.offer-promo-banner:hover .offer-promo-btn svg {
    transform: translateX(4px);
}

/* RESPONSIVO PARA EL BANNER COMPACTO */
@media (max-width: 1200px) {
    /* Ocultar chips de menor importancia */
    .offer-promo-chip:nth-child(3),
    .offer-promo-chip:nth-child(4) {
        display: none;
    }
}

@media (max-width: 900px) {
    .offer-promo-banner {
        flex-wrap: wrap;
        gap: 0.85rem;
        padding: 1rem 1.25rem;
    }
    .offer-promo-body {
        flex: 1;
        min-width: 0;
        width: 100%;
        gap: 1rem;
    }
    .offer-promo-headline {
        font-size: 0.95rem;
        white-space: normal;
    }
    .offer-promo-chips {
        display: none;
    }
    .offer-promo-footer::before {
        display: none;
    }
    .offer-promo-footer {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .offer-promo-banner {
        padding: 0.9rem 1.1rem;
    }
    .offer-promo-icon {
        display: none;
    }
    .offer-promo-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .offer-promo-headline {
        font-size: 0.9rem;
    }
    .offer-promo-price {
        font-size: 1.35rem;
    }
    .offer-promo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   MODAL OFERTA / PRECIOS (REDISEÑO PREMIUM)
   ========================================================================== */
.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.offer-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.offer-modal[hidden] {
    display: none !important;
}

.offer-modal.is-open[hidden] {
    display: flex !important;
}

.offer-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offer-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
    border: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: 0 30px 100px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 107, 0, 0.05);
    animation: offerModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes offerModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.offer-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.offer-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.offer-modal-header {
    padding: 3rem 2.5rem 2.25rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.offer-modal-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, rgba(255, 107, 0, 0) 70%);
    pointer-events: none;
}

.offer-modal-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.18) 0%, rgba(255, 107, 0, 0) 70%);
    pointer-events: none;
}

.offer-modal-content {
    padding: 2.5rem 2.5rem 3rem;
    background: #f8fafc;
}

.offer-pyme-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 2;
}

.offer-pyme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    transition: all var(--transition-normal);
}

.offer-pyme-item:hover {
    transform: translateY(-2.5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.offer-pyme-item strong {
    color: #f8fafc;
    font-size: 0.85rem;
}

.offer-pyme-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-menu .nav-link-offer,
.mobile-nav-links .js-open-offer {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.footer-links .footer-link {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    width: 100%;
}

.offer-badge {
    display: inline-block;
    padding: 0.4rem 1.15rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-orange-primary) 0%, #ff8c3a 100%);
    color: #fff;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25);
    margin-bottom: 1.25rem;
}

.offer-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.85rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.offer-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.offer-subtitle strong {
    color: #f1f5f9;
    font-weight: 700;
}

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

.offer-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 107, 0, 0.05);
    border-color: rgba(255, 107, 0, 0.25);
}

.offer-card-featured {
    border: 2px solid var(--color-orange-primary);
    background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
    box-shadow: 0 10px 30px -5px rgba(255, 107, 0, 0.08), 0 0 0 1px rgba(255, 107, 0, 0.05);
}

.offer-card-featured:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 107, 0, 0.2), 0 0 0 1px rgba(255, 107, 0, 0.1);
    border-color: var(--color-orange-primary);
}

.offer-card-ribbon {
    position: absolute;
    top: 0;
    right: 2rem;
    padding: 0.45rem 1rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange-primary) 0%, #ff8c3a 100%);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
}

.offer-card-top {
    margin-bottom: 1.5rem;
}

.offer-card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange-primary);
    margin-bottom: 0.5rem;
}

.offer-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.offer-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.offer-price-currency {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-orange-primary);
}

.offer-price-amount {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 4rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

.offer-price-period {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: 0.45rem;
}

.offer-card-desc {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.offer-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex: 1;
}

.offer-features li {
    font-size: 0.92rem;
    color: var(--text-light);
    padding-left: 1.75rem;
    position: relative;
}

.offer-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--color-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-features li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 2px;
    color: var(--color-orange-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.offer-card-cta {
    width: 100%;
    margin-top: auto;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-offer-light {
    background: linear-gradient(135deg, var(--color-orange-primary) 0%, #ff8c3a 100%);
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.25);
}

.btn-offer-light:hover {
    background: linear-gradient(135deg, var(--color-orange-hover) 0%, var(--color-orange-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 107, 0, 0.35);
}

.btn-offer-outline {
    background: transparent;
    color: var(--color-orange-primary) !important;
    border: 2px solid var(--color-orange-primary);
    box-shadow: none;
}

.btn-offer-outline:hover {
    background: var(--color-orange-light);
    color: var(--color-orange-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.1);
}

.offer-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nav-link-offer {
    color: var(--color-orange-primary) !important;
    font-weight: 700;
}

.nav-link-offer:hover {
    color: var(--color-orange-hover) !important;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO & FORMULARIO
   ========================================================================== */
/* ==========================================================================
   REFERENCIAS / CASOS DE ÉXITO
   ========================================================================== */
.references-section {
    padding: 100px 0;
    background: var(--bg-darker);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.04) 0%, transparent 45%);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.reference-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.reference-card:hover {
    transform: translateY(-4px);
}

.reference-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-oxford);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.reference-logo {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.reference-name {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.reference-quote {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.reference-quote::before {
    content: none;
}

.reference-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.reference-benefits li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.reference-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-orange-primary);
}

.contact-section {
    padding: 100px 0;
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 90% 90%, rgba(255, 107, 0, 0.05) 0%, rgba(0, 0, 0, 0) 50%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-muted);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-oxford-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-primary);
    font-size: 1.25rem;
}

.contact-text h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.contact-text p {
    font-size: 1.05rem;
    font-weight: 600;
}

/* El Formulario en sí */
.contact-form-box {
    padding: 3rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.form-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    color: var(--text-white);
    transition: var(--transition-normal);
}

.form-input:focus {
    border-color: var(--color-orange-primary);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.15);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

.form-submit-btn {
    grid-column: span 2;
    justify-self: end;
    margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-oxford-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-orange-primary);
    color: var(--text-white);
    border-color: var(--color-orange-primary);
    transform: translateY(-2px);
}

.footer-nav-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

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

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--color-orange-primary);
    padding-left: 0.25rem;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.newsletter-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    background: var(--bg-oxford-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-white);
    flex-grow: 1;
    font-size: 0.85rem;
}

.newsletter-input:focus {
    border-color: var(--color-orange-primary);
}

.newsletter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
}

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

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

.footer-legal-link:hover {
    color: var(--color-orange-primary);
}

/* ==========================================================================
   TOAST / ALERT NOTIFICATIONS
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-oxford-card);
    border: 1px solid var(--color-success);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 999;
    transform: translateY(120%);
    transition: var(--transition-normal);
}

.toast.active {
    transform: translateY(0);
}

.toast-icon {
    color: var(--color-success);
    font-size: 1.25rem;
}

.toast-text h4 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.toast-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN DASHBOARD SHOWCASE — REDISEÑO PREMIUM (ds-*)
   ========================================================================== */
.ds-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

/* Decoración de fondo tipo malla */
.ds-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* --- Encabezado centrado --- */
.ds-header {
    text-align: center;
    padding: 80px 2rem 50px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.ds-tag {
    background: rgba(255, 107, 0, 0.15) !important;
    color: var(--color-orange-primary) !important;
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
}

.ds-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 1rem 0 1.25rem;
    line-height: 1.15;
}

.ds-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Pastillas KPI --- */
.ds-kpi-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.ds-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.55rem 1.1rem 0.55rem 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.ds-pill:hover {
    background: var(--color-orange-light);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.ds-pill-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.ds-pill-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    text-align: left;
}

.ds-pill-text strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.ds-pill-text span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* --- Cuerpo: 3 columnas --- */
.ds-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    align-items: center;
    padding-bottom: 70px;
    position: relative;
    z-index: 2;
}

/* --- Columnas de slots --- */
.ds-slots-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ds-slots-right {
    align-items: flex-start;
}

.ds-slots-left {
    align-items: flex-end;
}

/* --- Tarjeta de slot --- */
.ds-slot-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    max-width: 280px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.ds-slot-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 107, 0, 0.1);
    transform: translateY(-3px);
}

/* Estado activo / seleccionado */
.ds-slot-card.ds-slot-active {
    border-color: var(--color-orange-primary) !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2), var(--shadow-md) !important;
    transform: translateY(-3px);
}

/* Hint "Ver en celular" */
.ds-slot-select-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-orange-primary);
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition-fast);
}

.ds-slot-card:hover .ds-slot-select-hint,
.ds-slot-card.ds-slot-active .ds-slot-select-hint {
    opacity: 1;
    transform: translateY(0);
}

.ds-slot-card.ds-slot-active .ds-slot-select-hint {
    color: var(--color-orange-primary);
    font-weight: 700;
}

.ds-slot-placeholder {
    height: 130px;
    border: 2px dashed rgba(255, 107, 0, 0.25);
    border-radius: var(--radius-sm);
    margin: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-darker);
    transition: var(--transition-normal);
}

.ds-slot-card:hover .ds-slot-placeholder {
    border-color: rgba(255, 107, 0, 0.45);
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
}

.ds-slot-plus {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-primary);
    transition: var(--transition-normal);
}

.ds-slot-plus svg {
    width: 18px;
    height: 18px;
}

.ds-slot-card:hover .ds-slot-plus {
    background: rgba(255, 107, 0, 0.2);
    transform: scale(1.15) rotate(90deg);
}

/* Área de ícono del slot (sin imagen miniatura) */
.ds-slot-icon-area {
    padding: 1.5rem 1rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ds-slot-icon-bg {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--color-orange-light);
    border: 1px solid rgba(255, 107, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-primary);
    transition: var(--transition-normal);
}

.ds-slot-icon-bg svg {
    width: 30px;
    height: 30px;
}

.ds-slot-card:hover .ds-slot-icon-bg,
.ds-slot-card.ds-slot-active .ds-slot-icon-bg {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.3);
    transform: scale(1.08);
}

.ds-slot-meta {
    padding: 0.85rem 1rem;
    background: #ffffff;
}

.ds-slot-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.ds-slot-label strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.ds-slot-meta p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Puntos de color */
.ds-slot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green  { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.dot-orange { background: var(--color-orange-primary); box-shadow: 0 0 8px rgba(255, 107, 0, 0.6); }
.dot-blue   { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
.dot-purple { background: #8b5cf6; box-shadow: 0 0 8px rgba(139, 92, 246, 0.6); }

/* --- Escenario del teléfono (centro) --- */
.ds-phone-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    flex-shrink: 0;
}

/* Anillo de brillo naranja difuso */
.ds-phone-glow-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.18) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulseOrange 3s ease-in-out infinite;
}

/* Marco del teléfono */
.ds-phone-frame {
    width: 220px;
    height: 450px;
    background: #0d1117;
    border: 3px solid #2d3340;
    border-radius: 42px;
    box-shadow:
        0 0 0 1px rgba(255, 107, 0, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 107, 0, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 5;
    transition: var(--transition-normal);
}

.ds-phone-frame:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(255, 107, 0, 0.25),
        0 40px 70px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 107, 0, 0.2);
}

.ds-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #0d1117;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 20;
}

.ds-phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 39px;
}

.ds-phone-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    background: #ffffff;
}

/* Botón lateral decorativo */
.ds-phone-btn-side {
    position: absolute;
    right: -5px;
    top: 100px;
    width: 4px;
    height: 60px;
    background: #2d3340;
    border-radius: 2px;
    z-index: 10;
}

/* --- Badges flotantes --- */
.ds-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.85rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a1e27;
    z-index: 15;
    white-space: nowrap;
}

.ds-badge-top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ds-badge-bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--color-orange-primary);
}

.ds-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: blink 1.2s infinite;
}

/* --- CTA inferior --- */
.ds-footer-cta {
    text-align: center;
    padding: 0 2rem 80px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ds-cta-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .ds-body {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2.5rem;
    }

    .ds-slots-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        max-width: 620px;
    }

    .ds-slots-left, .ds-slots-right {
        align-items: stretch;
    }

    .ds-slot-card {
        max-width: 280px;
        flex: 1 1 240px;
    }

    .ds-phone-stage {
        order: -1;
    }
}

@media (max-width: 640px) {
    .ds-title {
        font-size: 2.1rem;
    }

    .ds-phone-frame {
        width: 190px;
        height: 390px;
    }

    .ds-phone-glow-ring {
        width: 260px;
        height: 260px;
    }

    .ds-kpi-pills {
        gap: 0.6rem;
    }

    .ds-pill {
        padding: 0.45rem 0.85rem 0.45rem 0.6rem;
    }
}

/* ==========================================================================
   SECCIÓN KARDEX DE PRODUCCIÓN (TRAZABILIDAD PREMIUM)
   ========================================================================== */
.kardex-section {
    padding: 100px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.kardex-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.kardex-desc-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.kardex-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kardex-feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.kardex-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 107, 0, 0.15);
}

.kardex-feature-icon svg {
    width: 20px;
    height: 20px;
}

.kardex-feature-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.kardex-feature-info p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mockup de la Ventana del Kardex */
.kardex-visual {
    position: relative;
}

.kardex-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(58, 68, 84, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.15);
    background: #ffffff;
    transition: var(--transition-normal);
}

.kardex-window:hover {
    box-shadow: 0 35px 70px rgba(255, 107, 0, 0.15);
    transform: translateY(-4px);
}

.kardex-window-header {
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.kardex-window-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kardex-status-pill {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-orange-primary);
    background: var(--color-orange-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.kardex-window-body {
    position: relative;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.kardex-screenshot {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.kardex-window:hover .kardex-screenshot {
    transform: scale(1.01);
}

/* Pines e Indicadores Flotantes */
.kardex-pin-indicator {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    z-index: 10;
    transition: var(--transition-normal);
}

.kardex-pin-indicator:hover {
    transform: scale(1.05);
    background: #ffffff;
    border-color: var(--color-orange-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
}

.pin-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.pin-dot.ok {
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.pin-dot.alert-orange {
    background: var(--color-orange-primary);
    box-shadow: 0 0 8px var(--color-orange-primary);
}

.pin-card {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Ubicación de los pines sobre la imagen real del Kardex */
.pin-corte {
    top: 50%;
    left: 12%;
}

.pin-pespunte {
    top: 60%;
    left: 36%;
}

.pin-montado {
    top: 68%;
    left: 60%;
}

/* Tarjeta Flotante */
.kardex-floating-stat {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-orange-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.15);
    z-index: 15;
    max-width: 260px;
}

.kfs-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-orange-light);
    color: var(--color-orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kfs-icon svg {
    width: 20px;
    height: 20px;
}

.kfs-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.kfs-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.kfs-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-orange-primary);
}

.kfs-trend {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
}

@keyframes pulseOrange {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(1); }
}

.animate-pulse-orange {
    animation: pulseOrange 2s infinite ease-in-out;
}

/* Responsividad para la nueva sección */
@media (max-width: 1024px) {
    .kardex-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .section-title-left {
        text-align: center;
    }
    
    .kardex-desc-text {
        max-width: 600px;
        margin: 0 auto 2.5rem auto;
    }
    
    .kardex-features {
        max-width: 580px;
        margin: 0 auto;
        text-align: left;
    }
    
    .kardex-visual {
        max-width: 550px;
        margin: 0 auto;
    }
    
    .kardex-floating-stat {
        bottom: -20px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .kardex-pin-indicator {
        display: none;
    }
    
    .kardex-floating-stat {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1.5rem auto 0 auto;
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDAD COMPLETAMENTE CONTROLADA)
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 580px;
        margin: 0 auto;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .floating-overlay-card {
        left: 0;
        bottom: -15px;
    }
    
    .modules-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .module-details-container {
        position: relative;
        top: 0;
    }
    
    .module-detail-card {
        min-height: auto;
    }
    
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .offer-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .offer-promo-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .offer-promo-icon {
        margin: 0 auto;
    }

    .offer-promo-top,
    .offer-promo-footer {
        justify-content: center;
    }

    .offer-promo-btn {
        width: 100%;
        justify-content: center;
    }

    .offer-pyme-highlights {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .offer-modal-header,
    .offer-modal-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .simulator-track {
        flex-direction: column;
        gap: 3rem;
        height: 600px;
        align-items: center;
        padding: 2rem 0;
    }
    
    .simulator-track::before {
        top: 20px;
        bottom: 20px;
        left: 50%;
        width: 4px;
        height: calc(100% - 40px);
        transform: translateX(-50%) translateY(0);
    }
    
    .track-progress-bar {
        top: 20px;
        left: 50%;
        width: 4px;
        height: 0%;
        transform: translateX(-50%) translateY(0);
        transition: height var(--transition-slow);
    }
    
    .flow-node-label {
        top: 50%;
        left: 70px;
        transform: translateY(-50%);
        text-align: left;
        width: 160px;
    }
    
    .shoe-avatar {
        left: calc(50% - 21px);
        top: calc(0% + 20px);
        transition: top var(--transition-slow);
    }
    
    .console-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-submit-btn, .form-group-full {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
