/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES (APPGULA PREMIUM CSS)
   ========================================================================== */

:root {
    /* Colores Corporativos (Paleta Fuego & Carbón) */
    --bg-dark: #070709;
    --bg-card: rgba(16, 16, 20, 0.65);
    --bg-card-hover: rgba(26, 26, 32, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 99, 0, 0.25);
    
    /* Colores Acento */
    --primary: #FF5500;
    --primary-hover: #FF7700;
    --primary-grad: linear-gradient(135deg, #FF1E27 0%, #FF6B00 50%, #FFA800 100%);
    --secondary-grad: linear-gradient(135deg, #2A2A35 0%, #1A1A22 100%);
    --green-grad: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Semántica */
    --green: #10B981;
    --red: #EF4444;
    --orange: #F97316;
    --yellow: #F59E0B;
    
    /* Tipografía */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    
    /* Sombras & Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
    --shadow-glow-primary: 0 0 30px rgba(255, 85, 0, 0.2);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utilidades de Grid y Flex */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-md {
    max-width: 800px;
}

.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-gradient {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-orange { color: var(--orange) !important; }
.bg-green { background: var(--green) !important; color: white !important; }
.bg-orange { background: var(--orange) !important; color: white !important; }
.bg-yellow { background: var(--yellow) !important; color: #121216 !important; }

/* ==========================================================================
   1. PANTALLA DE CARGA (INTRO LOADER)
   ========================================================================== */

#loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    width: 100px;
    height: 100px;
}

.logo-svg-fire {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 85, 0, 0.4));
}

.fire-tail {
    animation: flamePulse 1.5s infinite alternate ease-in-out;
    transform-origin: 50% 50%;
}

.g-stem {
    animation: stemPulse 1.5s infinite alternate ease-in-out;
}

@keyframes flamePulse {
    0% { transform: scale(0.95) rotate(-2deg); filter: brightness(0.9); }
    100% { transform: scale(1.05) rotate(2deg); filter: brightness(1.2); }
}

@keyframes stemPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.loader-text {
    text-align: center;
}

.loader-text .brand-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    display: block;
    margin-bottom: 12px;
}

.progress-bar {
    width: 160px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-grad);
    border-radius: 4px;
    animation: fillProgress 1.8s forwards cubic-bezier(0.1, 0.8, 0.25, 1);
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   2. NAVBAR FLOTANTE
   ========================================================================== */

.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 12px 32px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .navbar {
    background: rgba(10, 10, 12, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    padding: 8px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg-fire-mini {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 85, 0, 0.3));
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 85, 0, 0.25));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-img-loader {
    width: auto;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 85, 0, 0.35));
    animation: flamePulse 1.8s infinite alternate ease-in-out;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: var(--font-secondary);
    color: var(--text-primary);
}

