/* Variables CSS - PERSONALIZAR: Colores y fuentes según preferencias */
:root {
    /* Colores principales */
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #202124;
    
    /* Degradados - PERSONALIZAR: Ajustar colores del degradado */
    --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #00bcd4 100%);
    --accent-gradient: linear-gradient(135deg, #fbbc05 0%, #ea4335 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --hero-gradient: linear-gradient(135deg, rgba(26, 115, 232, 0.85) 0%, rgba(52, 168, 83, 0.75) 100%);
    
    /* Tipografía - PERSONALIZAR: Cambiar fuentes si es necesario */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Espaciado */
    --section-padding: 5rem 0;
    --container-width: 1200px;
    
    /* Sombras mejoradas */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 16px 40px rgba(0, 0, 0, 0.15);
    --shadow-extra: 0 24px 60px rgba(0, 0, 0, 0.18);
    
    /* Sombras para elementos específicos */
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 6px 20px rgba(0, 0, 0, 0.15);
    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.preloader-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ANIMACIONES DE SCROLL MEJORADAS ===== */

/* Configuración AOS personalizada */
[data-aos] {
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animaciones personalizadas más notorias */
[data-aos="fade-up"] {
    transform: translateY(60px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-down"] {
    transform: translateY(-60px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(-60px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(60px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-out"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(-100deg);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
    opacity: 1;
}

[data-aos="flip-right"] {
    transform: perspective(2500px) rotateY(100deg);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="flip-right"].aos-animate {
    transform: perspective(2500px) rotateY(0);
    opacity: 1;
}

/* Animaciones para elementos específicos con más impacto */

/* Hero section - Entrada espectacular */
.hero-swiper {
    animation: heroEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cards con animación escalonada */
.quick-access-item:nth-child(1) { animation-delay: 0.1s; }
.quick-access-item:nth-child(2) { animation-delay: 0.2s; }
.quick-access-item:nth-child(3) { animation-delay: 0.3s; }
.quick-access-item:nth-child(4) { animation-delay: 0.4s; }

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de aparición por palabras para títulos */
.section-title {
    overflow: hidden;
}

.section-title span {
    display: inline-block;
    animation: titleWordReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.section-title span:nth-child(1) { animation-delay: 0.1s; }
.section-title span:nth-child(2) { animation-delay: 0.2s; }
.section-title span:nth-child(3) { animation-delay: 0.3s; }

@keyframes titleWordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de flotación suave para elementos interactivos */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.quick-access-item:hover,
.event-card:hover,
.service-item:hover {
    animation: float 3s ease-in-out infinite;
}

/* Efecto de onda para botones */
.btn-hero,
.btn-donar,
.btn-event {
    position: relative;
    overflow: hidden;
}

.btn-hero::after,
.btn-donar::after,
.btn-event::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::after,
.btn-donar:hover::after,
.btn-event:hover::after {
    width: 300px;
    height: 300px;
}

/* Animación de scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 10000;
    transition: width 0.3s ease;
}

/* Parallax effect para imágenes de fondo */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Efecto de revelación gradual */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animación para números o estadísticas */
.counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.counter.animated {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive para animaciones */
@media (max-width: 768px) {
    [data-aos] {
        transition-duration: 0.6s;
    }
    
    [data-aos="fade-up"],
    [data-aos="fade-down"],
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translateY(30px);
    }
    
    /* Desactivar parallax en móviles para mejor performance */
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-medium);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navegación */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Botón donar */
.btn-donar {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

.btn-donar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all var(--transition-normal);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Slider */
.hero {
    margin-top: 10px;
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Swiper personalización */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
}

/* Secciones generales */
section {
    padding: var(--section-padding);
}

section:nth-child(even) {
    background: var(--bg-light);
}

section:nth-child(odd) {
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Mensaje de bienvenida */
.welcome-message {
    background: var(--bg-light);
    padding: 4rem 0;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.welcome-verse {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-style: italic;
}

.welcome-verse p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.welcome-verse span {
    font-size: 1rem;
    opacity: 0.9;
}

/* Accesos rápidos */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quick-access-item {
    background: var(--card-gradient);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
}

.quick-access-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.quick-access-item.highlighted {
    background: var(--primary-gradient);
    color: white;
}

.quick-access-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quick-access-item.highlighted .quick-access-icon {
    color: white;
}

.quick-access-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Eventos */
.events-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-date, .event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

.btn-event {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.btn-event:hover {
    background: var(--secondary-color);
}

.btn-event-info {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    text-align: center;
    font-family: inherit;
    flex: 1;
}

.btn-event-info:hover {
    background: #2c8c47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== ESTILOS DEL MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10001;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10002;
    color: var(--text-color);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--bg-light);
    background: linear-gradient(135deg, var(--bg-light) 0%, transparent 100%);
}

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.modal-date, .modal-time, .modal-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.modal-date i, .modal-time i, .modal-location i {
    color: var(--primary-color);
    width: 16px;
}

.modal-body {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.modal-image {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-details p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Secciones dentro del modal */
.event-speakers, .event-schedule, .event-requirements, .event-contact {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.event-speakers h4, .event-schedule h4, .event-requirements h4, .event-contact h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.speaker-list, .schedule-list, .requirements-list {
    list-style: none;
}

.speaker-list li, .schedule-list li, .requirements-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

.speaker-list li:last-child, .schedule-list li:last-child, .requirements-list li:last-child {
    border-bottom: none;
}

.speaker-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

.schedule-time {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--bg-light);
    background: var(--bg-light);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modal {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #2c8c47;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE PARA EL MODAL ===== */
@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1.5rem 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-modal {
        justify-content: center;
    }
    
    .event-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        margin: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Animación de salida del modal */
.modal-content.closing {
    animation: modalSlideOut 0.3s ease-in forwards;
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Prevenir scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* Mejoras de accesibilidad */
.modal:focus {
    outline: none;
}

.modal-content:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== SECCIÓN SIMPLE DE VERSÍCULO BÍBLICO ===== */

.simple-bible-verse {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    color: white;
    text-align: center;
}

.verse-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.verse-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.verse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 42, 108, 0.7) 0%,
        rgba(26, 115, 232, 0.6) 50%,
        rgba(52, 168, 83, 0.5) 100%
    );
    z-index: 2;
}

.verse-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.bible-text {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bible-reference {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fbbc05;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .simple-bible-verse {
        padding: 6rem 0;
    }
    
    .bible-text {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .bible-reference {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .simple-bible-verse {
        padding: 4rem 0;
    }
    
    .bible-text {
        font-size: 1.6rem;
    }
    
    .bible-reference {
        font-size: 1rem;
    }
}

/* ===== SECCIÓN AVIVA PERÚ ===== */
.aviva-peru {
    position: relative;
    height: 100vh;
    padding: 6rem 0;
    overflow: hidden;
    color: white;
    text-align: center;
}

.aviva-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.aviva-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.aviva-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: 2;
}

.aviva-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.aviva-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.aviva-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.aviva-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.aviva-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.aviva-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.aviva-option i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fbbc05;
}

.aviva-option h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.aviva-option p {
    opacity: 0.9;
    line-height: 1.5;
}

.btn-aviva {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-aviva:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    color: white;
}

.aviva-note {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ===== ENGANCHE PARA CÉLULAS ===== */
.cells-cta {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cells-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cells-content > p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cells-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cell-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cell-type:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.cell-type i {
    font-size: 2rem;
    color: #fbbc05;
}

.cell-type span {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-cells {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    color: var(--primary-color);
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(5, 140, 251, 0.3);
}

.btn-cells:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(5, 140, 251, 0.4);
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .aviva-title {
        font-size: 2.2rem;
    }
    
    .aviva-description {
        font-size: 1.1rem;
    }
    
    .aviva-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .aviva-option {
        padding: 1.5rem;
    }
    
    .cells-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .cells-content h3 {
        font-size: 1.8rem;
    }
    
    .cells-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cell-type {
        padding: 1.2rem 0.5rem;
    }
    
    .cell-type i {
        font-size: 1.7rem;
    }
    
    .cell-type span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .aviva-peru {
        padding: 4rem 0;
    }
    
    .aviva-title {
        font-size: 1.8rem;
    }
    
    .cells-types {
        grid-template-columns: 1fr;
    }
    
    .btn-aviva,
    .btn-cells {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== ESTILOS UNIFICADOS PARA MINISTERIOS Y DEPARTAMENTOS ===== */

.ministries-departments {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Filtros principales */
.main-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    white-space: nowrap;
}

.filter-tab:hover {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--bg-light);
    border-radius: 50px;
    background: var(--bg-color);
    font-family: inherit;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Grid unificado */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.unified-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.unified-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.unified-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Badges */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.ministerio-badge {
    background: rgba(52, 168, 83, 0.9);
    color: white;
}

.departamento-badge {
    background: rgba(26, 115, 232, 0.9);
    color: white;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
}

/* Card Image */
.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    margin: 1rem 1.5rem 0;
    border-radius: 12px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.unified-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-juvenil { background: #e3f2fd; color: #1976d2; }
.tag-activo { background: #e8f5e8; color: #2e7d32; }
.tag-recreativo { background: #fff3e0; color: #f57c00; }
.tag-infantil { background: #fce4ec; color: #c2185b; }
.tag-educativo { background: #f3e5f5; color: #7b1fa2; }
.tag-familia { background: #e8eaf6; color: #303f9f; }
.tag-consejeria { background: #e0f2f1; color: #00796b; }
.tag-adoracion { background: #fff8e1; color: #ff8f00; }
.tag-musica { background: #fbe9e7; color: #d84315; }
.tag-arte { background: #e8f5e8; color: #388e3c; }
.tag-comunicacion { background: #e3f2fd; color: #0288d1; }
.tag-medios { background: #f3e5f5; color: #7b1fa2; }
.tag-tecnologia { background: #e0f2f1; color: #00695c; }
.tag-evangelismo { background: #fff3e0; color: #ef6c00; }
.tag-ayuda { background: #ffebee; color: #d32f2f; }
.tag-social { background: #e8eaf6; color: #3949ab; }
.tag-emergencia { background: #fff8e1; color: #ffa000; }
.tag-radial { background: #f3e5f5; color: #8e24aa; }

/* Stats */
.card-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat i {
    color: var(--primary-color);
    width: 16px;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg-light);
}

.btn-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.8rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-family: inherit;
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}



/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.empty-state.active {
    display: block;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .unified-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .card-meta {
        align-items: flex-start;
    }
    
    .card-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
    }
    
    .filter-tab {
        justify-content: center;
    }
    
    .card-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 1rem;
    }
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-item p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn-service {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.btn-service:hover {
    background: var(--secondary-color);
}

/* Institutos */
.institutes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.institute-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.institute-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.institute-image {
    height: 250px;
    overflow: hidden;
}

.institute-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.institute-card:hover .institute-image img {
    transform: scale(1.05);
}

.institute-content {
    padding: 2rem;
}

.institute-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.institute-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn-institute {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.btn-institute:hover {
    background: var(--secondary-color);
}

/* Pastores */
.pastors-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pastors-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.pastors-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pastors-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.pastors-info p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn-pastors {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.btn-pastors:hover {
    background: var(--secondary-color);
}

/* Testimonios */
.testimonials-swiper {
    padding: 1rem 0 3rem;
}

.testimonial-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    width: 100%;
    background: var(--bg-color);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question[aria-expanded="true"] {
    background: var(--primary-color);
    color: white;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: var(--bg-light);
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    margin: 2rem 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.contact-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-mission {
    color: #cccccc;
    line-height: 1.6;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #cccccc;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Botones flotantes */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    z-index: 100;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 7rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-list {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                background: var(--bg-color);
                flex-direction: column;
                padding: 1.5rem;
                box-shadow: var(--shadow-medium);
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all var(--transition-normal);
                z-index: 999;
                max-height: calc(100vh - 80px);
                overflow-y: auto;
                gap: 0;
                align-items: stretch;
            }
            
            .nav-list.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            .nav-toggle {
                display: flex;
            }
            
            .nav-item {
                width: 100%;
                border-bottom: 1px solid var(--bg-light);
                padding: 0;
            }
            
            .nav-item:last-child {
                border-bottom: none;
                padding-top: 1rem;
            }
            
            .nav-link {
                padding: 1rem 0.5rem;
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
            }
            
            /* Dropdown en móviles/tables - MEJORADO */
            .dropdown {
                position: relative;
                width: 100%;
            }
            
            .dropdown-toggle {
                cursor: pointer;
                user-select: none;
                width: 100%;
                justify-content: space-between;
            }
            
            .dropdown-toggle .fa-chevron-down {
                transition: transform 0.3s ease;
            }
            
            .dropdown.active .dropdown-toggle .fa-chevron-down {
                transform: rotate(180deg);
            }
            
            .dropdown-menu {
                position: static !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                box-shadow: none !important;
                background: var(--bg-light) !important;
                border-radius: 8px;
                margin-top: 0.5rem;
                margin-left: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease, padding 0.3s ease;
                padding: 0 !important;
                width: 100%;
                display: block !important;
            }
            
            .dropdown.active .dropdown-menu {
                max-height: 500px;
                padding: 0.5rem 0 !important;
                margin-bottom: 0.5rem;
            }
            
            .dropdown-link {
                padding: 0.75rem 1.5rem 0.75rem 2rem;
                font-size: 0.95rem;
                width: 100%;
                text-align: left;
            }
            
            .dropdown-link:hover {
                background: rgba(26, 115, 232, 0.1);
                padding-left: 2.5rem;
            }
            
            /* Mejorar el botón donar en móvil */
            .btn-donar {
                width: 100%;
                text-align: center;
                margin-top: 0.5rem;
            }
            
            /* Evitar hover en móviles */
            .nav-link:hover::after {
                width: 0 !important;
            }
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .pastors-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .institutes-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}