/* ======== BARRA DE NAVEGACIÓN (MENU) ======== */
.main-nav {
    background-color: rgba(15, 18, 26, 0.95); /* Fondo oscuro semitransparente */
    position: fixed; /* Fijo arriba */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px; /* Tamaño del logo en el menú */
    width: auto;
    display: block;
}

/* Enlaces del menú (Escritorio) */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50; /* Verde brillante al pasar el mouse */
}

/* Botón especial "Comprar" en el menú */
.nav-btn-comprar {
    background-color: #1D6F42;
    padding: 8px 15px;
    border-radius: 4px;
}
.nav-btn-comprar:hover {
    background-color: #145230;
    color: #fff !important;
}

/* Icono Hamburguesa (Oculto en escritorio) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* ======== MEDIA QUERY MENU MÓVIL ======== */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Mostrar hamburguesa en móvil */
    }

    .nav-links {
        display: none; /* Ocultar menú normal */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Justo debajo de la barra */
        left: 0;
        background-color: #0f121a;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        display: flex; /* Mostrar menú cuando se activa */
    }

    .nav-links li {
        margin: 15px 0;
    }
}

/* Ajuste para que el contenido no quede tapado por el menú fijo */
body {
    padding-top: 70px; 
}
/* Pero en la Home, como tenemos imagen de fondo, quitamos ese padding */
body.home-page {
    padding-top: 0;
}

/* ======== 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;
}
/* SOBREESCRIBIR COLOR PRIMARIO PARA EXCEL */
.hero {
    --color-primario: #1D6F42; /* Verde Excel */
}

.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;
}
/* SOBREESCRIBIR COLOR DEL BOTÓN PARA EXCEL */
.cta-button {
    background-color: #1D6F42; /* Verde Excel */
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(29, 111, 66, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #185c37; /* Verde más oscuro */
    box-shadow: 0 8px 20px rgba(29, 111, 66, 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;
}
/* SOBREESCRIBIR COLOR PRIMARIO PARA EXCEL */
.card h3 {
    color: #1D6F42; /* Verde Excel */
}

.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;
}
/* SOBREESCRIBIR COLOR PRIMARIO PARA EXCEL */
.quote-box {
    border-left-color: #1D6F42; /* Verde Excel */
}

.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; 
}
/* SOBREESCRIBIR COLOR PRIMARIO PARA EXCEL */
.author-photo {
    border-color: #1D6F42; /* Verde Excel */
}

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

.testimonial-section h2 {
    color: var(--color-primario);
}
/* SOBREESCRIBIR COLOR PRIMARIO PARA EXCEL */
.testimonial-section h2 {
    color: #1D6F42; /* Verde Excel */
}

.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: 880px;
    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;
    }
}

/* ======== NUEVA SECCIÓN: RECURSOS BLOG ======== */
.resources-section {
    background-color: #F8F9FA; /* ★ CAMBIO: Ahora el fondo es gris claro */
    padding: 80px 0;
}

.resources-section h2 {
    color: #1D6F42; 
    text-align: center;
    margin-bottom: 10px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background-color: #ffffff; /* ★ CAMBIO: Tarjetas blancas para que resalten */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ... (El resto de estilos de imagen y texto se mantiene igual) ... */
.resource-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.resource-content {
    padding: 20px;
}

.resource-content h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-align: left;
}

.resource-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.resource-content h3 a:hover {
    color: #1D6F42; 
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1D6F42;
    text-transform: uppercase;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Ajuste para móviles */
@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: 1fr; 
        padding: 0 10px;
    }
}

/* ======== HERO (SECCIÓN 1) CON IMAGEN DE FONDO ======== */
.hero {
    position: relative; /* <--- ¡IMPORTANTE! Agrega esta línea */

    /* El resto sigue igual */
    background: linear-gradient(
        rgba(15, 18, 26, 0.7), 
        rgba(15, 18, 26, 0.8)
    ),
    url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-texto-dark);
    padding: 100px 20px;
    text-align: center;
}

/* ★ ESTILOS NUEVOS PARA EL LOGO ★ */

/* El contenedor del enlace del logo */
.logo-header-link {
    position: absolute; /* Lo saca del flujo normal para "flotarlo" */
    top: 30px;          /* Distancia desde el borde superior */
    left: 40px;         /* Distancia desde el borde izquierdo */
    z-index: 10;        /* Asegura que esté por encima del overlay oscuro */
    display: block;
}

/* La imagen del logo en sí */
.logo-header-img {
    /* Ajusta este ancho según te guste. Entre 150px y 200px suele estar bien */
    width: 180px; 
    height: auto; /* Mantiene la proporción */
    display: block;
}

/* Ajuste para móviles: Hacemos el logo un poco más pequeño y ajustamos márgenes */
@media (max-width: 768px) {
    .logo-header-link {
        top: 20px;
        left: 20px;
    }
    .logo-header-img {
        width: 140px; /* Más pequeño en celular */
    }
}


/* ======== ESTILOS DEL BANNER DE COOKIES ======== */
.cookie-banner-container {
    position: fixed;
    bottom: -100%; /* Oculto por defecto (fuera de la pantalla) */
    left: 0;
    width: 100%;
    background-color: #222; /* Fondo oscuro */
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999; /* Para que esté siempre encima de todo */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: bottom 0.5s ease-in-out; /* Animación de entrada suave */
}

/* Clase para mostrar el banner (activada por JS) */
.cookie-banner-container.show {
    bottom: 0;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 800px;
}

.cookie-content a {
    color: #4CAF50; /* Verde claro para los enlaces */
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #fff;
}

.cookie-btn {
    background-color: #1D6F42; /* Tu Verde Excel */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.cookie-btn:hover {
    background-color: #145230; /* Verde más oscuro al pasar mouse */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cookie-btn {
        width: 100%; /* Botón ancho completo en celular */
    }
}