/* =========================================
   VARIABLES DE LUJO (VERDE & ORO)
   ========================================= */
   
:root {
    --bg-dark: #064E3B;        /* Verde Bosque Profundo */
    --bg-darker: #022c22;      /* Verde casi negro */
    --bg-card: rgba(6, 78, 59, 0.6); /* Cristal Verde */
    
    /* ORO (Gradient Metálico) */
    --gold-main: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 45%, #D4AF37 100%);
    --gold-glow: 0 0 25px rgba(212, 175, 55, 0.3);
    
    /* Textos */
    --text-main: #F0FDF4;      /* Blanco Menta */
    --text-muted: #A7F3D0;     /* Verde Pálido */
    
    /* Tipografía */
    --font-heading: 'Cinzel', serif; 
    --font-body: 'Outfit', sans-serif;
    
    --glass-border: 1px solid rgba(212, 175, 55, 0.3);
    --container: 1100px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* TEXTURA DE RUIDO (Efecto Papel Premium GLOBAL) */
body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    
    /* Tu imagen de ruido SVG */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    
    pointer-events: none; /* IMPRESCINDIBLE: Permite hacer clic a través del ruido */
    
    /* CAMBIOS CLAVE AQUÍ ABAJO: */
    z-index: 1; /* Lo ponemos ENCIMA de todo, no debajo */
    opacity: 0.4;  /* Controla la intensidad del grano aquí (0.1 a 1) */
    mix-blend-mode: overlay; /* Hace que el ruido se fusione con los colores en vez de taparlos */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 25px; }
.section-padding { padding: 100px 0; }

/* CLASES DE UTILIDAD */
.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-white { color: white !important; }
.center-margin { text-align: center; margin-bottom: 50px; }

/* =========================================
   COMPONENTES: BOTONES & TARJETAS
   ========================================= */

/* Botón Oro Sólido */
.btn-gold {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gold-gradient);
    color: var(--bg-darker);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #FCF6BA;
    box-shadow: var(--gold-glow);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.full-width { width: 100%; font-size: 18px; margin-top: 20px; }

/* Botón Borde Oro */
.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: white;
}

/* Glass Card */
.card {
    background: var(--bg-card);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 4px;
    transition: 0.4s;
}
.card:hover {
    transform: translateY(-5px);
    background: rgba(6, 78, 59, 0.8);
    border-color: var(--gold-main);
}

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(2, 44, 34, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    z-index: 1000;
    padding: 20px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: white; }
.logo span { color: var(--gold-main); }

.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 0.9rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--gold-main); }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--gold-main); cursor: pointer; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: grayscale(100%) sepia(50%) hue-rotate(70deg) brightness(0.6);
    z-index: -1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--bg-dark) 90%);
    z-index: -1;
}
.hero h1 { font-size: 4rem; margin-bottom: 25px; }
.hero p {
    font-size: 1.3rem; color: var(--text-muted);
    max-width: 750px; margin: 0 auto 40px; font-weight: 300;
}
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
/*  */
/* =========================================
   MEDIA QUERY: HERO RESPONSIVE (CORREGIDO)
   ========================================= */
