@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Variables & Tema MADI
   ========================================================================== */
:root {
    /* Paleta Principal HSL */
    --primary-h: 280;
    --primary-s: 65%;
    --primary-l: 45%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 62%);
    --primary-dark:  hsl(var(--primary-h), var(--primary-s), 28%);
    --primary-alpha: rgba(115, 40, 190, 0.08);

    --secondary-h: 345;
    --secondary-s: 75%;
    --secondary-l: 60%;
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --secondary-light: hsl(var(--secondary-h), var(--secondary-s), 70%);

    --accent-h: 160;
    --accent-s: 60%;
    --accent-l: 45%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-light: hsl(var(--accent-h), var(--accent-s), 55%);

    /* Colores del Sistema */
    --bg-warm: hsl(280, 20%, 98.5%);
    --bg-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(115, 40, 190, 0.06);

    /* Textos (Alto contraste para Accesibilidad) */
    --text-main: hsl(280, 40%, 12%);
    --text-muted: hsl(280, 12%, 40%);
    --text-white: #ffffff;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(115, 40, 190, 0.03) 0%, rgba(224, 72, 110, 0.03) 100%);

    /* Sombras y Radios */
    --shadow-sm: 0 4px 6px -1px rgba(115, 40, 190, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 20px -3px rgba(115, 40, 190, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 24px 38px -5px rgba(115, 40, 190, 0.08), 0 10px 15px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(115, 40, 190, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Tiempos de Transición */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1200px;
}

/* ==========================================================================
   Reseteo e Inicialización
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-warm);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-warm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Componentes Reutilizables (Botones, Tarjetas, Badges)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--primary-light);
}
.btn-secondary:hover {
    background: var(--primary-alpha);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-white);
}
.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(26, 188, 138, 0.2);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(115, 40, 190, 0.15);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-social { background: rgba(115, 40, 190, 0.1); color: var(--primary); }
.badge-salud { background: rgba(224, 72, 110, 0.1); color: var(--secondary); }
.badge-educacion { background: rgba(26, 188, 138, 0.1); color: var(--accent); }

/* Alto contraste para etiquetas sobre imágenes o degradados oscuros */
.news-card-img .badge,
.program-img .badge {
    background: rgba(31, 10, 56, 0.8) !important;
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Header y Menú de Navegación (Sticky Glassmorphism)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(115, 40, 190, 0.05);
    padding: 0.8rem 0;
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}
.nav-item a:hover,
.nav-item.active a {
    color: var(--primary);
}
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}
.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
}
.nav-cta .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* Menú hamburguesa móvil */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==========================================================================
   Página de Inicio (Hero, Impacto, Destacados, CTAs)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 11rem 0 9rem 0;
    background: linear-gradient(135deg, rgba(31, 10, 56, 0.82) 0%, rgba(93, 23, 163, 0.65) 100%), url('../images/portada.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: var(--text-white);
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    line-height: 1.65;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-illustration {
    position: relative;
}

/* Ilustración decorativa */
.madi-blob-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.madi-shape-1 {
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--gradient-primary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-bounce 8s ease-in-out infinite;
    opacity: 0.85;
}

.madi-shape-2 {
    position: absolute;
    width: 260px;
    height: 260px;
    background: var(--gradient-accent);
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 50%;
    animation: blob-bounce-reverse 10s ease-in-out infinite;
    mix-blend-mode: multiply;
    opacity: 0.75;
}

.illustration-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    z-index: 5;
    animation: float-element 5s ease-in-out infinite;
}

.illustration-card.ic-1 {
    top: 10%;
    left: 5%;
}
.illustration-card.ic-2 {
    bottom: 10%;
    right: 5%;
    animation-delay: 2.5s;
}

.ic-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-alpha);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}
.ic-text h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}
.ic-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sección de Cifras de Impacto */
.impact-section {
    margin-top: -3rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.impact-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: var(--transition-normal);
}
.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.impact-icon {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.impact-number {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.impact-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   Programas y Servicios en el Home
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.program-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(115, 40, 190, 0.15);
}

.program-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--primary-alpha); /* Fallback */
}

/* Decorativo de Imagen Vacía en caso de no existir imagen real */
.program-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.6) 100%);
}

.program-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.program-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.program-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.program-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}
.program-link:hover {
    color: var(--secondary);
}
.program-link i {
    transition: var(--transition-fast);
}
.program-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Llamados a la Acción Emocionales (CTA)
   ========================================================================== */
