/* =========================================
   1. VARIABLES Y RESETEO GLOBAL
   ========================================= */
:root {
    --deep-forest-calm: #4E6C50;
    --soft-clay-blush: #D5B8A6;
    --stone-whisper-grey: #F5F5F0;
    --text-color: #333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Serif Pro', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Aumentamos de 100px a 120px para dar más espacio y que el header no tape el título */
    scroll-padding-top: 120px; 
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--stone-whisper-grey);
    line-height: 1.7;
    font-weight: 300;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--deep-forest-calm);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; }
p { margin-bottom: 1rem; }

/* =========================================
   2. HEADER Y NAVEGACIÓN (Escritorio)
   ========================================= */
.main-header {
    background: transparent;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 50px;
    width: auto;
    display: block;
    transition: height 0.4s ease;
}

.main-header.scrolled .logo-link img {
    height: 40px;
}

/* Menú de escritorio */
nav.main-nav a {
    text-decoration: none;
    color: var(--deep-forest-calm); 
    margin-left: 2.5rem;
    padding-bottom: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    text-shadow: none;
}

.main-header:not(.scrolled) nav.main-nav a {
    color: var(--deep-forest-calm);
    text-shadow: none;
}

nav.main-nav a:hover {
    border-color: var(--soft-clay-blush);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* =========================================
   3. SECCIONES PRINCIPALES (Home)
   ========================================= */

/* Hero Section con Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: white;
    overflow: hidden;
}
.video-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
.video-background video {
    width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
.hero-content { max-width: 700px; }
.hero h1 { color: white; }

/* Botón CTA General */
.cta-button {
    display: inline-block;
    background-color: var(--deep-forest-calm);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #3e5640;
    transform: translateY(-3px);
}

/* Animaciones Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CONTROL MAESTRO DE ESPACIADO (Aquí unificamos todo) --- */

/* Escritorio: 5rem (80px) es un estándar elegante */
.feature-section, 
.philosophy-section, 
.testimonials-section, 
.blog-preview-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    margin: 0;
}

.subtitle {
    max-width: 700px; margin: 0 auto 3rem auto;
    text-align: center; font-size: 1.1rem;
}

/* --- Feature Section (Fix Móvil Definitivo) --- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.2s ease, 
                border-color 0.2s ease;
    
    /* ESCRITORIO: Cursor normal (flecha), no mano */
    cursor: default; 
    
    -webkit-tap-highlight-color: transparent;
    outline: none; 
}

/* --- EFECTO ACTIVACIÓN (GLOBAL - SOLO HOVER/ACTIVE) --- */
/* Nota: Hemos quitado :focus de aquí para que NO se active al hacer click en PC */
.feature-item:hover,
.feature-item:active {
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(78, 108, 80, 0.2); 
    border-color: rgba(78, 108, 80, 0.4);
}

/* Caja del Icono */
.icon-box {
    width: 70px; height: 70px;
    margin: 0 auto 1.5rem auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: var(--stone-whisper-grey);
    color: #888;
    transition: all 0.2s ease;
}

.icon-box svg { width: 32px; height: 32px; }

/* El icono cambia de color al pasar el ratón */
.feature-item:hover .icon-box,
.feature-item:active .icon-box {
    background-color: var(--deep-forest-calm);
    color: white;
    transform: scale(1.1);
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem; margin-bottom: 1rem; color: var(--text-color);
}

.feature-item p {
    font-size: 1rem; color: #666; line-height: 1.6;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-item {
        padding: 2rem;
    }
}


