/* ======== CONFIGURACIÓN GLOBAL ======== */
:root {
    --color-primario: #007bff;
    --color-secundario: #f9a826;
    --color-fondo-dark: #0f121a;
    --color-fondo-light: #ffffff;
    --color-fondo-gris: #f8f9fa;
    --color-texto-dark: #e9ecef;
    --color-texto-light: #212529;
    --fuente-principal: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo-light);
    color: var(--color-texto-light);
    line-height: 1.7;
    font-size: 18px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primario);
    text-align: center;
    margin-bottom: 30px;
}

p.section-lead {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 700px;
    margin: -10px auto 40px auto;
}

section {
    padding: 60px 0;
}

/* ======== HERO (SECCIÓN 1) ======== */
.hero {
    background-color: var(--color-fondo-dark);
    color: var(--color-texto-dark);
    padding: 80px 20px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin: 0;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 2rem;
    margin: 15px 0;
    color: var(--color-primario);
    font-weight: 700;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 30px auto;
    opacity: 0.9;
}

/* ======== BOTÓN DE ACCIÓN (CTA) ======== */
.cta-button {
    display: inline-block;
    background-color: var(--color-secundario);
    color: #111;
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(249, 168, 38, 0.3);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 168, 38, 0.5);
}

.cta-subtext {
    display: block;
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.8;
}

/* ======== PROBLEMA (SECCIÓN 2) ======== */
.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--color-fondo-gris);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--color-primario);
    margin-top: 15px;
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 0;
    margin-bottom: 10px;
    object-fit: contain;
}

/* ======== SOLUCIÓN (SECCIÓN 3) ======== */
.solucion {
    background-color: var(--color-fondo-gris);
    text-align: center;
}

.solucion h2 {
    color: #333;
}

.solucion p {
    font-size: 1.2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.quote-box {
    background-color: #ffffff;
    border-left: 5px solid var(--color-primario);
    padding: 30px;
    margin: 40px auto;
    max-width: 700px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
}

.quote-author-image {
    flex-shrink: 0;
}

.quote-content {
    flex: 1; 
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    margin: 0;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    border: 4px solid var(--color-primario);
    object-fit: cover; 
}

/* ======== ★★★ TESTIMONIOS (DISEÑO NUEVO DE TARJETA) ★★★ ======== */
.testimonial-section {
    background-color: var(--color-fondo-gris); /* Fondo gris claro */
}

.testimonial-section h2 {
    color: var(--color-primario);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--color-fondo-light); /* Tarjetas blancas */
    border-radius: 12px;
    padding: 30px 25px; 
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: center; /* ¡CLAVE! Centra todo */
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 15px; /* Espacio entre foto y nombre */
}

.testimonial-author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-texto-light);
    margin: 0;
}

.testimonial-role {
    font-size: 0.9rem;
    font-weight: 400;
    color: #777;
    text-transform: uppercase;
    margin-top: 4px; /* Espacio pequeño entre nombre y rol */
}

.star-rating {
    font-size: 1.2rem;
    color: var(--color-secundario); /* Estrellas amarillas */
    margin: 15px 0;
}

.testimonial-text {
    font-size: 1rem; /* Texto de testimonio normal, no itálico */
    color: #555;
    margin: 0; /* Sin margen inferior */
    line-height: 1.6;
}
/* ======== Fin de cambios en Testimonios ======== */


/* ======== CTA FINAL (SECCIÓN 4) ======== */
.cta-final {
    background-color: var(--color-fondo-dark);
    color: var(--color-texto-dark);
    text-align: center;
}

.cta-final h2 {
    color: #ffffff;
    margin-top: 30px; 
}

.cta-final p {
    max-width: 700px;
    margin: 15px auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-final ul {
    display: inline-block;
    text-align: left;
    max-width: 500px;
    margin: 20px auto 30px auto;
    font-size: 1.1rem;
    list-style-type: '✅  ';
    padding-left: 20px;
}

.cta-final li {
    padding-left: 10px;
    margin-bottom: 10px;
}

.cta-button-final {
    margin-top: 20px;
    transform: scale(1.05);
}

.cta-button-final:hover {
    transform: translateY(-3px) scale(1.05);
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    max-height: 300px; 
    width: auto;
}

/* ======== GARANTÍA ======== */
.guarantee-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
    font-style: italic;
}


/* ======== FOOTER (PIE DE PÁGINA) ======== */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

.disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

/* ======== RESPONSIVE (MÓVILES) ======== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1.hero-title {
        font-size: 2.5rem;
    }
    
    h2.hero-subtitle {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .problema-grid {
        grid-template-columns: 1fr; 
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
        width: 90%;
    }
    
    .quote-box {
        flex-direction: column; 
        text-align: center;
        padding: 20px;
    }
    
    .quote-author-image {
        margin-bottom: 10px;
    }
    
    .author-photo {
        width: 100px;
        height: 100px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}