/* ==== VARIABLES Y RESET GLOBALES ==== */
:root {
    --primary-color: #005BFF; /* Azul del logo de TimberID */
    --dark-color: #1d2434;
    --text-color: #333;
    --light-color: #ffffff;
    --bg-light-gray: #f9f9f9;
    --font-family: 'Poppins', sans-serif;
    --success-green: #28a745;
    --danger-red: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    background: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4.5rem 0;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2.3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    display: block;
}

/* ==== BOTÓN CTA (Llamado a la Acción) ==== */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 91, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* ==== 0. NAVBAR ==== */
.navbar {
    background: var(--light-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    width: 150px;
}

.navbar nav a {
    color: var(--text-color);
    font-weight: 600;
    margin-left: 1.5rem;
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.navbar .nav-cta {
    font-size: 0.95rem;
    padding: 8px 20px;
    margin-left: 1.5rem;
    color: var(--light-color) !important; 
    background: var(--primary-color); 
}

.navbar .nav-cta:hover {
    background: #004dcc; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.4);
}

/* Estilo de Hamburguesa (oculto en desktop) */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}


/* ==== 1. HERO ==== */
#hero {
    text-align: center;
    padding: 5rem 0;
    background: #f4f7ff;
}

#hero h1 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#hero .subcopy {
    max-width: 650px;
    margin: 1rem auto 2rem auto;
    font-size: 1.15rem;
    color: #555;
}

#hero .hero-cta {
    font-size: 1.2rem;
}

/* ==== 2. ABOUT ==== */
#about {
    text-align: center;
}
#about .section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: -1.5rem auto 2.5rem auto;
}
.about-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.about-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.about-list .fa-check-circle {
    color: var(--success-green);
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

/* ==== 3. PAIN POINTS ==== */
#pain-points {
    background: var(--bg-light-gray);
}

/* Convertido a Flexbox para centrar la última fila */
.pain-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Esto centra los items */
    gap: 1.5rem;
}

.pain-item {
    background: var(--light-color);
    border: 1px solid #ddd;
    border-left: 5px solid var(--danger-red);
    padding: 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    
    /* Definimos una base y crecimiento para los items */
    flex-basis: 340px; /* Ancho base, ~1/3 del contenedor */
    flex-grow: 1;
    max-width: 380px; /* Evita que crezcan demasiado */
}


/* ==== 4. SOLUTION ==== */
#solution {
    background: var(--light-color);
}
.solution-list {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
}
.solution-list li {
    margin-bottom: 1rem;
    font-weight: 500;
}
.solution-list .fa-check {
    color: var(--success-green);
    margin-right: 0.75rem;
    font-weight: 900;
}

/* ==== 5. CASE STUDY ==== */
#case-study {
    background: var(--bg-light-gray);
    text-align: center;
}
#case-study .location {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}
.comparison-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}
.comparison-card {
    padding: 2.5rem;
    border-radius: 8px;
}
.comparison-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.comparison-card li {
    margin-bottom: 0.5rem;
}
.before {
    background: #fff0f0;
    border: 2px solid var(--danger-red);
}
.before h3 {
    color: var(--danger-red);
}
.after {
    background: #f0fff4;
    border: 2px solid var(--success-green);
}
.after h3 {
    color: var(--success-green);
}

/* ==== 6. FEATURES ==== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-item {
    background: var(--bg-light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.feature-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* ==== CSS NUEVA SECCIÓN MICROHERRAMIENTAS ==== */
#micro-tools {
    background: var(--bg-light-gray); /* Fondo gris claro para alternar */
}

/* --- INICIO DE LA CORRECCIÓN --- */
#micro-tools .section-subtitle {
    text-align: center; /* Centra el texto del subtítulo */
    max-width: 650px;
    /* Aumenta el margen inferior (de 2.5rem a 3.5rem) para más espacio */
    margin: -1.5rem auto 3.5rem auto; 
}
/* --- FIN DE LA CORRECCIÓN --- */

/* Reutiliza .features-grid (definido arriba) para la cuadrícula */

.tool-item { /* Estilo de tarjeta para las herramientas */
    background: var(--light-color); /* Tarjeta blanca */
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Sombra suave */
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px); /* Efecto hover sutil */
}

.tool-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tool-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color); /* Título en azul */
}


/* ==== 7. TECH STACK ==== */
#tech-stack {
    background: var(--light-color); /* Fondo blanco para alternar */
    text-align: center;
}
#tech-stack .section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: -1.5rem auto 2.5rem auto;
}
.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.tech-icons span {
    background: #e7f0ff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}
#tech-stack p {
    max-width: 600px;
    margin: 0 auto;
}


/* ==== 8. AUTORIDAD Y CTA FINAL ==== */
#author-cta {
    background: #f4f7ff; 
}
.author-bio {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.author-bio h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: center;
}
.author-bio ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}
.author-bio li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Estilos para el nuevo CTA integrado */
.final-cta-container {
    text-align: center;
    margin-top: 3.5rem; 
}

.final-cta-container h2 {
    color: var(--dark-color);
    font-size: 2.1rem;
    font-weight: 600;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-container .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ==== 9. FINAL CTA (SE ELIMINA) ==== */
/* (Sin estilos) */


/* ==== 10. FOOTER (REDISENADO) ==== */
#footer {
    background: var(--light-color); 
    color: var(--text-color);
    padding: 4.5rem 0;
    border-top: 1px solid #e0e0e0; 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 2.5rem;
}

.footer-col {
    text-align: left;
}

.footer-col.brand .footer-logo img {
    width: 150px; 
    margin-bottom: 1rem;
}

.footer-col.brand .copyright {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-color); 
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}


/* ==== RESPONSIVE DESIGN (Móviles) ==== */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    section { padding: 3rem 0; }
    .container { padding: 0 1.5rem; }

    /* --- INICIO CAMBIOS NAVBAR MÓVIL --- */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        /* Logo y hamburguesa en fila */
        flex-direction: row; 
        gap: 1rem;
    }

    /* Mostramos el botón de hamburguesa */
    .hamburger-menu {
        display: block; 
    }

    /* Ocultamos la navegación por defecto */
    .navbar nav {
        display: none;
        position: absolute;
        top: 70px; /* Alto aproximado del navbar */
        left: 0;
        width: 100%;
        background: var(--light-color);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    /* Clase que JS añadirá para mostrar el menú */
    .navbar nav.is-active {
        display: flex;
    }

    .navbar nav a {
        margin: 0;
        padding: 1rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar nav a:last-child {
        border-bottom: none;
    }

    /* Mostramos el botón CTA dentro del menú móvil */
    .navbar .nav-cta {
        display: inline-block;
        width: calc(100% - 3rem); /* Ancho completo con padding */
        margin: 1rem 1.5rem;
    }
    /* --- FIN CAMBIOS NAVBAR MÓVIL --- */


    .comparison-wrapper {
        grid-template-columns: 1fr;
    }

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

    .final-cta-container .cta-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col.brand .footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }
}