/* --- ESTILO NIKE FULL WIDTH (Texto Centrado) --- */
.nike-section {
    width: 100%; padding: 0 !important; margin: 0 !important;
    background-color: #111;
}
.nike-banner {
    display: block; position: relative; width: 100%;
    height: 85vh; /* Altura elegante */
    min-height: 600px; text-decoration: none; overflow: hidden;
}
.nike-banner img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    display: block; transition: transform 0.7s ease;
}
.nike-banner:hover img { transform: scale(1.03); }
.nike-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; background: rgba(0,0,0,0.35); padding: 20px; transition: background 0.3s ease;
}
.nike-banner:hover .nike-overlay { background: rgba(0,0,0,0.25); }
.nike-overlay h2 {
    font-family: var(--font-heading); font-size: 3.5rem; color: white;
    margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nike-overlay p {
    color: rgba(255,255,255,0.95); font-size: 1.3rem; max-width: 700px;
    margin-bottom: 2rem; text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.nike-button {
    background-color: white; color: black; padding: 1rem 2.5rem;
    border-radius: 30px; font-weight: 600; font-size: 1rem; text-transform: uppercase;
    letter-spacing: 1px; display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.nike-banner:hover .nike-button { transform: translateY(-3px); background-color: #f2f2f2; }


/* Testimonials Section (Con estrellas doradas) */
.testimonials-section { 
    background-color: white; 
    /* Eliminamos el padding-top manual para que use la regla maestra */
}
.testimonial-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 3rem;
}
.testimonial-card {
    background: var(--stone-whisper-grey); padding: 2rem;
    border-radius: 5px; border-top: 4px solid var(--soft-clay-blush);
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.testimonial-card p { margin-bottom: 1.5rem; font-style: italic; }
.testimonial-footer {
    display: flex !important; flex-direction: row !important;
    justify-content: space-between !important; align-items: center !important;
    border-top: 1px solid rgba(0,0,0,0.05); padding-top: 1rem; margin-top: auto; width: 100%;
}
.author { font-weight: bold; color: var(--deep-forest-calm); font-size: 0.95rem; flex-shrink: 0; }
.stars { color: #FFD700 !important; font-size: 1.2rem; letter-spacing: 2px; line-height: 1; display: inline-block; }

/* Blog Preview (Estilo Nike) */
.blog-preview-section { background-color: white; }

.article-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; 
}

.article-card { 
    position: relative; 
    display: block; 
    width: 100%; 
    aspect-ratio: 3/4; 
    border-radius: 12px; 
    overflow: hidden; /* Esto recorta la imagen en las esquinas */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}

/* --- CORRECCIÓN VISUAL --- */
/* El enlace se comporta como un fondo absoluto para no crear bordes blancos */
.img-link-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Queda por detrás del texto pero por delante del fondo */
    display: block;
}

.img-link-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.7s ease; 
    display: block;
}

/* Ajustamos el hover para que funcione aunque la imagen esté dentro del link */
.article-card:hover .img-link-wrapper img { 
    transform: scale(1.05); 
}

.article-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none; 
    z-index: 2; /* Sombra por encima de la imagen */
}

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; 
    z-index: 3; /* Texto por encima de todo */
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    pointer-events: none; /* TRUCO: Permite que los clicks en el área vacía pasen a la imagen */
}