@media (max-width: 768px) {
    
    .hero {
        min-height: auto; /* Altura automática según contenido */
        /* Reducimos un poco el padding vertical para ganar espacio */
        padding-top: 110px; 
        padding-bottom: 60px;
        /* IMPORTANTE: Evita que nada se salga horizontalmente */
        overflow-x: hidden; 
        width: 100%;
    }

    .hero .container {
        /* Aseguramos que el contenedor tenga márgenes seguros */
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    .hero h1 {
        /* Tamaño seguro y ajuste de palabras largas */
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 20px;
        word-wrap: break-word; /* Rompe la palabra si es muy larga */
        overflow-wrap: break-word;
        padding: 0; /* Quitamos padding extra que puede causar desborde */
    }

    .hero p {
        font-size: 1rem;
        padding: 0; /* Quitamos padding lateral extra */
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0; /* Eliminamos el padding aquí para evitar sumas de ancho */
        align-items: center; /* Centra los botones */
    }

    /* Estilo de los botones en móvil */
    .hero-buttons .btn-gold, 
    .hero-buttons .btn-outline {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* Evita que crezca más de la cuenta */
        display: block; 
        text-align: center;
        /* IMPORTANTE: Incluye el padding y borde dentro del ancho total */
        box-sizing: border-box; 
        margin: 0;
    }
}

/* =========================================
   ESTADÍSTICAS
   ========================================= */
.stats-bar {
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px;
    background: var(--bg-darker); padding: 60px 0;
    border-top: var(--glass-border); border-bottom: var(--glass-border);
    text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: var(--gold-main); margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   SERVICIOS
   ========================================= */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 20px; }
.section-subtitle {
    text-align: center; color: var(--text-muted); margin-bottom: 60px;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.service-card i { font-size: 2.5rem; color: var(--gold-main); margin-bottom: 20px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   PRODUCTIVIDAD IA
   ========================================= */
.tools-section { background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker)); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tool-item {
    background: rgba(255,255,255,0.03); padding: 25px;
    border-left: 2px solid var(--gold-main); transition: 0.3s;
}
.tool-item:hover { background: rgba(255,255,255,0.06); }
.tool-item h4 { color: white; margin-bottom: 5px; font-family: var(--font-heading); }
.tool-item span { font-size: 0.8rem; color: var(--gold-main); text-transform: uppercase; }
.tool-item p { font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; }

/* =========================================
   RECURSOS (Lead Magnet)
   ========================================= */
.resources-box {
    background: linear-gradient(135deg, rgba(6,78,59,0.9), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-attachment: fixed;
    padding: 80px 40px; border: var(--glass-border);
    text-align: center; border-radius: 4px;
}
.checklist { display: inline-block; text-align: left; margin: 30px 0; }
.checklist li { margin-bottom: 10px; color: var(--text-main); }
.checklist li i { color: var(--gold-main); margin-right: 10px; }


/*  */
/* =========================================
   SECCIÓN APP MÚSICA
   ========================================= */

/* Tarjeta específica para destacar la App */
.music-feature-card {
    position: relative;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid var(--gold-main); /* Borde dorado más visible */
    background: linear-gradient(180deg, rgba(6,78,59,0.7) 0%, rgba(2,44,34,0.9) 100%);
    overflow: hidden;
}

/* Icono gigante de fondo (decoración) */
.music-bg-icon {
    position: absolute;
    top: -30px;
    right: -20px;
    font-size: 15rem;
    color: var(--gold-main);
    opacity: 0.03;
    transform: rotate(15deg);
    pointer-events: none;
}

/* Contenedor del icono principal */
.music-icon-wrapper {
    font-size: 4rem;
    color: var(--gold-main);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

/* Animación personalizada para el disco (giro lento) */
.fa-spin-slow {
    animation: fa-spin 8s infinite linear;
}

/* Ajustes responsive para esta sección */
@media (max-width: 768px) {
    .music-feature-card {
        padding: 30px 20px;
    }
    .music-bg-icon {
        font-size: 10rem;
    }
}

/* =========================================
   FORMULARIO (MODIFICADO)
/* =========================================
   FORMULARIO CON RELIEVE 3D
   ========================================= */
.formulario {
    max-width: 600px; 
    margin: 0 auto; 
    
    /* Tu color base */
    background: #084f3c; 
    
    padding: 50px; 
    border-radius: 20px; /* Bordes redondeados son necesarios para el relieve */

    /* --- AQUÍ ESTÁ LA MAGIA DEL RELIEVE --- */
    box-shadow: 
        /* 1. Sombra profunda abajo (Eleva la tarjeta) */
        0 20px 40px rgba(0, 0, 0, 0.6),
        /* 2. Sombra verde difusa (Ambiente) */
        0 0 20px rgba(8, 79, 60, 0.4),
        /* 3. Luz interior arriba (Bisel/Brillo) */
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        /* 4. Sombra interior abajo (Profundidad) */
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);

    /* Borde sutil: Claro arriba, oscuro abajo */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

/* Campos de texto: Efecto "Hundido" (Inset) */
.input-field {
    width: 100%; 
    padding: 15px; 
    margin-bottom: 20px;
    
    /* Fondo ligeramente más oscuro para dar sensación de hueco */
    background: rgba(0, 0, 0, 0.2); 
    
    color: white; 
    font-family: var(--font-body); 
    outline: none; 
    border-radius: 8px;
    border: none; /* Quitamos borde normal para usar sombras */

    /* Sombra interna para hundir el elemento */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), 
                inset -1px -1px 0 rgba(255, 255, 255, 0.1);
    
    transition: all 0.3s ease;
}

/* Al hacer clic, se "ilumina" el hueco */
.input-field:focus { 
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6), 
                0 0 5px var(--gold-main); /* Resplandor dorado */
}

.input-field::placeholder { color: rgba(255, 255, 255, 0.4); }

.select-field option { background-color: #064E3B; color: #fff; }
/* =========================================
   LEAD MAGNETS (GRID)
   ========================================= */
#lead-magnets { position: relative; overflow: hidden; }
.magnets-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px; margin-top: 20px;
}
h2.section-title.center-margin {
  margin-bottom: 60px;
}

.magnet-box {
    background: rgba(6, 78, 59, 0.3); backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.2); padding: 45px 35px;
    border-radius: 4px; text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; min-height: 320px;
}
.magnet-box:hover {
    transform: translateY(-12px); background: rgba(6, 78, 59, 0.7);
    border-color: rgba(218, 165, 32, 0.6);
    box-shadow: 0 20px 60px rgba(218, 165, 32, 0.25);
}
.magnet-icon {
    font-size: 3rem; color: #DAA520; margin-bottom: 25px; transition: all 0.4s ease; display: block;
}
.magnet-box:hover .magnet-icon {
    transform: scale(1.15) rotate(8deg); color: #FFD700;
    filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.5));
}
.magnet-box h3 { font-size: 1.4rem; color: #ffffff; margin-bottom: 18px; font-weight: 500; }
.magnet-box p {
    font-size: 0.95rem; color: rgba(255, 255, 255, 0.7);
    line-height: 1.7; margin-bottom: 25px; flex-grow: 1;
}
.magnet-btn {
    display: inline-block; padding: 14px 30px; font-size: 0.85rem;
    color: #DAA520; background: transparent; border: 1px solid #DAA520;
    border-radius: 3px; text-transform: uppercase; letter-spacing: 1.5px;
    font-weight: 500; transition: all 0.3s ease; margin-top: auto;
}
.magnet-btn:hover {
    background: #DAA520; color: #0a1f1a; border-color: #DAA520;
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(218, 165, 32, 0.4);
}
/* =========================================
   FIX RESPONSIVE: RECURSOS (H2)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Reducimos el tamaño de la fuente solo en esta sección */
    #recursos .section-title {
        font-size: 1.7rem ; /* Forzamos un tamaño más pequeño */
        line-height: 1.2;
        word-wrap: break-word; /* Evita que palabras largas se salgan */
        padding: 0 10px; /* Un poco de margen lateral */
    }

    /* 2. Damos más espacio al texto reduciendo el relleno de la caja */
    .resources-box {
        padding: 40px 20px !important; /* Menos espacio a los lados */
    }
}




