/* ============================================
   RESET Y CONFIGURACIONES GLOBALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    /* Paleta principal - Verde y Morado */
    --primary-green: #4CAF50;
    --primary-green-light: #66BB6A;
    --primary-green-dark: #388E3C;
    --primary-purple: #9C27B0;
    --primary-purple-light: #BA68C8;
    --primary-purple-dark: #7B1FA2;
    
    /* Colores de apoyo */
    --accent-teal: #26A69A;
    --accent-blue: #2196F3;
    --accent-orange: #FF9800;
    
    /* Escala de grises */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Background */
    --beige: #f5f5dc;
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
    
    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Gradientes */
    --gradient-green-purple: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    --gradient-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--beige);
    overflow-x: hidden;
    background-image: var(--gradient-subtle);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-purple-dark);
}

.highlight {
    color: var(--primary-green);
    font-weight: 700;
}

.accent {
    color: var(--primary-purple);
    font-weight: 700;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-align: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-green-purple);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #f5f5dc;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: #f5f5dc;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-icon {
    max-width: 180px;
    height: auto;
    max-height: 100px;
    display: block;
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-accent {
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-green-purple);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--gray-800);
    margin: 5px 0;
    transition: var(--transition-normal);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100svh;
    max-height: 860px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 5.5rem 0 2.5rem;
    background: #090c11;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center center;
    display: block;
    z-index: 0;
    opacity: 0.62;
    background: #090c11;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.28), transparent 32%),
        radial-gradient(circle at 80% 25%, rgba(156, 39, 176, 0.24), transparent 28%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 10, 18, 0.45) 0%, rgba(9, 14, 23, 0.62) 52%, rgba(8, 12, 20, 0.78) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: calc(100svh - clamp(5.25rem, 8vw, 6.5rem));
    padding: clamp(2rem, 5vh, 4rem) 0;
}

.hero-content {
    width: min(100%, 980px);
    text-align: center;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 1.75rem);
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    animation: fadeInUp 0.9s ease;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.08;
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    animation: fadeInUp 1s ease;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-line {
    display: inline-block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.18rem;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .highlight {
    color: #9ff0aa;
}

.hero .btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: var(--space-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   MISIÓN Y VISIÓN
   ============================================ */
.mission-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(156, 39, 176, 0.03) 100%);
    border-radius: var(--radius-xl);
    margin: var(--space-xl) auto;
    max-width: 1400px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.mission-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    border-top: 4px solid var(--primary-green);
}

.mission-card:nth-child(2) {
    border-top-color: var(--primary-purple);
}

.mission-card:nth-child(3) {
    border-top-color: var(--accent-teal);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
    color: var(--primary-green);
}

.mission-card:nth-child(2) .mission-icon {
    color: var(--primary-purple);
}

.mission-card:nth-child(3) .mission-icon {
    color: var(--accent-teal);
}

/* ============================================
   PROGRAMAS Y SERVICIOS
   ============================================ */
.programs-section {
    background-color: #f5f5dc;
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-subtle);
    z-index: -1;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.tab-button {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-button.active {
    background: var(--gradient-green-purple);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.tab-button:not(.active):hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.tab-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.program-card {
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-card:nth-child(odd):hover {
    border-left-color: var(--primary-green);
}

.program-card:nth-child(even):hover {
    border-left-color: var(--primary-purple);
}

.program-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    color: white;
}

.program-icon.health {
    background: var(--primary-green);
}

.program-icon.education {
    background: var(--primary-purple);
}

/* ============================================
   ESTADÍSTICAS DE IMPACTO
   ============================================ */
.stats-section {
    background: var(--gradient-green-purple);
    color: white;
    text-align: center;
}

.stats-section .section-title,
.stats-section .section-subtitle {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   VIDEO INSTITUCIONAL
   ============================================ */
.video-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: var(--space-xl);
    transition: background var(--transition-normal);
}

.video-placeholder:hover .video-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 2rem;
    color: var(--primary-purple);
    transition: all var(--transition-normal);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.video-instructions {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-green);
}

.video-instructions h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary-purple);
}