.article-card h3 { 
    font-family: var(--font-heading); font-size: 1.8rem; color: white; margin: 0;
    line-height: 1.1; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-card .btn-blog { 
    background-color: white; color: black; text-decoration: none; font-weight: 600; 
    font-size: 0.9rem; padding: 0.7rem 1.5rem; border-radius: 30px; 
    transition: background-color 0.3s, transform 0.2s; display: inline-block;
    pointer-events: auto; /* Reactivamos el click para el botón específico */
}

.article-card .btn-blog:hover { background-color: #f2f2f2; transform: translateY(-2px); }

/* Philosophy & Footer */
.philosophy-section { background-color: white; text-align: center; }
.philosophy-section p { max-width: 700px; margin: 0 auto; font-size: 1.2rem; }
.main-footer { background-color: var(--deep-forest-calm); color: var(--stone-whisper-grey); text-align: center; padding: 2rem 0; }


/* =============================================================
   4. ESTILOS PÁGINAS DE GUÍAS (Escritorio / Por Defecto)
   ============================================================= */

/* Fondos específicos */
.latte-hero { background-image: url('https://images.unsplash.com/photo-1536256263959-770b48d82b0a?q=80&w=1200&auto=format&fit=crop') !important; }
.mind-hero { background-image: url('https://images.unsplash.com/photo-1512413914633-b5043f4041ea?q=80&w=1200&auto=format&fit=crop') !important; }
.kit-hero { 
    background-image: url('https://images.unsplash.com/photo-1582793988951-9aed5509eb97?q=80&w=1400&auto=format&fit=crop') !important; 
    background-position: center 40% !important; 
}

/* Estructura de Guía para Escritorio */
.guide-hero {
    position: relative !important; width: 100% !important; height: 60vh !important;
    margin-top: 80px !important; display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; text-align: center !important;
    background-image: url('https://images.unsplash.com/photo-1563822249548-9a72b6353cd1?q=80&w=1200&auto=format&fit=crop');
    background-size: cover !important; background-position: center !important; color: white !important;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4) !important; z-index: 1;
}

.guide-hero-content { position: relative; z-index: 2; padding: 0 20px; }
.guide-hero-content h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: 3.5rem !important; color: white !important; margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.tag { 
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; 
    color: white; display: block; margin-bottom: 1rem; 
}

/* Tarjeta de Contenido */
.container-narrow {
    position: relative !important; z-index: 10 !important;
    max-width: 800px !important; margin: -60px auto 4rem auto !important;
    background-color: white !important; padding: 4rem !important;
    border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.intro-text {
    font-size: 1.3rem !important; line-height: 1.8 !important; text-align: center !important;
    color: #555 !important; margin-bottom: 3rem; font-style: italic;
}
.requirements-box {
    background: #f8f8f8 !important; padding: 2rem !important;
    border-left: 4px solid #4E6C50 !important; margin-bottom: 3rem;
}

/* Pasos (Layout Escritorio: Lado a Lado) */
.step-item {
    display: flex !important; flex-direction: row !important;
    align-items: flex-start !important; gap: 2rem !important;
    margin-bottom: 2rem !important; padding-bottom: 2rem !important;
    border-bottom: 1px solid #eee !important;
}
.step-number {
    font-family: 'Playfair Display', serif !important; font-size: 3.5rem !important;
    color: #D5B8A6 !important; line-height: 0.8 !important; font-weight: bold;
    min-width: 70px !important;
}
.step-info h3 {
    font-size: 1.4rem !important; color: #333 !important;
    margin-top: 0 !important; margin-bottom: 0.5rem !important;
}

/* Botón de Compra Centrado */
.guide-cta {
    text-align: center !important; margin-top: 4rem !important;
    padding-top: 3rem !important; border-top: 1px solid #eee !important;
    width: 100% !important;
}
.guide-cta .cta-button {
    display: inline-block !important; width: auto !important; min-width: 250px;
}


/* =========================================
   5. VERSIÓN MÓVIL (Overrides)
   ========================================= */
@media (max-width: 768px) {

    /* A. Control Maestro de Espaciado MÓVIL */
    .feature-section, 
    .philosophy-section, 
    .testimonials-section, 
    .blog-preview-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* B. Ajustes generales */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .features { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature-item { padding: 2rem; }
    .hero { height: 90vh; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-card:nth-child(n + 4) { display: none; }

    /* C. Ajustes Banner Kit Nike Móvil */
    .nike-banner { height: 60vh; }
    .nike-overlay h2 { font-size: 2.5rem; }
    .nike-overlay p { font-size: 1.1rem; }

    /* D. Menú Hamburguesa y Navegación Lateral */
    .hamburger { 
        display: flex; flex-direction: column; justify-content: space-around; 
        width: 30px; height: 25px; z-index: 101; 
    }
    .hamburger span { 
        width: 100%; height: 3px; background-color: white; border-radius: 5px; 
        transition: all 0.3s ease-in-out; 
    }
    .main-header.scrolled .hamburger span, .hamburger.active span { 
        background-color: var(--deep-forest-calm); 
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .main-nav {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background-color: #FAFAF8; display: flex; flex-direction: column;
        align-items: stretch; justify-content: flex-start; padding: 6rem 2rem;
        z-index: 99; transition: right 0.4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }
    .main-nav.active { right: 0; }

    .main-nav a:not(.cta-button-nav) {
        text-align: left; font-size: 1.4rem !important; color: #333 !important;
        text-shadow: none !important; margin: 0 0 1.5rem 0 !important;
        margin-left: 0 !important; padding: 0; border: none; background: transparent !important;
        display: flex !important; justify-content: space-between; align-items: center; width: 100%;
    }
    .main-nav a:not(.cta-button-nav)::after {
        content: '\203A'; font-size: 2rem; font-weight: 300; line-height: 1rem; color: #999;
    }
    .main-nav a.cta-button-nav { display: none !important; }

    /* E. Carrusel Blog "Nike Style" */
    .article-grid {
        display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
        gap: 15px !important; overflow-x: auto !important; overflow-y: hidden;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        width: calc(100% + 40px) !important; margin-left: -20px !important;
        padding-left: 20px !important; padding-right: 20px !important; padding-bottom: 30px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .article-grid::-webkit-scrollbar { display: none; }
    
    .article-card {
        min-width: 80vw !important; width: 80vw !important; flex: 0 0 auto !important;
        scroll-snap-align: center; margin: 0 !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    }

    /* F. FIX PARA GUÍAS EN MÓVIL */
    .container-narrow {
        padding: 2rem 1.5rem !important; margin-top: -40px !important;
        width: 92% !important; margin-left: auto !important; margin-right: auto !important;
    }
    .step-item {
        flex-direction: column !important; align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    .step-number { font-size: 3rem !important; margin-bottom: 0 !important; }
    .intro-text { font-size: 1.1rem !important; text-align: left !important; }
    .guide-hero-content h1 { font-size: 2.2rem !important; }
    .guide-hero { height: 50vh !important; }
    .requirements-box { padding: 1.5rem !important; margin-bottom: 2rem !important; }
}

/* =========================================
   6. NEWSLETTER POPUP
   ========================================= */
.newsletter-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: white;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 900;
    border-left: 5px solid var(--deep-forest-calm);
    
    /* Estado inicial: Oculto y desplazado */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.newsletter-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: #999;
}

.news-tag {
    font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--soft-clay-blush); font-weight: bold;
}

.newsletter-card h3 {
    font-family: var(--font-heading); font-size: 1.8rem;
    margin: 0.5rem 0; color: var(--deep-forest-calm);
}

.newsletter-card p { font-size: 0.95rem; line-height: 1.5; color: #666; }

.news-form { display: flex; gap: 0.5rem; margin-top: 1rem; }

.news-form input {
    flex: 1; padding: 0.8rem; border: 1px solid #ddd;
    border-radius: 4px; outline: none; font-family: var(--font-body);
}

.news-form button {
    background: var(--deep-forest-calm); color: white;
    border: none; padding: 0 1.2rem; border-radius: 4px;
    cursor: pointer; font-weight: 500; transition: background 0.3s;
}

.news-form button:hover { background: #3e5640; }
.news-footer { font-size: 0.8rem !important; margin-top: 1rem; color: #aaa !important; margin-bottom: 0; }

@media (max-width: 480px) {
    .newsletter-card {
        width: 90%; left: 5%; right: 5%; bottom: 20px;
        padding: 2rem 1.5rem;
    }
    .news-form { flex-direction: column; }
    .news-form button { padding: 0.8rem; }
}

/* =========================================
   7. MARQUEE (Texto en movimiento)
   ========================================= */
.marquee-container {
    background-color: var(--deep-forest-calm);
    color: var(--stone-whisper-grey);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* En móvil va un poco más lento para que se lea mejor */
@media (max-width: 768px) {
    .marquee-content span { font-size: 0.9rem; padding: 0 1rem; }
    .marquee-content { animation-duration: 20s; }
}

/* =========================================
   7. ESTILOS PÁGINA DETALLES (Galería Visual Interactiva)
   ========================================= */

.container-wide {
    position: relative !important;
    z-index: 10 !important;
    max-width: 1300px !important; /* AQUÍ ESTÁ LA CLAVE: Más ancho */
    margin: -60px auto 4rem auto !important;
    background-color: white !important;
    padding: 4rem 3rem !important;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* 2. Forzar estrictamente 3 columnas en escritorio */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 COLUMNAS SIEMPRE */
    gap: 2rem; 
    margin-top: 4rem;
}

/* 3. Hacer las tarjetas más altas para que la foto luzca más */
.tool-card {
    position: relative;
    height: 550px; /* AUMENTADO (Antes 450px) */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE (Adaptación a pantallas pequeñas) --- */

/* Tablet (iPad, portátiles pequeños): Pasamos a 2 columnas */
@media (max-width: 1100px) {
    .container-wide {
        max-width: 95% !important;
        padding: 3rem 2rem !important;
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columnas */
    }
    .tool-card {
        height: 450px; /* Un poco más bajas */
    }
}

/* Móvil: Pasamos a 1 columna */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr; /* 1 Columna */
        gap: 1.5rem;
    }
    .tool-card {
        height: 400px;
    }
    .container-wide {
        padding: 2rem 1.5rem !important;
        width: 92% !important;
    }
}
}

/* --- LA IMAGEN DE FONDO --- */
.tool-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el hueco sin deformarse */
    transition: transform 0.6s ease;
}

/* Efecto Zoom en la imagen al pasar el ratón */
.tool-card:hover img {
    transform: scale(1.1);
}

/* --- LA CAPA SUPERPUESTA (OVERLAY) CON EL TEXTO --- */
.tool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 108, 80, 0.92); /* Tu verde corporativo con transparencia */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    
    /* Estado inicial: Oculto */
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Al hacer Hover en la tarjeta, mostramos el overlay */
.tool-card:hover .tool-overlay {
    opacity: 1;
}

/* --- ANIMACIÓN DEL TEXTO --- */
/* El texto se mueve hacia arriba al aparecer */
.tool-overlay .content-wrapper {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-overlay .content-wrapper {
    transform: translateY(0);
}

/* Tipografía dentro del overlay */
.tool-japanese {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #D5B8A6; /* Color beige/dorado para contraste */
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tool-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    width: 100%;
}

.tool-overlay p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9); /* Blanco suave */
    line-height: 1.6;
}

/* Ajuste Móvil: En móvil mostramos el título siempre abajo para saber qué es */
@media (max-width: 768px) {
    .tool-card { height: 350px; }
    
    /* En móvil, hacemos que el hover funcione al tocar (tap) */
    .tool-overlay {
        opacity: 0; /* Mantenemos oculto hasta que toquen */
    }
    .tool-card:active .tool-overlay,
    .tool-card:focus .tool-overlay {
        opacity: 1;
    }
}

/* =========================================
   8. FAQ SECTION (Acordeón)
   ========================================= */
.faq-section {
    background-color: #FAFAF8; /* Un gris muy muy suave para diferenciar sección */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--deep-forest-calm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--soft-clay-blush);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Estado activo (pregunta abierta) */
.faq-question.active .icon {
    transform: rotate(45deg); /* La cruz se convierte en X */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    padding-top: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .faq-question { font-size: 1.1rem; }
}