/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #011a14; padding: 60px 0 20px;
    border-top: var(--glass-border); text-align: center;
}
.footer-logo { font-family: var(--font-heading); font-size: 2rem; color: white; margin-bottom: 20px; }
.footer-tagline { color: var(--text-muted); }
.footer-links { margin: 30px 0; }
.footer-links a { color: var(--text-muted); margin: 0 15px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-main); }
.copyright { font-size: 0.8rem; color: var(--gold-main) ; margin-top: 40px; }

.social-icons { margin-top: 30px; font-size: 1.5rem; }
.social-link { margin: 0 10px; color: var(--gold-main); }
.social-link:hover { color: white; }

/* =========================================
   SCROLL TOP BUTTON
   ========================================= */
#scrollTopBtn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--gold-main); color: #000;
    width: 45px; height: 45px; border-radius: 50%; border: none;
    cursor: pointer; opacity: 0; transition: 0.3s; z-index: 999;
}
#scrollTopBtn.show { opacity: 1; }

/* =========================================
   ANIMACIONES
   ========================================= */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transform: translateY(40px); animation: fadeInUp 0.7s ease forwards; }
.fade-in:nth-child(1) { animation-delay: 0.15s; }
.fade-in:nth-child(2) { animation-delay: 0.30s; }
.fade-in:nth-child(3) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .magnets-container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
    .magnet-box { padding: 40px 30px; min-height: 300px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .stats-bar { flex-direction: column; gap: 40px; }
    
    .magnets-container { grid-template-columns: 1fr; gap: 20px; }
    .magnet-box { padding: 35px 25px; min-height: auto; }
    .magnet-icon { font-size: 2.5rem; }
}
/* Herramientas */

