/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL (MODO CLARO)
   ========================================================================== */
:root {
    --primary-color: #0d6efd;
    --primary-soft: rgba(13, 110, 253, 0.08);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: #1e293b;
    font-size: 1.1rem; /* Letra base más grande y legible */
    line-height: 1.6;
    transition: var(--transition-smooth);
}

/* ─── ANCHO DISTRIBUIDO Y ELEGANTE ─── */
.container, .container-lg {
    max-width: 1320px !important; /* Más amplio para evitar que se encajone demasiado */
    width: 100%;
}

/* Clases de Utilidad de Diseño */
.fw-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.03em !important; }
.tracking-wider { letter-spacing: 0.05em; }
.max-w-xl { max-width: 580px; }
.bg-light-soft { background-color: #f8fafc; }
.bg-primary-soft { background-color: var(--primary-soft); }
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }

/* Texto de Gradiente Tecnológico */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4ebd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── TIPOGRAFÍA AGRESIVA Y GRANDE (ESTILO PREMIUM) ─── */
h1, .display-4 {
    font-size: 3.5rem !important; /* Título imponente */
    font-weight: 800;
    line-height: 1.2 !important;
}

.lead, p.fs-5 {
    font-size: 1.3rem !important; /* Párrafos descriptivos del hero más grandes */
    color: #475569 !important;
}

.navbar .nav-link {
    font-size: 1.1rem !important; /* Enlaces del menú más visibles */
    font-weight: 600 !important;
}

.btn-lg {
    font-size: 1.15rem !important;
    padding: 1rem 2rem !important;
}

/* ─── TRUCO REMOVER FONDO BLANCO DEL LOGO ─── */
.brand-text img {
    mix-blend-mode: multiply; /* Elimina el recuadro blanco sobre fondo claro */
    filter: contrast(110%);   /* Mantiene vivos los colores del logo */
}

/* ==========================================================================
   2. HOVERS, DISTRIBUCIÓN Y ANIMACIONES DE COMPONENTES
   ========================================================================== */
.hero {
    padding-top: 7rem !important; /* Más espacio vertical arriba y abajo */
    padding-bottom: 7rem !important;
}

.stats {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.btn-modern {
    transition: var(--transition-smooth);
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15) !important;
}

/* Botón Minimalista de Modo Noche */
.btn-theme-toggle {
    width: 42px;
    height: 42px;
    background-color: #f1f5f9;
    border: none;
    transition: var(--transition-smooth);
}
.btn-theme-toggle:hover {
    background-color: #e2e8f0;
    transform: scale(1.05);
}

/* Tarjetas y Contenedores Elevados */
.feature-card, .pricing-card, .screenshot-frame {
    border: 1px solid #e2e8f0 !important;
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(13, 110, 253, 0.25) !important;
}

/* Forzar a que la imagen del Hero mantenga una proporción lógica */
.hero-img {
    max-height: 480px; 
    width: 100%;
    object-fit: cover;
    border-radius: 24px !important; /* Bordes suaves modernos */
    animation: floatingEffect 6s ease-in-out infinite;
}

/* Ajuste para las cajitas de estadísticas (Más amplias y separadas) */
.stat-box {
    max-width: 280px;
    padding: 2rem 1.5rem !important;
    margin: 0 auto;
    border-radius: 16px !important;
}

.stat-box h2 {
    font-size: 2.8rem !important; /* Números más grandes */
}

.stat-box p {
    font-size: 1rem !important;
}

@keyframes floatingEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
}

/* ─── BOTÓN FLOTANTE DE WHATSAPP REGENERADO ─── */
.whatsapp-btn {
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    z-index: 1000; 
    width: 60px; /* Tamaño optimizado */
    height: 60px; 
    background-color: transparent !important; /* Adiós al fondo claro sobrante */
    border-radius: 50%; 
    padding: 0px; 
    transition: var(--transition-smooth);
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%; /* Recorta la imagen nativa en un círculo limpio */
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); /* Sombra elegante */
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: none !important;
}

.hover-white:hover { color: #ffffff !important; }

/* ==========================================================================
   3. BLOQUE REFINADO PARA MODO NOCHE (DARK MODE)
   ========================================================================== */
body.dark-mode {
    background-color: #0f172a !important; /* Azul grisáceo profundo */
    color: #f1f5f9 !important;
}

body.dark-mode .navbar {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode .navbar .nav-link,
body.dark-mode .navbar .brand-text {
    color: #f8fafc !important;
}

/* Filtro de inversión para arreglar el fondo del logo en modo oscuro */
body.dark-mode .brand-text img {
    mix-blend-mode: screen; /* Adapta el logo con fondo blanco al fondo oscuro */
}

body.dark-mode .btn-theme-toggle {
    background-color: #334155;
}

body.dark-mode .bg-light-soft {
    background-color: #1e293b !important;
}

body.dark-mode .stat-box,
body.dark-mode .feature-card, 
body.dark-mode .pricing-card,
body.dark-mode .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-mode .price .text-dark,
body.dark-mode h2, body.dark-mode h4, body.dark-mode h5 {
    color: #ffffff !important;
}

body.dark-mode .text-secondary,
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .form-control {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

body.dark-mode .form-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}