@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

:root { 
    --primary: #2F5E48; 
    --secondary: #6FA382; 
    --accent: #E8F3EB;
    --text-dark: #2C3E50; 
    --text-light: #64748b;
    --white: #ffffff; 
    --shadow: 0 10px 30px rgba(47, 94, 72, 0.08);
}

body { background-color: #fcfcfc; color: var(--text-dark); line-height: 1.7; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* =======================================================
   1. REGLAS DE VISIBILIDAD (ESTRICTAS)
   ======================================================= */

.menu-toggle { display: none !important; }
.mobile-admin-link { display: none !important; }
.nav-buttons { display: block !important; }

/* =======================================================
   2. ESTILOS GENERALES (ESCRITORIO)
   ======================================================= */

/* NAVBAR */
.navbar { 
    background: var(--white); 
    height: 80px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 8%; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.04); 
    /* Sticky en PC (opcional pero bueno) */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.logo-img { height: 55px; }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-admin { border: 1px solid var(--text-dark); padding: 10px 25px; border-radius: 50px; color: var(--text-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.btn-admin:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* CONTENIDO */
.about-header { 
    background-color: var(--primary); color: var(--white); 
    text-align: center; padding: 100px 20px; 
    background-image: linear-gradient(135deg, #2F5E48 0%, #244a38 100%);
}
.about-header h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; letter-spacing: 1px; }
.about-header p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; }

.story-section, .mv-section { padding: 80px 10%; background: white; text-align: center; }
.story-content p.long-text { text-align: justify; margin-bottom: 20px; font-size: 1.05rem; color: var(--text-light); max-width: 900px; margin-left: auto; margin-right: auto; }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.mv-card { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); text-align: left; transition: 0.3s; border: none; }
.mv-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(47, 94, 72, 0.12); }
.mv-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.mv-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.5rem; font-weight: 700; }
.mv-card p { color: var(--text-light); font-size: 1rem; }

.objectives-section { background-color: var(--accent); padding: 80px 10%; }
.obj-container { max-width: 1200px; margin: 0 auto; }
.objectives-section h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; text-align: center; font-weight: 700; }
.obj-subtitle { text-align: center; color: var(--text-light); margin-bottom: 50px; font-style: italic; }
.obj-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.obj-list li { display: flex; align-items: flex-start; gap: 15px; font-size: 1rem; color: var(--text-dark); line-height: 1.6; background: var(--white); padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-left: 4px solid var(--secondary); }
.obj-list li i { color: var(--secondary); font-size: 1.3rem; margin-top: 3px; }