/* =========================================
   ESTILOS ESPECÍFICOS DE LA PÁGINA HERRAMIENTAS
   ========================================= */

/* --- Wrapper para que la tabla tenga scroll en móvil --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: 4px;
    background: rgba(6, 78, 59, 0.3); /* Fondo sutil */
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Diseño de la Tabla Oro --- */
.gold-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
    min-width: 600px; /* Asegura que no se aplaste en móvil */
}

/* Cabecera de la tabla */
.gold-table thead {
    background: rgba(2, 44, 34, 0.8);
    border-bottom: 2px solid var(--gold-main);
}

.gold-table th {
    padding: 20px;
    text-align: left;
    font-family: var(--font-heading);
    color: var(--gold-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Cuerpo de la tabla */
.gold-table tbody tr {
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gold-table td {
    padding: 18px 20px;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Efecto Hover en filas */
.gold-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05); /* Brillo dorado muy suave */
}

/* Primera columna destacada (Nombre de la herramienta) */
.gold-table td:first-child {
    font-weight: 600;
    color: white;
    font-family: var(--font-heading);
}

/* --- Grid para la sección dividida (Edición y Assets) --- */
.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- Ajuste del CTA Final (Fondo) --- */
.fondo {
    background: linear-gradient(rgba(6, 78, 59, 0.9), rgba(2, 44, 34, 0.95)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    border-top: var(--glass-border);
}

.fondo-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold-main);
}
/* =========================================
   BANNER DE COOKIES
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Oculto abajo inicialmente */
    left: 0;
    width: 100%;
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gold-main);
    padding: 20px;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    bottom: 0; /* Sube y se muestra */
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    color: var(--text-main);
    font-size: 0.9rem;
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/*  */
/* =========================================
   AJUSTE ESPECÍFICO SPAN HERO (PALABRA LARGA)
   ========================================= */
@media (max-width: 500px) {
    .hero h1 .text-gold {
        /* Reduce el tamaño al 80% respecto al resto del título */
        font-size: 0.6em; 
        
        /* Asegura que no se corte extrañamente */
        display: inline-block;
        width: 100%;
        word-wrap: break-word;
        
        /* Opcional: reduce un poco el espacio entre líneas para que quede compacto */
        line-height: 1.1; 
    }
}


/*  */
/* =========================================
   AJUSTE SPAN: "CONOCIMIENTO" (PALABRA LARGA)
   ========================================= */
@media (max-width: 500px) {
    #recursos .section-title .text-gold {
        /* Reduce el tamaño de la palabra dorada un 25% respecto al resto */
        font-size: 0.75em; 
        
        /* Asegura que si sigue siendo larga, se parta o se ajuste */
        display: inline-block;
        word-break: break-word;
        
        /* Un poco de margen para que respire si salta de línea */
        line-height: 1.2;
    }
}
/*  */
        /* --- PROYECTOS --- */
        /* --- PROYECTOS / 3D GRID --- */
.project-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 80px; /* Más espacio entre texto e imagen para que respire */
    align-items: center; 
    margin-bottom: 100px;
    
    /* ESTO ES LO QUE CENTRA TODO Y EVITA QUE SE PEGUE A LOS BORDES */
    max-width: 1000px; 
    margin-left: auto;
    margin-right: auto;
}

.project-image {
    height: 400px;
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Un pequeño borde redondeado queda mejor */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Sombra para dar profundidad */
}

.project-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: 0.5s;
    /* Filtro verde/dorado para mantener tu estética */
    filter: grayscale(100%) sepia(20%) hue-rotate(50deg) brightness(0.8); 
}

.project-grid:hover .project-image img {
    filter: none; /* Al pasar el ratón se ve el color real */
    transform: scale(1.05);
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

/* Ajuste de las estadísticas para que se vean bien alineadas */
.stat-row {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.stat-item h4 { 
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem; 
    font-family: var(--font-body); 
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE: Para que en móvil se ponga uno debajo de otro */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .stat-row {
        justify-content: center;
    }
}

/* SOLUCIÓN GENERAL PARA TODOS LOS TÍTULOS EN MÓVIL */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        word-wrap: break-word;
        padding: 0 15px;
    }
}