.video-instructions ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.video-instructions li {
    margin-bottom: var(--space-xs);
    color: var(--gray-700);
}

.code-example {
    background: var(--gray-900);
    color: var(--gray-200);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-top: var(--space-md);
}

/* ============================================
   NOTICIAS Y ACTUALIDADES
   ============================================ */
.news-section {
    background-color: #f5f5dc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.news-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    background: var(--gradient-green-purple);
    color: white;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.news-content {
    padding: var(--space-lg);
    flex: 1;
}

.news-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: var(--space-sm);
    color: var(--primary-purple);
}

.news-link:hover {
    gap: 0.75rem;
}

.news-cta {
    text-align: center;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-600);
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(156, 39, 176, 0.03) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: var(--gradient-subtle);
    padding: var(--space-xl);
}

.info-card {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.info-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-green-purple);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
    font-size: 1.25rem;
}

.info-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.contact-form {
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.form-message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo .logo-text {
    color: white;
}

.footer-description {
    color: var(--gray-400);
    margin: var(--space-md) 0;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--gradient-green-purple);
    transform: translateY(-3px);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--primary-green);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--gray-500);
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-green-purple);
    color: white;
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2.35rem, 4.55vw, 2.95rem);
        line-height: 1.06;
    }

    .hero-content {
        padding: 0 1rem;
    }
    
    .logo-icon {
        max-width: 150px;
    }
    
    .logo {
        font-size: 1.3rem;
        gap: 0.75rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    section {
        padding: var(--space-xl) 0;
    }

    .header {
        background-color: rgba(255, 255, 255, 0.97);
    }

    .navbar {
        position: relative;
        min-height: 88px;
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .logo {
        min-width: 0;
        max-width: calc(100% - 72px);
        gap: 0.65rem;
        font-size: 1.05rem;
    }

    .logo-icon {
        width: 72px;
        max-width: 72px;
        max-height: 72px;
        object-fit: contain;
    }

    .logo-text {
        line-height: 1.1;
        word-break: break-word;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        margin-left: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        cursor: pointer;
        position: relative;
        z-index: 1102;
        box-shadow: none;
        flex-shrink: 0;
        gap: 4px;
    }
    
    .menu-toggle:hover {
        border-color: transparent;
    }

    .menu-bar {
        display: block;
        width: 24px;
        height: 2px;
        margin: 0;
        background-color: var(--gray-800);
        border-radius: 999px;
        transform: none;
        opacity: 1;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1.25rem;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all var(--transition-normal);
        z-index: 1101;
        max-height: calc(100svh - 110px);
        overflow-y: auto;
        gap: 0.75rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .menu-toggle.active .menu-bar:nth-child(1),
    .menu-toggle.active .menu-bar:nth-child(2),
    .menu-toggle.active .menu-bar:nth-child(3) {
        transform: none;
        opacity: 1;
    }

    .hero {
        min-height: 100svh;
        max-height: none;
        padding: 8.5rem 0 4.5rem;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-inner,
    .hero-content {
        width: 100%;
    }

    .hero-video {
        object-fit: cover;
        object-position: center center;
        opacity: 0.5;
    }

    .hero-content {
        padding: 0;
        border-radius: 0;
    }

    .hero-title {
        font-size: clamp(2.35rem, 10vw, 3.4rem);
        line-height: 1.05;
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 1.05rem;
        padding: 0 0.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }
    
    .hero-buttons .btn {
        width: min(100%, 320px);
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
    
    .video-placeholder {
        /* aspect ratio preserved via padding-bottom; no fixed height needed */
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        min-width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .day {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .navbar .btn-primary {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-kicker {
        font-size: 0.82rem;
    }
    
    .hero-subtitle {
        font-size: 1.02rem;
    }

    .hero {
        min-height: 100svh;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .navbar {
        min-height: 80px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .logo-icon {
        width: 64px;
        max-width: 64px;
        max-height: 64px;
    }
    
    .logo {
        font-size: 0.96rem;
        gap: 0.45rem;
        max-width: calc(100% - 68px);
    }
    
    .mission-grid,
    .programs-grid,
    .stats-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .back-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
