/* ------------------------------------------- */
/* 1. RESET Y VARIABLES GLOBALES */
/* ------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #4B4A8D; /* Morado (Confianza) */
    --color-accent: #C16194;  /* Rosa/Magenta (Acento/CTA) */
    --color-light: #FDF5F7;   /* Rosa Pálido (Fondo Suave) */
    --color-text: #333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------- */
/* 2. TIPOGRAFÍA Y ENCABEZADOS */
/* ------------------------------------------- */
h1 {
    font-size: 2em;
    color: var(--color-primary);
    margin: 20px 0 10px;
    line-height: 1.2;
}
/* Estilo para los corazones de contorno dentro de H1 (ALTA ESPECIFICIDAD) */
h1 .small-heart {
    font-size: 0.75em; 
    color: var(--color-primary); 
    margin: 0 2px; 
    vertical-align: middle; 
}
h2 {
    font-size: 2em;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
h3 {
    color: var(--color-primary);
    margin-top: 0;
}
section {
    padding: 60px 0;
    text-align: center; 
}

/* Subtítulo General de Sección */
.subtitle-section {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px auto;
    font-size: 1.1em;
    color: var(--color-text);
}

/* ------------------------------------------- */
/* 3. BOTONES (CTA) */
/* ------------------------------------------- */
.btn, .btn-small {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
    color: white; /* Aseguramos que el texto sea blanco en todos */
}
.btn-primary {
    background-color: var(--color-accent); 
}
.btn-primary:hover {
    background-color: #A34E7B; 
    transform: scale(1.05);
}
.btn-secondary {
    background-color: var(--color-primary); 
}
.btn-secondary:hover {
    background-color: #3A3A6B; 
}
.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    /* CORRECCIÓN: Usamos el color de acento (Rosa/Magenta) para el fondo */
    background-color: var(--color-accent); 
}
.btn-small:hover {
    /* Usamos el color primario (Morado) para el hover */
    background-color: var(--color-primary);
}

/* ------------------------------------------- */
/* 4. SECCIÓN HERO (CABECERA) */
/* ------------------------------------------- */
.hero {
    background: linear-gradient(180deg, var(--color-light) 0%, #ffffff 100%);
    text-align: center;
    padding: 40px 0 60px;
}
.hero-logo {
    max-width: 90%; 
    height: auto;
    margin: 0 auto;
    display: block;
}
.hero .subtitle {
    font-size: 1.1em;
    color: var(--color-text);
    margin-bottom: 30px;
}

/* ------------------------------------------- */
/* 5. SECCIÓN MISIÓN (PROPOSITO) - CENTRADO */
/* ------------------------------------------- */
.section-mission {
    background-color: white;
}
.mission-grid {
    display: flex;
    gap: 30px;
    justify-content: center; 
    text-align: center;
}
.mission-item {
    flex: 1;
    max-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--color-light);
}
.icon-primary {
    font-size: 3em;
    color: var(--color-accent);
    margin-bottom: 15px;
}

/* ------------------------------------------- */
/* 6. SECCIÓN IMPACTO/TESTIMONIOS */
/* ------------------------------------------- */
.section-impact {
    background-color: var(--color-light);
}
.testimonial-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-left: 5px solid var(--color-accent); 
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left;
}
.quote {
    font-style: italic;
    color: var(--color-text);
    font-size: 1.1em;
    margin-bottom: 15px;
}
.author {
    text-align: right;
    font-weight: bold;
    color: var(--color-primary);
}
.impact-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    text-align: center;
}
.stat-number {
    font-size: 3em;
    color: var(--color-accent);
    font-weight: bold;
    display: block;
}
.stat-label {
    color: var(--color-primary);
    font-weight: bold;
    margin-top: -10px;
}

/* ------------------------------------------- */
/* 7. SECCIÓN DE VIDEOS */
/* ------------------------------------------- */
.section-videos {
    background-color: white;
}
.video-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.video-item {
    flex: 1 1 300px; 
    text-align: center;
    background: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.video-item a {
    text-decoration: none;
    color: var(--color-primary);
    display: block;
}
.video-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-item img:hover {
    transform: scale(1.05);
}
.video-item h3 {
    padding: 15px 10px;
    font-size: 1.1em;
    color: var(--color-primary);
}

/* ------------------------------------------- */
/* 8. SECCIÓN DE EVENTOS */
/* ------------------------------------------- */
.section-events {
    background-color: var(--color-light);
}
.event-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-primary);
}
.event-date {
    background-color: var(--color-primary); 
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    min-width: 60px;
    margin-right: 15px;
}
.event-date .day {
    font-size: 1.5em;
    display: block;
}
.event-date .month {
    font-size: 0.8em;
    display: block;
}
.highlight-date {
    background-color: var(--color-accent);
}
.event-details {
    flex-grow: 1;
    text-align: left;
}
.event-details h4 {
    font-size: 1.2em;
    color: var(--color-accent); 
    margin-bottom: 5px;
}
.event-details p {
    font-size: 0.9em;
    color: var(--color-text);
    margin-bottom: 10px;
}
.event-info {
    display: block;
    font-size: 0.85em;
    color: #666;
}
.event-info i {
    color: var(--color-primary);
    margin-right: 5px;
}

/* ------------------------------------------- */
/* 9. SECCIÓN CTA (FORMULARIO) */
/* ------------------------------------------- */
.section-cta {
    background-color: white;
}
.contact-form {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
}
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form button {
    margin-top: 10px;
    width: 100%;
}
/* Ocultar el textarea por defecto, lo maneja JS */
#mensaje-textarea {
    display: none; 
}
#general-fields {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Para que coincida con el gap del formulario */
}

/* ------------------------------------------- */
/* 10. FOOTER Y REDES SOCIALES */
/* ------------------------------------------- */
.footer-social {
    background-color: var(--color-primary); 
    color: white;
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--color-accent); 
}
.social-icons a {
    color: white;
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--color-accent); 
}
.copyright {
    font-size: 0.85em;
    margin-top: 15px;
    opacity: 0.8;
}

/* ------------------------------------------- */
/* 11. MEDIA QUERIES (RESPONSIVE) */
/* ------------------------------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .mission-grid {
        flex-direction: column; 
        align-items: center;
    }
    .impact-stats {
        flex-direction: column; 
        gap: 30px;
    }
    .hero-logo {
        max-width: 100%; 
    }
}
@media (max-width: 600px) {
    .video-grid {
        flex-direction: column;
    }
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .event-date {
        margin-bottom: 10px;
        min-width: 100%;
    }
    .btn-small {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}