/*  */

/* =========================================
/* =========================================
   ESTILOS MICRO-SECCIÓN ATAJO (MODIFICADO)
   ========================================= */
.seccion-atajo {

    background: linear-gradient(180deg, rgba(6,78,59,0.7) 0%, rgba(2,44,34,0.9) 100%);
    
    border-top: 1px solid #333;
    padding: 80px 20px 100px 20px;
    text-align: center;
    overflow: hidden;
    position: relative; /* Para que el z-index funcione */
    z-index: 10; /* Asegura que esté por encima de cualquier capa de fondo */
}
    


/* Contenedor interno: Preparamos la animación */
.contenido-atajo {
    opacity: 0;                /* Invisible al principio */
    transform: translateY(50px); /* Desplazado 50px hacia abajo */
    transition: all 1s ease-out; /* La magia: tarda 1 seg en colocarse suavemente */
}

/* Esta clase se la pondremos con JS cuando sea visible */
.contenido-atajo.visible {
    opacity: 1;                /* Se vuelve visible */
    transform: translateY(0);  /* Vuelve a su sitio original */
}

.contenido-atajo h2 {
    color: white;
    font-size: 1.8rem; /* Un pelín más grande para llenar el nuevo espacio */
    margin-bottom: 30px; /* Más aire entre título y botón */
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
}

/* Estilo del Botón Neón (Igual que antes) */
.boton-neon {
    display: inline-block;
    text-decoration: none;
    background-color: transparent;
    color: #00f2ff;
    border: 2px solid #00f2ff;
    padding: 12px 35px; /* Un poco más grande para acompañar el espacio */
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.boton-neon i { margin-right: 8px; }

.boton-neon:hover {
    background-color: #00f2ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
    transform: scale(1.05);
}

/* RESPONSIVE MÓVIL (Ajustado) */
@media screen and (max-width: 768px) {
    .seccion-atajo {
        padding: 60px 20px 80px 20px; /* En móvil también damos más aire */
    }
    .contenido-atajo h2 {
        font-size: 1.4rem;
    }
}
/* =========================================
   ESTILOS FAQ (PREGUNTAS FRECUENTES)
   ========================================= */
   
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.faq-category {
    color: var(--gold-main); /* Tu color dorado */
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}

.faq-category i { margin-right: 10px; }

/* El Acordeón */
details.faq-item {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item[open] {
    border-color: var(--gold-main);
    background: rgba(212, 175, 55, 0.05); /* Fondo dorado muy sutil al abrir */
}

summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* Flecha personalizada */
summary::after {
    content: '+';
    color: var(--gold-main);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

/* Contenido de la respuesta */
.faq-answer {
    padding: 0 20px 20px 20px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeIn 0.5s ease;
}

/* Ocultar flecha por defecto de navegadores */
summary::-webkit-details-marker { display: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 20px;
    }
}
/*  */
/* =========================================
   ARREGLO GLOBAL PARA MÓVILES (HUECO Y TEXTO)
   ========================================= */

/* 1. ESTO ELIMINA EL HUECO BLANCO A LA DERECHA */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Corta cualquier cosa que se salga por los lados */
}

/* A veces es necesario aplicar esto a todos los elementos para evitar sumas de padding */
* {
    box-sizing: border-box; 
}

/* 2. ESTO HACE QUE EL H1 SE ADAPTE Y NO SEA GIGANTE */
@media screen and (max-width: 768px) {
    
    /* Reducimos el tamaño del título principal */
    h1 {
        font-size: 2.2rem !important; /* Ajusta este número si sigue siendo grande */
        line-height: 1.2;
        word-wrap: break-word; /* Si una palabra es muy larga, la corta para que no rompa el diseño */
    }

    /* Reducimos también los subtítulos h2 por si acaso */
    h2 {
        font-size: 1.8rem !important;
    }

    /* Ajustamos los márgenes laterales del cuerpo para que el texto no pegue al borde */
    body {
        padding-left: 0;
        padding-right: 0;
    }

    /* Si tienes un contenedor principal, asegúrate de que tenga margen */
    main, section, header {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%; /* Asegura que no sea más ancho que la pantalla */
    }
}