.logo-dot {
    color: #FF5500;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background: var(--primary-grad);
    color: white;
    box-shadow: var(--shadow-glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(35deg);
    transition: none;
    animation: buttonShine 4s infinite linear;
}

@keyframes buttonShine {
    0% { left: -60%; }
    15% { left: 130%; }
    100% { left: 130%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 85, 0, 0.45);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--secondary-grad);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-nav-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-giant {
    padding: 20px 48px;
    font-size: 1.15rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 450px;
}

.btn-full-width {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */

.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 85, 0, 0.1);
    border: 1px solid rgba(255, 85, 0, 0.25);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-family: var(--font-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Dashboard Mockup (Hero Visual) */
.hero-visual {
    position: relative;
    z-index: 1;
}

.dashboard-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.5s ease;
}

.dashboard-preview-card:hover {
    border-color: rgba(255, 85, 0, 0.2);
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.badge-status-live {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background-color: var(--green);
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.card-body {
    padding: 24px;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.live-orders-container {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.4s ease;
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.order-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.order-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--yellow);
}

.order-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.order-client {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.order-items {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.order-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-order-action {
    background: var(--primary-grad);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-order-action:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.new-order-animation {
    animation: orderPulse 3s infinite alternate ease-in-out;
}

@keyframes orderPulse {
    0% { border-color: rgba(255, 85, 0, 0.15); box-shadow: 0 0 10px rgba(255, 85, 0, 0.05); }
    100% { border-color: rgba(255, 85, 0, 0.5); box-shadow: 0 0 20px rgba(255, 85, 0, 0.2); }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Beneficios Continuos (Marquee) */
.marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: rgba(255, 85, 0, 0.05);
    border-top: 1px solid rgba(255, 85, 0, 0.1);
    border-bottom: 1px solid rgba(255, 85, 0, 0.1);
    padding: 16px 0;
    overflow: hidden;
    margin-top: 60px;
}

.marquee-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: scrollMarquee 25s infinite linear;
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

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

/* ==========================================================================
   4. SECCIÓN CONTRASTE (CAJA DE DOLOR + CALCULADORA)
   ========================================================================== */

.contraste-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0c0f 50%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: stretch;
    margin-bottom: 60px;
}

.calc-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    justify-content: space-between;
}

.calc-subtitle {
    font-size: 1.3rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.slider-group {
    margin-bottom: 28px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
}

.slider-value {
    color: var(--primary);
    font-size: 1.15rem;
}

.input-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.input-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
    transition: transform 0.1s;
}

.input-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.saving-card-container {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-glow-green);
    margin-top: 12px;
}

.saving-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--green);
    margin-bottom: 8px;
}

.saving-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green);
    font-family: var(--font-secondary);
}

.saving-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Platform results */
.comparison-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glow-border-green {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
}

.glow-border-orange {
    border-color: rgba(255, 85, 0, 0.3);
    box-shadow: 0 0 40px rgba(255, 85, 0, 0.12);
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.platform-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.commission-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    padding: 4px 10px;
    border-radius: 12px;
}

.commission-badge.bg-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.metric-val {
    font-weight: 600;
    color: var(--text-primary);
}

.card-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 12px 0;
}

.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.05);
}

