/* --- Variables de Color y Fuentes --- */
:root {
    --color-primario: #E6007E; /* Rosa vibrante del logo */
    --color-secundario: #F39200; /* Naranja del logo */
    --color-texto: #333;
    --color-fondo: #f4f4f4;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-texto: 'Roboto', sans-serif;
}

/* --- Estilos Generales y Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Efecto de desplazamiento suave al hacer clic en los enlaces del menú */
}

body {
    font-family: var(--fuente-texto);
    color: var(--color-texto);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    color: var(--color-primario);
}

h1 { font-size: 3rem; margin-bottom: 20px;}
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px;}
h3 { font-size: 1.5rem; margin-bottom: 10px;}
p { margin-bottom: 20px; font-size: 1.1rem; }

/* --- Header y Navegación --- */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease; /* Transición para el header dinámico */
}

/* Estilo para el header cuando se hace scroll */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 100px; /* EDITA AQUÍ el tamaño del logo */
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 60px; /* Tamaño del logo al hacer scroll */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

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

.main-nav a:hover {
    color: var(--color-primario);
}

.btn-donar {
    background-color: var(--color-secundario);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-donar:hover {
    background-color: #d37f00;
    transform: scale(1.05);
}

/* --- Sección Principal (Hero) --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://elgalpondelossuenios.org.ar/home.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}
.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn-hero {
    background-color: var(--color-primario);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-hero:hover {
    background-color: #c4006b;
    transform: scale(1.05);
}

/* --- Estructura de Secciones --- */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--color-fondo);
}

/* --- CLASES PARA ANIMACIONES (NUEVO) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sección "Quiénes Somos" --- */
.container-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text { flex: 1; }
.about-image { flex: 1; }

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Sección "Proyectos" --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 { padding: 20px 20px 10px; }
.project-card p { padding: 0 20px 20px; }

/* --- Sección "Donaciones" --- */

.donations {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://elgalpondelossuenios.org.ar/home2.jpg') no-repeat center center/cover;
min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}
.donations h2 { color: #fff; }

.donations p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.donation-card {
    background: #fff;
    color: var(--color-texto);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.donation-card:hover {
    transform: scale(1.05);
}

#popular-donation {
    border: 4px solid var(--color-secundario);
}

.donation-card h3 {
    font-size: 2rem;
    color: var(--color-primario);
}

.btn-donar-option {
    display: inline-block;
    background: var(--color-secundario);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-donar-option:hover { background: #d37f00; }

.other-donation {
    text-align: center;
    margin-top: 40px;
}
.other-donation p {
    margin-bottom: 10px;
}

/* --- Sección "Sumate" --- */
.involvement-options {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.involvement-card {
    background: #fff;
    padding: 30px;
    border-left: 5px solid var(--color-primario);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex: 1;
}

/* --- Sección "Contacto" --- */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--fuente-texto);
    font-size: 1rem;
}

.btn-submit {
    background: var(--color-primario);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover { background: #c4006b; }

/* --- Footer --- */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
.footer p {
    margin: 5px 0;
}

/* --- Diseño Responsivo para Móviles --- */
@media(max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .main-nav ul {
        padding: 10px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    
    .container-flex, .involvement-options {
        flex-direction: column;
    }
}