:root {
    --primary: #2c7744;
    --secondary: #f9a826;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --light: #f4f4f4;
    --gray: #ecf0f1;
    --text: #333;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Espacio para el header fijo */
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background: #236133;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    height: 70px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: var(--secondary); }

/* Navegación Desktop */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Perfil Usuario en Header */
.user-profile {
    display: none; /* Se activa con JS */
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.logout-btn {
    background: #f1f1f1;
    border: none;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Ocultar hamburguesa en escritorio */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- ESTILOS MÓVIL (Max 768px) --- */
@media (max-width: 768px) {
    
    /* Mostrar icono hamburguesa */
    .mobile-menu {
        display: block;
    }

    /* Estilos del menú desplegable */
    nav {
        position: fixed;       /* FLOTAR sobre el contenido */
        top: 70px;             /* Justo debajo del header */
        left: -100%;           /* ESCONDIDO a la izquierda por defecto */
        width: 100%;
        height: calc(100vh - 70px); /* Ocupa el resto de la altura */
        background: white;     /* Fondo blanco */
        flex-direction: column; /* Elementos verticales */
        justify-content: flex-start;
        padding: 30px 20px;
        transition: 0.3s ease; /* Animación suave */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        overflow-y: auto;      /* Scroll si la pantalla es pequeña */
    }

    /* Clase que añade JS para mostrar el menú */
    nav.active {
        left: 0; /* MOSTRAR menú */
    }

    /* Ajuste de lista para móvil */
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
        gap: 20px;
    }

    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 1.2rem; /* Letra más grande en móvil */
        display: block;
        padding: 10px;
    }

    /* Botones grandes y centrados */
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Perfil usuario móvil */
    .user-profile {
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
    }

    /* Ajustes Generales Móvil */
    h1 { font-size: 2rem; }
    .hero { padding: 40px 0; text-align: center; }
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-col h3 { margin-bottom: 15px; border-bottom: 2px solid var(--secondary); display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; text-decoration: none; }
.copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #888; }

/* --- MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

/* Formularios */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #444; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 1rem;
}
.auth-switch { text-align: center; margin-top: 15px; font-size: 0.9rem; }
.error-message { color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; text-align: center; }

/* --- ESTILOS ESPECÍFICOS DE LA PRIVADA EN GENERAL.CSS --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}:root {
    --primary: #2c7744;
    --secondary: #f9a826;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --light: #f4f4f4;
    --gray: #ecf0f1;
    --text: #333;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Espacio para el header fijo */
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background: #236133;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    height: 70px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: var(--secondary); }

/* Navegación Desktop */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Perfil Usuario en Header */
.user-profile {
    display: none; /* Se activa con JS */
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.logout-btn {
    background: #f1f1f1;
    border: none;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Ocultar hamburguesa en escritorio */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- ESTILOS MÓVIL (Max 768px) --- */
@media (max-width: 768px) {
    
    /* Mostrar icono hamburguesa */
    .mobile-menu {
        display: block;
    }

    /* Estilos del menú desplegable */
    nav {
        position: fixed;       /* FLOTAR sobre el contenido */
        top: 70px;             /* Justo debajo del header */
        left: -100%;           /* ESCONDIDO a la izquierda por defecto */
        width: 100%;
        height: calc(100vh - 70px); /* Ocupa el resto de la altura */
        background: white;     /* Fondo blanco */
        flex-direction: column; /* Elementos verticales */
        justify-content: flex-start;
        padding: 30px 20px;
        transition: 0.3s ease; /* Animación suave */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        overflow-y: auto;      /* Scroll si la pantalla es pequeña */
    }

    /* Clase que añade JS para mostrar el menú */
    nav.active {
        left: 0; /* MOSTRAR menú */
    }

    /* Ajuste de lista para móvil */
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
        gap: 20px;
    }

    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 1.2rem; /* Letra más grande en móvil */
        display: block;
        padding: 10px;
    }

    /* Botones grandes y centrados */
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Perfil usuario móvil */
    .user-profile {
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
    }

    /* Ajustes Generales Móvil */
    h1 { font-size: 2rem; }
    .hero { padding: 40px 0; text-align: center; }
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-col h3 { margin-bottom: 15px; border-bottom: 2px solid var(--secondary); display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; text-decoration: none; }
.copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #888; }

/* --- MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

/* Formularios */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #444; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 1rem;
}
.auth-switch { text-align: center; margin-top: 15px; font-size: 0.9rem; }
.error-message { color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; text-align: center; }

/* --- ESTILOS ESPECÍFICOS DE LA PRIVADA EN GENERAL.CSS --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}