/* Tabla comparativa */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 48px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comparison-table tr {
    transition: all 0.25s ease;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table th {
    font-weight: 800;
    font-size: 1.05rem;
    font-family: var(--font-secondary);
}

.bg-gula-header {
    background: rgba(255, 168, 0, 0.08) !important;
    border-top: 1px solid rgba(255, 168, 0, 0.25) !important;
    border-left: 1px solid rgba(255, 168, 0, 0.25) !important;
    border-right: 1px solid rgba(255, 168, 0, 0.25) !important;
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(255, 168, 0, 0.15);
}

.bg-gula-cell {
    background: rgba(255, 168, 0, 0.04) !important;
    border-left: 1px solid rgba(255, 168, 0, 0.15) !important;
    border-right: 1px solid rgba(255, 168, 0, 0.15) !important;
}

.comparison-table tr:last-child td {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comparison-table tr:last-child td.bg-gula-cell {
    border-bottom: 1px solid rgba(255, 168, 0, 0.15) !important;
}

/* Badges e iconos dentro de la tabla */
.table-badge-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
}

.table-badge-red i {
    width: 16px;
    height: 16px;
}

.table-badge-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10B981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.table-badge-green i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   5. SECCIÓN INTERACTIVA (EL SIMULADOR EN VIVO)
   ========================================================================== */

.simulador-section {
    padding: 100px 0;
}

.badge-interactive {
    display: inline-flex;
    background: rgba(255, 85, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.simulator-wrapper {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}

/* Rediseño del Panel del Comercio (Estilo real Sabor & Arte) */
.sim-panel {
    background: #F4F6F8; /* Fondo claro de la app real */
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 1fr; /* Split layout: Sidebar y Contenido */
    min-height: 600px;
}

/* Sidebar del Admin */
.admin-sidebar {
    background: #1B1E29; /* Fondo oscuro real */
    color: #A0AEC0;
    display: flex;
    flex-direction: column;
    padding: 16px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-sabor {
    font-weight: 800;
    letter-spacing: 0.5px;
}
.logo-amp {
    color: #E53E3E;
    font-style: italic;
    font-weight: 800;
}
.logo-arte {
    font-weight: 400;
    color: #F7FAFC;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E53E3E; /* Círculo rojo del admin real */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-avatar i {
    width: 14px;
    height: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
}

.user-role {
    font-size: 0.6rem;
    color: #718096;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.menu-item {
    background: transparent;
    border: none;
    color: #A0AEC0;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    outline: none;
    font-family: var(--font-primary);
}

.menu-item i {
    width: 14px;
    height: 14px;
    color: #A0AEC0;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.menu-item.active {
    background: #E53E3E; /* Botón rojo de item activo real */
    color: white;
}

.menu-item.active i {
    color: white;
}

.menu-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Área de Contenido del Admin */
.admin-content-area {
    display: flex;
    flex-direction: column;
    background: #F4F6F8;
    color: #2D3748;
    position: relative;
    overflow-y: auto;
    max-height: 600px;
}

.tab-content {
    padding: 16px;
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.tab-content.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

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

/* Cabecera del Panel Real */
.admin-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}

.admin-view-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 2px;
}

.admin-view-header p {
    font-size: 0.72rem;
    color: #718096;
}

.header-actions {
    display: flex;
    gap: 6px;
}

.btn-excel, .btn-clear, .btn-new-order, .btn-filter-action {
    padding: 6px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
    transition: all 0.2s;
}

.btn-excel {
    background: #E6FFFA;
    border: 1px solid #B2F5EA;
    color: #00A389;
}

.btn-excel:hover {
    background: #B2F5EA;
}

.btn-clear {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #E53E3E;
}

.btn-clear:hover {
    background: #FED7D7;
}

.btn-new-order {
    background: #E53E3E;
    border: 1px solid #E53E3E;
    color: white;
}

.btn-new-order:hover {
    background: #C53030;
}

/* Tarjetas de métricas del panel real */
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.metric-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.metric-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A202C;
}

.metric-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-box i {
    width: 14px;
    height: 14px;
}

.metric-icon-box.blue { background: #EBF8FF; color: #2B6CB0; }
.metric-icon-box.yellow { background: #FEFCBF; color: #B7791F; }
.metric-icon-box.green { background: #C6F6D5; color: #22543D; }
.metric-icon-box.purple { background: #FAF5FF; color: #6B46C1; }
.metric-icon-box.red-icon { background: #FFF5F5; color: #C53030; }
.metric-icon-box.dark { background: #EDF2F7; color: #4A5568; }

.metric-card.dark-style {
    background: #1A202C;
    border-color: #1A202C;
}

/* Filtros y Buscador real */
.admin-filter-bar {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 8px;
    flex-grow: 1;
}

.search-wrapper i {
    width: 12px;
    height: 12px;
    color: #A0AEC0;
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.72rem;
    color: #4A5568;
    width: 100%;
}

.admin-filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #718096;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.filter-tab.active {
    background: #E53E3E;
    color: white;
}

.filter-tab .badge {
    background: rgba(0,0,0,0.1);
    color: inherit;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 6px;
}

.filter-tab.active .badge {
    background: rgba(255,255,255,0.2);
}

.category-select {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4A5568;
    outline: none;
}

/* Título de sección de tablas */
.table-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table-section-title i {
    width: 12px;
    height: 12px;
}

.text-red { color: #E53E3E; }

/* Tablas de Administración (Estilo real Sabor & Arte) */
.admin-table-container {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
    overflow: hidden;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: #F8FAFC;
    padding: 8px 12px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #E2E8F0;
}

.admin-table td {
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #4A5568;
    border-bottom: 1px solid #EDF2F7;
    vertical-align: middle;
    line-height: 1.3;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.text-muted {
    color: #A0AEC0;
}

.text-xs {
    font-size: 0.6rem;
}

.font-bold {
    font-weight: 700;
}

.text-dark {
    color: #1A202C;
}

.text-green {
    color: #38A169;
}

.py-8 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* Badges Reales */
.badge-payment {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
    text-transform: uppercase;
}

.badge-payment.green {
    background: #E6FFFA;
    color: #00A389;
    border: 1px solid #B2F5EA;
}

.badge-payment.gray {
    background: #EDF2F7;
    color: #4A5568;
    border: 1px solid #E2E8F0;
}

.badge-status {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}

.badge-status.requested {
    background: #EBF8FF;
    color: #2B6CB0;
}

.badge-status.approved {
    background: #C6F6D5;
    color: #22543D;
}

.badge-status.active-badge {
    background: #C6F6D5;
    color: #22543D;
}

.badge-status.paused-badge {
    background: #FED7D7;
    color: #9B2C2C;
}

/* Acciones de tabla */
.table-actions {
    display: flex;
    gap: 4px;
}

.btn-action-ok, .btn-action-cancel, .btn-action-chat, .btn-action-edit {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn-action-ok {
    background: #E6FFFA;
    color: #38A169;
}

.btn-action-ok:hover {
    background: #38A169;
    color: white;
}

.btn-action-cancel {
    background: #FFF5F5;
    color: #E53E3E;
}

.btn-action-cancel:hover {
    background: #E53E3E;
    color: white;
}

.btn-action-chat {
    background: #E6FFFA;
    color: #00A389;
}

.btn-action-chat:hover {
    background: #00A389;
    color: white;
}

.btn-action-edit {
    background: #EDF2F7;
    color: #4A5568;
    width: auto;
    height: auto;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
}

.btn-action-edit:hover {
    background: #4A5568;
    color: white;
}

.btn-action-edit.paused {
    background: #FFF5F5;
    color: #E53E3E;
}

.btn-action-edit.paused:hover {
    background: #E53E3E;
    color: white;
}

.btn-action-ok i, .btn-action-cancel i, .btn-action-chat i {
    width: 12px;
    height: 12px;
}

/* Celdas de menú */
.menu-item-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item-emoji {
    font-size: 1.1rem;
}

/* Caja de aumento masivo en menú */
.aumento-masivo-card {
    background: #FFF5F5;
    border: 1px dashed #FED7D7;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    margin-bottom: 2px;
    color: #E53E3E;
}

.card-meta i {
    width: 14px;
    height: 14px;
}

.aumento-masivo-card p {
    font-size: 0.68rem;
    color: #718096;
    margin-bottom: 8px;
}

.aumento-controls {
    display: flex;
    gap: 6px;
}

.btn-percentage {
    background: white;
    border: 1px solid #E2E8F0;
    color: #4A5568;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-percentage:hover, .btn-percentage.active {
    background: #E53E3E;
    border-color: #E53E3E;
    color: white;
}

.btn-reset {
    background: transparent;
    border: 1px solid transparent;
    color: #A0AEC0;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
    transition: color 0.2s;
}

.btn-reset:hover {
    color: #4A5568;
}

/* Split de Finanzas */
.finances-tables-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 14px;
}

.finances-col {
    display: flex;
    flex-direction: column;
}

.date-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4A5568;
}

.date-filter-group i {
    width: 12px;
    height: 12px;
}

.text-sm {
    font-size: 0.72rem;
}

/* Logger de Gastos Financieros */
.expense-logger-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.expense-logger-card h5 {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2D3748;
}

.expense-inputs {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr auto;
    gap: 6px;
}

.input-text, .input-number {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #4A5568;
    padding: 6px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    outline: none;
    font-family: var(--font-primary);
}

.input-text:focus, .input-number:focus {
    border-color: #E53E3E;
}

/* WhatsApp auto cards */
.whatsapp-templates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4A5568;
}

.template-header .badge.bg-green {
    background: #E6FFFA;
    color: #38A169;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.58rem;
}

.template-body {
    background: #F8FAFC;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.72rem;
    color: #4A5568;
    border-left: 3px solid #38A169;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* SMARTPHONE MOCKUP (DERECHA) */
.phone-mockup {
    width: 320px;
    height: 600px;
    background: #0D0E12;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Barra de Navegador Web Móvil */
.mobile-browser-header {
    background: #181920;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.browser-dots {
    display: flex;
    gap: 4px;
}

.browser-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
}

.browser-url-bar {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.browser-lock {
    width: 8px;
    height: 8px;
    color: var(--green);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0D0E12;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

/* Pantalla Cliente App */
.phone-app-container {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.phone-app-container.active {
    display: flex;
}

.client-web-header {
    background: #181920;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.client-title {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

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

.client-menu-body {
    padding: 12px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 72px; /* espacio para footer checkout */
}

.client-promo-banner {
    background: rgba(255, 85, 0, 0.08);
    border: 1px solid rgba(255, 85, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px;
    font-size: 0.7rem;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
}

.client-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-product-card {
    background: #181920;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    transition: opacity 0.3s, filter 0.3s;
}

.client-product-card.paused {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.product-info-client {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prod-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.prod-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 4px 0;
    line-height: 1.3;
}

.prod-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.product-image-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    position: relative;
}

.badge-stock-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.client-product-card.paused .badge-stock-out {
    display: block;
}

.client-footer-checkout {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #181920;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.cart-summary {
    display: flex;
    flex-direction: column;
}

.item-count {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.cart-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-checkout-client {
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-checkout-client:hover {
    filter: brightness(1.05);
}

/* WhatsApp Client Simulator (Screen 2) */
.phone-whatsapp-container {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #0B141A; /* WhatsApp Dark Mode Chat BG */
}

.phone-whatsapp-container.active {
    display: flex;
}

.wa-header {
    background: #1F2C34;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.wa-back { font-size: 1rem; color: #8696A0; cursor: pointer; }

.wa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.wa-contact-info {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.wa-status {
    font-size: 0.65rem;
    color: #8696A0;
}

.wa-chat-body {
    flex-grow: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.wa-date-divider {
    background: #182229;
    color: #8696A0;
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: center;
    font-weight: 600;
}

.wa-msg {
    max-width: 85%;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wa-msg.sent {
    background: #005C4B; /* Sent bubble */
    color: #E9EDEF;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-msg.received {
    background: #202C33; /* Received bubble */
    color: #E9EDEF;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-msg-content {
    white-space: pre-line;
}

.wa-time {
    font-size: 0.55rem;
    color: #8696A0;
    align-self: flex-end;
    margin-top: 4px;
}

.wa-input-area {
    background: #1F2C34;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-attach { color: #8696A0; cursor: pointer; }

.wa-input-box {
    background: #2A3942;
    border-radius: 20px;
    padding: 6px 14px;
    color: #8696A0;
    font-size: 0.75rem;
    flex-grow: 1;
}

.wa-mic { color: #8696A0; }

/* ==========================================================================
   6. CIERRE, TRANSPARENCIA Y CONFIANZA
   ========================================================================== */

.trust-section {
    padding: 80px 0;
}

.trust-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.trust-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
}

.trust-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   7. SECCIÓN DE PRECIO & CHECKOUT (CTA FINAL)
   ========================================================================== */

.pricing-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(255, 85, 0, 0.05) 0%, var(--bg-dark) 80%);
}

.pricing-box {
    background: rgba(16, 16, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(12px);
}

.pricing-badge {
    display: inline-block;
    background: var(--primary-grad);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.pricing-title {
    font-size: 2rem;
    margin-bottom: 24px;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.price-container .currency {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-container .amount {
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: white;
}

.price-container .period {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.price-iva {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.pricing-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    text-align: left;
    max-width: 580px;
    margin: 0 auto 40px auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-action {
    margin-bottom: 28px;
}

.action-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.alternative-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    font-weight: 600;
    text-decoration: underline;
}

.chat-wa-link:hover {
    color: #20ba59;
}

/* ==========================================================================
   8. PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

.faq-section {
    padding: 100px 0;
    background: #09090b;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255,255,255,0.1);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 20px 24px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 24px;
}

/* ==========================================================================
   9. MODAL DE ONBOARDING
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #0E0E12;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    padding: 32px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: white;
}

.modal-steps-indicator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.step-indicator {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 8px;
    display: flex;
    align-items: center;
}

.step-indicator.active {
    background: var(--primary);
    color: var(--primary);
}

.modal-step-pane {
    display: none;
}

.modal-step-pane.active {
    display: block;
    animation: fadeIn 0.4s forwards;
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Selector de opciones de puesta en marcha */
.setup-option-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 24px 0;
}

.selector-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-align: left;
}

.setup-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.setup-radio-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.setup-radio-label.active {
    background: rgba(255, 168, 0, 0.03);
    border-color: var(--primary);
}

.setup-radio-label input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.radio-details strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.radio-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.form-group-modal {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modal label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group-modal input, .form-group-modal select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-primary);
}

.form-group-modal select option {
    background-color: #121214;
    color: white;
}

.form-group-modal input:focus, .form-group-modal select:focus {
    border-color: var(--primary);
}

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

/* Step 2 Panel */
.checkout-summary-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.activation-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.act-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.act-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 85, 0, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.act-step p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.onboarding-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#btn-pay-mp {
    box-shadow: 0 0 20px rgba(0, 158, 227, 0.25);
    background: #009EE3; /* MP Blue */
}

#btn-pay-mp:hover {
    background: #008cd1;
    box-shadow: 0 0 30px rgba(0, 158, 227, 0.45);
}

/* ==========================================================================
   10. PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.footer {
    background: #040405;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

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

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-links-col a, .footer-links-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.link-footer {
    color: var(--text-primary);
    font-weight: 600;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .simulator-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .phone-mockup {
        display: none; /* Se oculta para no saturar móviles intermedios en tab horizontal */
    }
    
    .trust-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Menú hamburguesa omitido para simpleza y conversiones puras */
    }
    
    .header {
        top: 10px;
    }
    
    .navbar {
        padding: 10px 20px;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .pricing-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
}

/* ==========================================================================
   11. DISEÑO PREMIUM DE PANEL DE CONTROL DE ADMINISTRADOR
   ========================================================================== */

/* Trigger flotante semi-transparente arriba a la derecha */
.admin-trigger {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 168, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 168, 0, 0.25);
    transform: rotate(30deg) scale(1.05);
}

/* Portal de Administrador a Pantalla Completa */
.admin-portal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #09090b; /* Fondo sólido ultra-oscuro */
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-portal-fullscreen.active {
    display: flex;
}

/* Cabecera del Portal */
.admin-portal-header {
    background: #0d0d11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand-icon {
    font-size: 1.3rem;
}

.admin-logo-text {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.admin-sublogo {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.03);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-left: 6px;
    vertical-align: middle;
}

.btn-exit-admin {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-exit-admin:hover {
    background: #EF4444;
    color: white;
    border-color: #EF4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Área de Contenido Principal */
.admin-portal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
}

/* Contenedor y Tarjeta de Login Centrado */
.admin-login-card-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

.admin-login-card {
    background: #0d0d11;
    border: 1px solid rgba(255, 168, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 168, 0, 0.03);
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

.lock-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 168, 0, 0.05);
    border: 1px solid rgba(255, 168, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
}

.lock-icon-container i {
    width: 24px;
    height: 24px;
}

/* Contenedor del Dashboard Interno */
.admin-container-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Paneles del Administrador */
.admin-pane {
    display: none;
    text-align: left;
}

.admin-pane.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* Login de Administrador */
.admin-login-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-help {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Encabezado del Dashboard */
.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 24px;
    gap: 16px;
}

.admin-badge {
    background: rgba(255, 168, 0, 0.1);
    border: 1px solid rgba(255, 168, 0, 0.25);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Métricas del Dashboard */
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-metric-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.admin-metric-card .metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-metric-card .metric-value {
    font-size: 1.6rem;
    font-weight: 800;
}

/* Pestañas de Navegación */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.admin-tab {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.admin-tab.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 168, 0, 0.03);
}

/* Tablas del Administrador */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.005);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Conmutador Switch de Licencia Habilitado/Deshabilitado */
.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.admin-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #A0AEC0;
    border-radius: 50%;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-switch input:checked + .switch-slider {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
}

.admin-switch input:checked + .switch-slider:before {
    transform: translateX(18px);
    background-color: #10B981;
}

/* Links y Botones Admin */
.admin-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.admin-link:hover {
    color: #FFA800;
}

.btn-admin-action {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-admin-action:hover {
    background: rgba(255, 168, 0, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-admin-action.approve-btn {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.btn-admin-action.approve-btn:hover {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

/* Formulario Manual Grid */
.admin-manual-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 4px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .admin-metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .admin-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Animaciones Premium */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