.team-section { padding: 100px 10%; background-color: var(--white); text-align: center; }
.section-intro h2 { color: var(--primary); margin-bottom: 15px; font-size: 2.5rem; font-weight: 700; }
.section-intro p { color: var(--text-light); margin-bottom: 60px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; justify-content: center; }
.team-card-mini { background: var(--white); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); cursor: pointer; transition: 0.4s; border: none; }
.team-card-mini:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(47, 94, 72, 0.1); }
.img-mini { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px auto; border: 4px solid var(--accent); }
.img-mini img { width: 100%; height: 100%; object-fit: cover; }
.team-card-mini h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; font-weight: 600; }
.team-card-mini .role { display: block; color: var(--secondary); font-size: 0.95rem; font-weight: 500; margin-bottom: 20px; }
.btn-ver { font-size: 0.85rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* MODALES */
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(30, 50, 40, 0.8); justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: white; width: 90%; max-width: 900px; border-radius: 20px; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.close-btn { position: absolute; top: 20px; right: 25px; font-size: 2rem; cursor: pointer; z-index: 10; color: var(--text-dark); background: rgba(255,255,255,0.8); border-radius: 50%; width: 40px; height: 40px; text-align: center; line-height: 40px; }
.modal-body { display: flex; flex-wrap: wrap; }
.modal-img { flex: 1; min-width: 350px; height: 500px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-text { flex: 1.5; padding: 60px; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.modal-text h2 { color: var(--primary); margin-bottom: 5px; font-size: 2rem; font-weight: 700; }
.modal-text .modal-role { color: var(--secondary); margin-bottom: 20px; font-weight: 500; font-size: 1.1rem; display: block; }
.modal-text hr { border: 0; height: 2px; background: var(--accent); margin-bottom: 20px; }
.modal-text p { color: var(--text-light); margin-bottom: 15px; font-size: 1rem; }

footer { background-color: var(--primary); color: var(--white); padding: 70px 10%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; font-size: 0.95rem; border-top: 5px solid var(--secondary); }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { margin-bottom: 25px; color: var(--secondary); font-size: 1.1rem; text-transform: uppercase; font-weight: 600; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.85); margin-bottom: 12px; display: block; text-decoration: none; }
.footer-col a:hover { color: var(--white); padding-left: 8px; color: var(--secondary); }
.socials a { display: inline-block; font-size: 1.4rem; margin-right: 20px; color: var(--white); opacity: 0.8; transition: 0.3s; background: transparent; width: auto; height: auto; line-height: normal; border-radius: 0; text-align: left; }
.socials a:hover { opacity: 1; color: var(--secondary); transform: translateY(-3px); background: transparent; padding-left: 0; }

/* =======================================================
   3. MEDIA QUERIES (SÓLO PARA CELULAR) - BARRA FIJA
   ======================================================= */

@media (max-width: 900px) {
    /* Navbar FIJA para que te acompañe al bajar */
    .navbar { 
        position: fixed !important; 
        top: 0; 
        left: 0; 
        width: 100%; 
        background-color: var(--white);
        z-index: 2000; 
        padding: 0 20px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Compensar altura de la barra fija */
    body { padding-top: 80px; }

    /* Visibilidad Botones */
    .menu-toggle { display: block !important; font-size: 1.8rem; cursor: pointer; color: var(--primary); }
    .nav-buttons { display: none !important; }
    .mobile-admin-link { display: block !important; margin-top: 15px; }
    .mobile-admin-link a { border: 2px solid var(--primary); padding: 8px 20px; border-radius: 50px; color: var(--primary) !important; font-weight: 700; }

    /* Menú Desplegable FIJO */
    .nav-links {
        display: none; 
        position: fixed; /* Se fija debajo de la barra */
        top: 80px; 
        left: 0; width: 100%;
        background-color: var(--white);
        flex-direction: column; align-items: center; padding: 30px 0; gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); z-index: 1000; border-top: 1px solid #eee;
        overflow-y: auto; max-height: 80vh;
    }
    .nav-links.active { display: flex !important; }

    /* MODALES RESPONSIVAS */
    .modal-content {
        width: 95%; /* Casi todo el ancho */
        max-height: 90vh; 
        overflow-y: auto; 
        display: flex; flex-direction: column;
    }
    .modal-body { flex-direction: column; }
    
    .modal-img { 
        min-width: 100%; 
        height: 300px; /* Altura controlada */
    }
    
    /* CORRECCIÓN IMAGEN: Que no corte la cara */
    .modal-img img {
        object-fit: cover; 
        object-position: top center; /* Enfoca la parte de arriba (la cara) */
    }

    .modal-text { padding: 30px 20px; }
    .modal-text h2 { font-size: 1.5rem; }
    .close-btn { top: 10px; right: 10px; background: white; width: 35px; height: 35px; line-height: 35px; font-size: 1.5rem; }

    /* Ajustes Generales */
    .about-header h1 { font-size: 2.2rem; }
    .story-section, .mv-section, .objectives-section, .team-section { padding: 50px 20px; }
    .mv-grid, .team-grid, .obj-list { grid-template-columns: 1fr; }
    
    footer { flex-direction: column; text-align: center; padding: 40px 20px; }
    .footer-col { width: 100%; margin-bottom: 30px; }
    .socials { justify-content: center; display: flex; }
}