.split-cta-section {
    padding: 6rem 0;
    background: var(--gradient-soft);
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cta-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cta-box::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    z-index: 1;
    opacity: 0.05;
}
.cta-box.cta-donar::after {
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
}
.cta-box.cta-voluntario::after {
    background: var(--accent);
    top: -50px;
    right: -50px;
}

.cta-box-content {
    position: relative;
    z-index: 5;
    margin-bottom: 2rem;
}

.cta-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    align-self: flex-start;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   Página de Contacto y Formularios
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-alpha);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.info-details p {
    color: var(--text-muted);
}

.map-container {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
}

/* Formularios Premium */
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(115, 40, 190, 0.15);
    background: var(--bg-warm);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}
.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(115, 40, 190, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Página Nosotros (Filosofía MADI, Valores, Historia)
   ========================================================================== */
.about-section {
    padding: 6rem 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-img-frame {
    position: relative;
}
.about-img-frame::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius-md);
    top: 15px;
    left: -15px;
    z-index: 1;
}
.about-img-real {
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.about-values-section {
    background: var(--gradient-soft);
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: var(--transition-normal);
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--primary-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}
.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Blog, Noticias y Detalle (Filtros, Layout de Lectura)
   ========================================================================== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-alpha);
}

.news-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}
.news-card-title a {
    color: var(--text-main);
}
.news-card-title a:hover {
    color: var(--primary);
}

.news-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Estructura del Detalle de Noticias / Lectura */
.article-header {
    text-align: center;
    padding: 6rem 0 3rem 0;
    background: var(--gradient-soft);
}
.article-header h1 {
    font-size: 3rem;
    max-width: 900px;
    margin: 1.5rem auto;
    line-height: 1.2;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.article-banner {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}
.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}
.article-body p {
    margin-bottom: 1.8rem;
}

/* ==========================================================================
   Página Cómo Ayudar y Donación (Fácil, Claro, Emocional)
   ========================================================================== */
.donation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
}

.donation-emotional {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.donation-emotional h2 {
    font-size: 2.2rem;
}
.donation-emotional p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.transfer-card {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.transfer-card::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    top: -50px; right: -50px;
}

.transfer-card h3 {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.75rem;
}

.bank-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}
.bank-row span:first-child {
    font-weight: 500;
    opacity: 0.85;
}
.bank-row span:last-child {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Pie de Página (Footer)
   ========================================================================== */
.site-footer {
    background: hsl(280, 45%, 12%);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
    border-top: 5px solid var(--primary);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about h3 {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}
.social-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 35px; height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-contact li {
    display: flex;
    gap: 0.8rem;
    align-items: start;
}
.footer-contact i {
    color: var(--secondary);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Efectos y Keyframes de Animación
   ========================================================================== */
@keyframes blob-bounce {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
    50% { border-radius: 40% 60% 70% 30% / 50% 60% 30% 50%; transform: rotate(90deg) scale(1.08); }
}

@keyframes blob-bounce-reverse {
    0%, 100% { border-radius: 40% 60% 70% 30% / 50% 60% 30% 50%; transform: rotate(0deg) scale(1); }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(-90deg) scale(0.95); }
}

@keyframes float-element {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Adaptabilidad para Dispositivos Móviles (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .madi-blob-wrapper {
        height: 300px;
    }
    .madi-shape-1 { width: 240px; height: 240px; }
    .madi-shape-2 { width: 200px; height: 200px; }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-grid,
    .contact-grid,
    .donation-grid,
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 2px solid var(--primary-light);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-cta {
        margin-left: 0;
        width: 100%;
    }
    .nav-cta .btn {
        width: 100%;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .impact-section {
        margin-top: 2rem;
    }
    
    .cta-box {
        padding: 2.5rem 1.8rem;
    }
    
    .cta-box h3 {
        font-size: 1.8rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Slideshow de Galería de Fotos - Noticias
   ========================================================================== */
.madi-slideshow {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    background-color: #1f1f1f;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.madi-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.madi-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.madi-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}
.slide-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}
.slide-control.prev { left: 1.5rem; }
.slide-control.next { right: 1.5rem; }

.slide-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}
.indicator-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .madi-slideshow {
        height: 320px;
    }
    .slide-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Botones de Compartir Redes Sociales */
.share-link {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.share-link:hover {
    transform: scale(1.2);
}
.share-link.fb:hover { color: #1877f2; }
.share-link.tw:hover { color: #0f1419; } /* Color de Twitter/X negro moderno */
.share-link.wa:hover { color: #25d366; }
.share-link.cp:hover { color: var(--accent); }
.share-link.cp {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


