/* Variables */
:root {
    --primary-green: #386641;
    --secondary-green: #6a994e;
    --light-green: #a7c957;
    --bg-white: #f8f9fa;
    --bg-pure: #ffffff;
    --text-dark: #2d332f;
    --text-light: #6c757d;
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background-color: var(--bg-pure); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; color: var(--primary-green); margin-bottom: 15px; }
p { margin-bottom: 15px; }

/* Botones */
.btn-primary { display: inline-block; background-color: var(--secondary-green); color: var(--bg-pure); padding: 12px 30px; border-radius: 30px; font-weight: 500; transition: background 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--primary-green); transform: translateY(-2px); color: white; }
.btn-outline { display: inline-block; border: 2px solid var(--secondary-green); color: var(--secondary-green); padding: 8px 20px; border-radius: 30px; font-weight: 500; transition: all 0.3s ease; }
.btn-outline:hover { background-color: var(--secondary-green); color: var(--bg-pure); }
.btn-block { display: block; width: 100%; }

/* Layouts */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-white); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 40px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background-color: var(--light-green); margin: 15px auto 0; }
.section-subtitle { text-align: center; margin-top: -20px; margin-bottom: 40px; color: var(--text-light); }

/* Navbar */
#navbar { position: fixed; top: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000; transition: all 0.3s ease; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.logo span { font-size: 1.2rem; font-weight: 600; color: var(--primary-green); }
.nav-links { display: flex; gap: 20px; }
.nav-links li a { font-weight: 500; transition: color 0.3s ease; }
.nav-links li a:hover { color: var(--secondary-green); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-green); }

/* Hero */
.hero-section { background: linear-gradient(rgba(45, 51, 47, 0.6), rgba(45, 51, 47, 0.6)), url('../assets/portada.png') no-repeat center center/cover; height: 100vh; display: flex; align-items: center; text-align: center; color: var(--bg-pure); }
.hero-content { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; color: var(--bg-pure); margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }

/* Nosotros */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--bg-pure); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; border-bottom: 4px solid var(--secondary-green); transition: transform 0.3s ease; }
.card:hover { transform: translateY(-10px); }
.card-icon { font-size: 2.5rem; color: var(--light-green); margin-bottom: 20px; }
.valores-list { text-align: left; margin-top: 15px; }
.valores-list li { margin-bottom: 10px; }
.valores-list i { color: var(--secondary-green); margin-right: 10px; }

/* Fundador */
.fundador-content { display: flex; align-items: center; gap: 50px; }
.fundador-img { flex: 1; }
.fundador-img img { width: 100%; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.fundador-texto { flex: 1; }
.libros-section { margin-top: 30px; background: var(--bg-pure); padding: 20px; border-radius: 8px; border-left: 4px solid var(--secondary-green); }
.libros-list li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.libros-list i { color: var(--light-green); margin-top: 4px; }

/* Galería (NUEVO) */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.galeria-img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.galeria-img:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Calendario / Cursos (ACTUALIZADO) */
.calendario-lista { max-width: 900px; margin: 0 auto; }
.curso-item { display: flex; align-items: center; background: var(--bg-pure); margin-bottom: 25px; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.curso-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.curso-img { flex: 0 0 180px; height: 140px; margin-right: 25px; border-radius: 8px; overflow: hidden; }
.curso-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.curso-item:hover .curso-img img { transform: scale(1.1); }

.curso-fecha { flex: 0 0 80px; text-align: center; background: var(--primary-green); color: var(--bg-pure); padding: 15px 10px; border-radius: 8px; margin-right: 20px; }
.curso-fecha .dia { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.curso-fecha .mes { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.curso-info { flex: 1; }
.curso-info h3 { margin-bottom: 5px; font-size: 1.3rem; }
.curso-info p { margin-bottom: 0; color: var(--text-light); }

.curso-accion { flex: 0 0 120px; text-align: right; margin-left: 20px; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.contacto-form { background: var(--bg-white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: var(--font-main); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-green); }
.info-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.info-list i { color: var(--secondary-green); font-size: 1.2rem; width: 20px; }
.info-list a:hover { color: var(--primary-green); text-decoration: underline; }
.mapa-container { margin-top: 30px; border-radius: 10px; overflow: hidden; }


/* --- REDES SOCIALES DESTACADAS (NUEVA SECCIÓN) --- */
.redes-destacadas {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-green);
}

.redes-destacadas h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.redes-destacadas p {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.redes-iconos-grandes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.red-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--bg-pure);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.red-btn i {
    font-size: 1.4rem;
}

/* Colores de marca en hover */
.red-btn.instagram:hover {
    background: #E1306C;
    color: white;
    border-color: #E1306C;
}

.red-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.red-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.red-btn.tiktok:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}



/* Footer */
footer { background: var(--primary-green); color: var(--bg-pure); text-align: center; padding: 20px 0; }

/* Responsive */
@media (max-width: 900px) {
    .fundador-content { flex-direction: column; }
    .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-pure); box-shadow: 0 5px 10px rgba(0,0,0,0.1); padding: 20px 0; text-align: center; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .curso-item { flex-direction: column; text-align: center; }
    .curso-img { margin-right: 0; margin-bottom: 15px; width: 100%; flex: auto; height: 200px; }
    .curso-fecha { margin-right: 0; margin-bottom: 15px; width: 100px; }
    .curso-accion { margin-left: 0; margin-top: 15px; text-align: center; }
}
