/* style.css - VERSIÓN FINAL COMPLETA (Iconos Circulares + Colores) */

/* =========================================
   0. IMPORTACIÓN DE FUENTES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   1. RESET Y BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-primario-azul: #007bff; 
    --color-primario-azul-oscuro: #0056b3; 
    --color-secundario-verde: #28a745; 
    --color-secundario-verde-oscuro: #1e7e34; 
    --color-texto-oscuro: #343a40; 
    --color-texto-claro: #6c757d; 
    --color-fondo-claro: #f4f7f6; 
    --color-blanco: #ffffff; 
    --color-borde-claro: #e9ecef;
    --color-footer-bg: #343a40; 
    --color-footer-text: #adb5bd; 
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    color: var(--color-texto-oscuro);
    background-color: var(--color-fondo-claro);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Clases de utilidad */
.highlight-green { color: #00A878; font-weight: 700; }
.highlight { color: var(--color-primario-azul); }
.bold-text { font-weight: 600; }

/* Títulos Base */
.section-main-title { font-size: 2.5em; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.section-small-title { font-size: 1.1em; font-weight: 600; color: var(--color-secundario-verde); letter-spacing: 1px; margin-bottom: 10px; display: block; }
.section-description { font-size: 1.1em; color: var(--color-texto-claro); max-width: 800px; margin: 0 auto 50px auto; }
#offerSmallTitle { font-size: 1.5em; font-weight: 800; margin-bottom: 25px; }

/* =========================================
   2. HEADER
   ========================================= */
header {
    background-color: var(--color-blanco);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 50px; display: block; }

/* Navegación */
nav ul { list-style: none; display: flex; }
nav ul li { margin: 0 20px; }
nav ul li a { text-decoration: none; color: var(--color-texto-oscuro); font-weight: 600; transition: color 0.3s; }
nav ul li a:hover { color: var(--color-primario-azul); }

.header-actions { display: flex; align-items: center; gap: 15px; }

.btn-demo {
    background-color: var(--color-primario-azul); color: white; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: 600; transition: background 0.3s;
}
.btn-demo:hover { background-color: var(--color-primario-azul-oscuro); }

.language-selector { display: flex; align-items: center; }
.language-selector img { width: 26px; margin: 0 5px; opacity: 0.6; cursor: pointer; transition: opacity 0.3s; }
.language-selector img.active-lang { opacity: 1; border: 2px solid #00A878; border-radius: 4px; }

/* Menú Hamburguesa */
.hamburger-menu { display: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-menu .bar { width: 25px; height: 3px; background: #333; margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%); padding: 80px 0; overflow: hidden; }
.hero .container { display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; z-index: 2; }
.hero-content .tagline { font-weight: 700; color: var(--color-texto-claro); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9em; }
.hero-content h1 { font-size: 3.5em; font-weight: 800; line-height: 1.15; margin-bottom: 25px; color: #1a1a1a; }
.hero-content .description { font-size: 1.15em; margin-bottom: 30px; line-height: 1.7; color: #555; }

.btn-demo-free {
    background-color: var(--color-secundario-verde); color: white; padding: 18px 35px;
    border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block;
    box-shadow: 0 5px 0 var(--color-secundario-verde-oscuro); transition: transform 0.1s, box-shadow 0.1s;
    font-size: 1.1em;
}
.btn-demo-free:active { transform: translateY(5px); box-shadow: none; }
.btn-demo-free span { display: block; font-size: 0.75em; font-weight: 400; margin-top: 5px; opacity: 0.9; }

.recommendation { margin-top: 15px; font-size: 0.9em; color: var(--color-texto-claro); font-style: italic; }

.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }
.desktop-mockup { width: 100%; max-width: 550px; position: relative; z-index: 2; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }
.mobile-mockup { position: absolute; width: 140px; bottom: -30px; right: 5%; z-index: 3; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2)); }

/* =========================================
   4. SECCIONES GENERALES & CARDS
   ========================================= */
.features-section, .results-offer-section, .testimonials-section, .steps-section { padding: 100px 0; text-align: center; }
.features-grid, .metrics-grid, .steps-grid, .testimonials-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 50px; }

/* Estilo Base de Tarjetas */
.metric-card, .step-card, .testimonial-card {
    background: white; padding: 40px 30px; border-radius: 16px; flex: 1 1 300px;
    max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
}
.metric-card:hover, .testimonial-card:hover, .step-card:hover { transform: translateY(-10px); }

/* --- FEATURES (Tarjetas con Colores e Iconos Circulares) --- */
.feature-card { 
    background: white; padding: 40px 30px; border-radius: 16px; flex: 1 1 300px;
    max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover { transform: translateY(-10px); }

.feature-icon { 
    width: 80px; 
    height: 80px; 
    object-fit: contain; /* Asegura que la imagen no se deforme */
    margin-bottom: 25px; 
    display: inline-block;
    border-radius: 50%; /* <--- ESTO HACE LOS ICONOS REDONDOS */
    background-color: #f8f9fa; /* Fondo gris suave opcional detrás del icono */
    padding: 10px; /* Espacio interno para que el icono respire */
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.4em; font-weight: 700; }

/* Colores específicos */
.feature-card-1 { border-top: 5px solid var(--color-primario-azul); }
.feature-card-1:hover { box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15); }
.feature-card-1 h3 { color: var(--color-primario-azul); }

.feature-card-2 { border-top: 5px solid var(--color-secundario-verde); }
.feature-card-2:hover { box-shadow: 0 15px 30px rgba(40, 167, 69, 0.15); }
.feature-card-2 h3 { color: var(--color-secundario-verde); }

.feature-card-3 { border-top: 5px solid var(--color-primario-azul-oscuro); }
.feature-card-3:hover { box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15); }
.feature-card-3 h3 { color: var(--color-primario-azul-oscuro); }


/* --- METRICS --- */
.metric-card { text-align: center; border-top: 5px solid var(--color-primario-azul); }
.metric-card h3 { font-size: 3.5em; color: var(--color-primario-azul); margin-bottom: 10px; font-weight: 800; }
.metric-card p { font-weight: 500; color: var(--color-texto-claro); }

/* --- OFFER SECTION --- */
.offer-content { 
    display: flex; gap: 60px; background: white; padding: 60px; 
    border-radius: 20px; align-items: center; text-align: left; 
    margin-top: 60px; box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.offer-image { flex: 1; display: flex; justify-content: center; }
.offer-image img { max-width: 100%; width: 400px; } 

.offer-details { flex: 1.2; }
.offer-details-combined { margin-bottom: 25px; }
.offer-details-title-text { font-size: 1.3em; margin-bottom: 8px; color: var(--color-texto-oscuro); }
.offer-details-description-text { color: var(--color-texto-claro); font-size: 1em; }

.offer-details ul { list-style: none; margin-top: 30px; }
.offer-details ul li { display: flex; align-items: center; margin-bottom: 15px; font-weight: 500; }
.offer-details ul li i { color: var(--color-secundario-verde); margin-right: 15px; font-size: 1.2em; }

/* --- TESTIMONIALS (Fotos Circulares) --- */
.testimonial-card { text-align: left; }
.client-info { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.client-info img { 
    width: 60px; height: 60px; 
    border-radius: 50%; /* <--- YA ESTABA, ASEGURA EL CIRCULO */
    object-fit: cover; 
    border: 3px solid var(--color-fondo-claro); 
}
.client-info div h3 { font-size: 1.1em; margin-bottom: 2px; }
.client-info div p { font-size: 0.9em; color: var(--color-texto-claro); }
.testimonial-rating { color: #f1c40f; margin-bottom: 15px; font-size: 0.9em; }
.testimonial-text { font-style: italic; color: #555; line-height: 1.7; }

/* --- FINAL CTA SECTION --- */
.final-cta-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}
.final-cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0, 52, 102, 0.85); 
    z-index: 1;
}
.final-cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.final-cta-content p#finalCtaPreTitle { color: var(--color-secundario-verde); font-weight: 700; letter-spacing: 2px; margin-bottom: 15px; }
.final-cta-content h2 { font-size: 3em; font-weight: 700; margin-bottom: 40px; line-height: 1.2; color: white; }
.final-cta-small-text { margin-top: 20px; font-size: 0.9em; opacity: 0.8; }

/* --- STEPS SECTION --- */
.step-card { text-align: center; position: relative; }
.step-icon {
    width: 60px; height: 60px; background: var(--color-secundario-verde);
    color: white; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 1.5em;
    margin: 0 auto 25px auto;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* =========================================
   5. FOOTER
   ========================================= */
footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 70px 0 30px; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-column h4, .footer-social h4 { color: white; margin-bottom: 20px; font-size: 1.2em; }
.footer-column ul { list-style: none; } 
.footer-column ul li { margin-bottom: 10px; }
.footer-column a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-column a:hover { color: white; }

.footer-social .social-icons { display: flex; gap: 15px; }
.footer-social a i { 
    font-size: 1.5rem; color: white; width: 40px; height: 40px; 
    background: rgba(255,255,255,0.1); display: flex; align-items: center; 
    justify-content: center; border-radius: 50%; transition: all 0.3s; 
}
.footer-social a:hover i { background: var(--color-primario-azul); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9em; }

/* =========================================
   6. MODALS
   ========================================= */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: white; width: 95%; max-width: 900px; border-radius: 15px; position: relative; padding: 0; overflow: hidden; }
.close-modal { position: absolute; right: 20px; top: 10px; font-size: 30px; cursor: pointer; color: #333; z-index: 10; font-weight: bold; }
.modal-body { width: 100%; }

/* =========================================
   7. RESPONSIVE DESIGN (MÓVIL - CORRECCIÓN TOTAL)
   ========================================= */

@media (max-width: 768px) {
    
    /* --- HEADER --- */
    header { padding: 10px 0; }
    .logo img { height: 35px; } 
    nav, .header-actions .btn-demo { display: none; }
    .hamburger-menu { display: block; }
    .header-actions { margin-right: 50px; } 
    .language-selector { margin-right: 5px; }

    /* MENU DESPLEGABLE */
    nav.active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: white; padding: 20px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee; z-index: 999;
    }
    nav.active ul { flex-direction: column; width: 100%; text-align: center; }
    nav.active ul li { margin: 15px 0; }
    nav.active ul li a { display: block; padding: 10px; font-size: 1.1rem; }

    /* --- HERO --- */
    .hero { padding: 30px 0 50px; text-align: center; }
    .hero .container { flex-direction: column; gap: 30px; }
    .hero-content h1 { font-size: 2em; line-height: 1.3; } 
    .hero-image { width: 100%; transform: none; margin-top: 10px; }
    .desktop-mockup { width: 100%; }
    .mobile-mockup { width: 80px; right: 0; bottom: -10px; }

    /* --- SOLUCIÓN DE TARJETAS (NUCLEAR) --- */
    
    .features-grid, .metrics-grid, .steps-grid, .testimonials-grid { 
        display: flex;
        flex-direction: column; 
        align-items: center; 
        gap: 25px; /* Espacio entre tarjeta y tarjeta */
        margin-top: 30px;
        height: auto !important;
    }

    /* 1. TARJETAS DE SERVICIOS (Texto saliéndose) */
    .feature-card, .step-card, .testimonial-card { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important; 
        
        /* ROMPEMOS LA HERENCIA FLEX DEL ESCRITORIO */
        flex: none !important; 
        display: block !important; 
        
        /* FORZAMOS ALTURA AUTOMÁTICA */
        height: auto !important; 
        min-height: auto !important;
        
        /* Aseguramos que el texto quepa */
        padding: 30px 25px 40px 25px !important; /* Un poco más de espacio abajo */
        box-sizing: border-box !important;
    }
    
    /* Iconos */
    .feature-icon { width: 70px; height: 70px; margin: 0 auto 20px auto; padding: 0; }


    /* 2. TARJETAS DE MÉTRICAS (+200% Gigantes) */
    .metric-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        
        /* ROMPEMOS FLEX Y ALTURA */
        flex: none !important;
        height: auto !important; 
        min-height: 0 !important;
        
        /* Relleno compacto */
        padding: 20px 15px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .metric-card h3 {
        font-size: 2.2em !important; 
        margin-bottom: 5px !important;
        line-height: 1.1 !important;
    }
    .metric-card p {
        font-size: 0.9em !important;
        margin: 0 !important;
    }

    /* --- PROMESA / OFFER --- */
    .offer-content { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 40px 25px !important;
        gap: 30px !important;
        margin-top: 50px;
    }
    .offer-image { width: 100%; margin: 0; }
    .offer-image img { width: 220px; max-width: 100%; }
    .offer-details { width: 100%; }
    .offer-details h3 { font-size: 1.3em; }

    /* FINAL CTA & FOOTER */
    .final-cta-section { padding: 60px 0; }
    .final-cta-content h2 { font-size: 1.8em; margin-bottom: 25px; }

    footer { text-align: center; padding: 40px 0 20px; }
    .footer-content { flex-direction: column; gap: 30px; align-items: center; margin-bottom: 30px; }
    .footer-social .social-icons { justify-content: center; }
}
