/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #0056b3; /* Azul institucional */
    --green-color: #28a745;   /* Verde evento */
    --accent-color: #ffc107;  /* Amarillo de contraste */
    --text-color: #333333;    /* Gris oscuro para textos y footer */
    --light-bg: #f8f9fa;      /* Gris muy claro para fondos */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el cuerpo ocupe al menos toda la pantalla */
}

/* =========================================
   2. HEADER & NAVEGACIÓN
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo del Logo (www.becasnoelia.org) */
.logo {
    font-size: 1.6rem;
    font-weight: 900; /* Letra muy gruesa */
    color: #000000;   /* Negro puro */
    text-transform: none;
    letter-spacing: 0.5px;
    text-shadow: 2px 3px 5px rgba(0,0,0,0.4); /* Efecto relieve/sombra */
    cursor: pointer;
    text-decoration: none;
}

/* Estilo de imagen del logo responsive */
.logo-img {
    max-width: 400px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 80%;
    }
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Icono menú hamburguesa (Móvil) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* =========================================
   3. HERO SECTION (CABECERA PRINCIPAL)
   ========================================= */
.hero {
    background-color: var(--white); 
    color: var(--text-color);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 40%; /* Imagen redonda */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    object-fit: cover;
}

.hero h1 {
    font-size: 1.8rem;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Botón general (Estilo "Hacer Donación") */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: scale(1.05);
    background-color: #e0a800;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =========================================
   4. SECCIONES GENERALES
   ========================================= */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

/* =========================================
   5. CONOCE EL PROYECTO
   ========================================= */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.project-full-width {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.project-text ul {
    list-style: none;
    margin-top: 15px;
}
.project-text ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 100%;
    display: block;
    max-height: 350px;
    object-fit: contain;
}

.project-logo {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* =========================================
   6. FORMULARIOS
   ========================================= */
.form-container {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Botón de enviar formulario */
.btn-submit {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #004494;
}

/* =========================================
   7. EVENTOS (GRID)
   ========================================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.event-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-header {
    color: white;
    padding: 20px;
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.event-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* =========================================
   8. FOOTER (CORREGIDO)
   ========================================= */
footer {
    background-color: var(--text-color); /* Fondo gris oscuro #333 */
    color: var(--white);                 /* Texto blanco */
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;                    /* Empuja el footer al fondo si hay poco contenido */
    width: 100%;                         /* Ocupa todo el ancho */
    display: block;
}

footer p {
    margin: 5px 0;
}

footer .small-text {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* =========================================
   9. RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 60px; /* Altura aproximada del header */
        left: 0;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image img {
        max-height: 250px;
    }

    .project-logo {
        width: 100%;
        max-width: 100%;
    }

    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 20px !important;
    }

    .hero h1 {
        font-size: 1.4rem;
    }
}
