/* Variables CSS - Paleta oscura elegante */
:root {
    /* Colores principales - Tono oscuro elegante */
    --primary-dark: #0F1A2B;
    --secondary-dark: #1A2A3A;
    --accent-gold: #D4A55E;
    --accent-gold-light: #E6B873;
    --accent-gold-dark: #B88B4A;
    
    /* Fondos oscuros */
    --bg-sand-light: #1a2639;
    --bg-sand: #141E2E;
    --bg-sand-dark: #0f1826;
    --bg-cream: #1E2A3A;
    
    /* Colores de texto */
    --text-dark: #E0E0E0;
    --text-medium: #B0B0B0;
    --text-light: #8A8A8A;
    --text-white: #FFFFFF;
    
    /* Elementos UI */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-dark: 0 15px 40px rgba(0, 0, 0, 0.5);
    
    /* Transiciones */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Bordes */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    
    /* Espaciado */
    --space-xs: 10px;
    --space-sm: 20px;
    --space-md: 40px;
    --space-lg: 60px;
    --space-xl: 80px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-sand-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--text-white);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
    color: var(--text-white);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
}

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

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Secciones */
.section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Títulos de sección */
.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 2px;
}

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

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Highlight */
.highlight {
    color: var(--accent-gold);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    opacity: 0.3;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Estilos adicionales para la nueva descripción */
.highlight {
    color: var(--accent-gold-light);
    font-weight: 600;
    position: relative;
    padding: 0 2px;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.3;
}

/* Mejoras en botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* CTAs para secciones */
.section-cta {
    margin-top: var(--space-xl);
    padding: var(--space-md);
    backdrop-filter: blur(10px);
}

.section-cta .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 300px;
}

.cta-subtext {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
}

/* Responsive para CTAs */
@media (max-width: 768px) {
    .section-cta .btn {
        min-width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .section-cta {
        padding: var(--space-sm);
        margin-top: var(--space-lg);
    }
    
    .cta-subtext {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .section-cta .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .section-cta {
        padding: var(--space-xs);
        margin-top: var(--space-md);
    }
    
    .cta-subtext {
        font-size: 0.85rem;
    }
}

/* Clases utilitarias para centrar */
.text-center-mobile {
    text-align: left;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
    
    .center-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Aplicar a elementos específicos de la descripción */
    .description-text,
    .description-intro,
    .feature-content,
    .extended-item,
    .description-conclusion,
    .full-features h4,
    .feature-tag {
        text-align: center;
    }
}

/* ... código existente ... */

/* ===== WHATSAPP POPUP - MEJORADO ===== */
.whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.whatsapp-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(135deg, var(--bg-sand) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-xl);
    padding: var(--space-lg);
    max-width: 450px;
    width: 100%;
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-dark);
    border: 2px solid var(--accent-gold);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center; /* Agregado para centrar todo el contenido */
}

/* Botón de cerrar */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(212, 165, 94, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: var(--accent-gold);
    color: var(--text-white);
    transform: rotate(90deg);
}

/* Icono */
.popup-icon {
    text-align: center;
    margin-bottom: var(--space-md);
}

.popup-icon i {
    font-size: 4rem;
    color: #075E54; /* Verde WhatsApp más oscuro */
    background: rgba(255, 255, 255, 0.05);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #075E54; /* Borde más oscuro */
}

/* Texto del popup */
.popup-text {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding: 0;
}

/* Contenedor de acciones - MEJORADO */
.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto; /* Centra el contenedor */
}

/* Botones CTA - MEJORADOS */
.popup-cta {
    background: #075E54; /* Verde WhatsApp oscuro */
    color: white;
    border: none;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.popup-cta:hover {
    background: #054C43; /* Verde aún más oscuro al hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(7, 94, 84, 0.4);
}

.popup-close-btn {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-md);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-close-btn:hover {
    background: var(--accent-gold);
    color: var(--text-white);
}

/* ===== WHATSAPP FLOAT BUTTON - COLOR MÁS OSCURO ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #075E54; /* Verde WhatsApp oscuro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(7, 94, 84, 0.5);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid white;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #054C43; /* Verde más oscuro al hover */
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(7, 94, 84, 0.7);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(7, 94, 84, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(7, 94, 84, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(7, 94, 84, 0.5);
    }
}

/* Responsive para popup */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .popup-content {
        padding: var(--space-md);
        max-width: 90%;
    }
    
    .popup-icon i {
        font-size: 3.5rem;
        width: 85px;
        height: 85px;
    }
    
    .popup-content h3 {
        font-size: 1.6rem;
    }
    
    .popup-text {
        font-size: 0.95rem;
    }
    
    /* Asegurar que los botones estén centrados en móvil */
    .popup-actions {
        max-width: 100%;
        width: 100%;
        align-items: center;
    }
    
    .popup-cta,
    .popup-close-btn {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

/* Para prevenir scroll cuando el popup está abierto */
body.whatsapp-popup-open {
    overflow: hidden;
}