/* style.css - Asociación Dignificarte - Versión Final Consolidada */

:root {
    --primary: #FFD700;       /* Oro/Amarillo corporativo */
    --primary-hover: #e6c200;
    --success: #28a745;       /* Verde tienda */
    --success-hover: #218838;
    --dark-bg: #0a0a0a;
    --glass: rgba(0, 0, 0, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
}

/* --- RESET Y BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* BACKGROUND GLOBAL */
    background: 
        linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95)), 
        url('img/fondo-global.jpg') no-repeat center center/cover fixed;
    
    position: relative;
    overflow-x: hidden;
}

/* Textura de ruido sutil */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Ajuste ligero para el Index */
body.index-bg {
    background: 
        linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.85)), 
        url('img/fondo-global.jpg') no-repeat center center/cover fixed !important;
}

/* --- HEADER Y LOGO --- */
header, .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    min-height: 100px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 160px !important;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
}

/* --- NAVEGACIÓN --- */
nav ul, .main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul li a, .main-nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 12px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover, nav ul li a.active { 
    color: var(--primary); 
}

.btn-tienda {
    background-color: var(--success) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    margin-left: 10px;
    font-weight: bold;
}

/* --- SECCIONES DE CONTENIDO --- */
.wrapper { flex: 1; padding: 40px 20px; }

.join-section, .content-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

/* --- FORMULARIOS MODERNOS --- */
.modern-form {
    display: grid;
    gap: 25px;
    margin-top: 30px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* --- BOTONES Y CTA --- */
.cta-container { margin-top: 40px; text-align: center; }

.join-btn {
    display: inline-block;
    background: var(--primary);
    color: #000 !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
footer, .main-footer {
    padding: 60px 20px;
    background: rgba(0,0,0,0.95);
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: auto;
}

/* --- RESPONSIVE MÓVIL (CORRECCIÓN DESAJUSTE) --- */
@media (max-width: 768px) {
    header, .main-header { 
        padding: 10px 15px;
        min-height: 80px; 
    }

    .logo { 
        height: 65px !important; /* Tamaño reducido para móviles */
    }

    .menu-toggle { 
        display: flex; 
        align-items: center;
        justify-content: center;
        background: var(--primary); 
        border: none; 
        width: 42px; 
        height: 42px; 
        border-radius: 8px; 
        cursor: pointer;
    }

    nav.main-nav {
        position: fixed;
        top: 0;
        left: -100%; /* Oculto por defecto */
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    nav.nav-open {
        left: 0; /* Se despliega al activar el menú */
    }

    nav ul, .main-nav ul {
        flex-direction: column;
        padding: 100px 30px;
        gap: 20px;
        align-items: flex-start;
    }

    .join-section { padding: 30px 20px; margin: 20px auto; }
}