/* PERSONALIZAR: Variables CSS - Colores y fuentes de CLM Misiones */
: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 */
    --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%);
    
    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Espaciado */
    --section-padding: 5rem 0;
    --container-width: 1200px;
    
    /* Sombras */
    --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);
    
    /* 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-primary);
    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-logo {
    margin-bottom: 2rem;
}

.preloader-logo img {
    height: 80px;
    width: auto;
}

.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);
    }
}

/* 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;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .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 desktop */
        .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 - MEJORADO */
        .nav-toggle {
            display: none;
            flex-direction: column;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            gap: 4px;
            width: 40px;
            height: 40px;
            justify-content: center;
            align-items: center;
            z-index: 1001;
        }

        .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 Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.8) 0%, rgba(52, 168, 83, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 8rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.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);
    border: 2px solid transparent;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Secciones generales */
section {
    padding: var(--section-padding);
}

section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    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;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mapa Interactivo */
.map-section {
    background: var(--bg-color);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    height: 500px;
}

#peru-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    height: 100%; /* Asegurar que ocupe todo el alto */
    width: 100%; /* Asegurar que ocupe todo el ancho */
    min-height: 400px; /* Altura mínima */
}

.map-legend {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    height: fit-content;
}

.map-legend h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Missionarios */
.missionaries {
    background: var(--bg-light);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.missionaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.missionary-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.missionary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.missionary-image {
    height: 200px;
    overflow: hidden;
}

.missionary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.missionary-card:hover .missionary-image img {
    transform: scale(1.05);
}

.missionary-content {
    padding: 1.5rem;
}

.missionary-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.missionary-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.missionary-ministry {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.missionary-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.missionary-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.btn-missionary {
    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);
    width: 100%;
    text-align: center;
}

.btn-missionary:hover {
    background: var(--secondary-color);
}

/* Próximas Misiones */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.mission-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mission-image:hover img {
    transform: scale(1.03);
}

.image-caption {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.mission-requirements h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.requirement-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.requirement-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.requirement-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.requirements-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

.requirements-note p {
    margin: 0;
    font-size: 0.9rem;
}

.countdown-container {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
}

.countdown-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.countdown-label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .requirement-item {
        padding: 0.75rem;
    }
}

/* Countdown */
.countdown-container {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.countdown-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Culto Misionero */
.worship-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.worship-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    margin-bottom: 2rem;
}

.worship-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.worship-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.worship-time,
.worship-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.worship-resources h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-color);
}

.resource-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.highlight-card {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    height: fit-content;
}

.highlight-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.highlight-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.highlight-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.btn-worship {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-worship:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.worship-image {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.worship-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.worship-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.worship-image:hover img {
    transform: scale(1.03);
}

.image-caption {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 500;
}

.image-caption p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .worship-image {
        margin-top: 1.5rem;
    }
    
    .image-caption {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
/* Cómo Ayudar */
.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.help-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.help-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.help-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.help-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-help {
    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);
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.btn-help:hover {
    background: var(--secondary-color);
}

/* Historias */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 1.5rem;
}

.story-date {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.story-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.btn-story {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.btn-story:hover {
    color: var(--secondary-color);
}

/* Galería */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-filter {
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.gallery-filter.active,
.gallery-filter:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 500;
}

/* 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);
}

.office-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.office-hours h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* 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;
    font-family: var(--font-primary);
}

.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;
}

.footer-social {
    margin-top: 1.5rem;
}

.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);
}

.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-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);
}

/* Modales */
.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: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10001;
    padding: 2rem;
}

@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-form .form-group {
    margin-bottom: 1.5rem;
}

.btn-modal {
    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);
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.btn-modal:hover {
    background: var(--secondary-color);
}

/* 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;
            }
            
    .map-container {
         grid-template-columns: 1fr;
        height: auto; /* Cambiar a auto para mejor ajuste */
        min-height: 600px;
    }

    #peru-map {
        height: 500px; /* Altura fija para tablets */
        min-height: 500px;
    }
    
    .map-legend {
        order: -1;
        max-width: 500px;
        margin: 0 auto 2rem auto;
        width: 100%;
    }
    
    .worship-content {
        grid-template-columns: 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;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .help-options {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .missionaries-grid,
    .missions-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

/* 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;
    }
}

/* Estilos para Leaflet */
.leaflet-container {
    font-family: var(--font-secondary);
}

.leaflet-popup-content {
    margin: 1rem;
    min-width: 250px;
}

.missionary-popup h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.missionary-popup p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.missionary-popup .btn-popup {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.missionary-popup .btn-popup:hover {
    background: var(--secondary-color);
}