/* 
 * CSS para CLM Central - Nosotros
 * Compatible con todos los navegadores modernos
 * Versión responsive y optimizada
 */

/* ============================================
   VARIABLES CSS CON FALLBACK PARA NAVEGADORES ANTIGUOS
   ============================================ */
: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 con fallback */
    --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #00bcd4 100%);
    --accent-gradient: linear-gradient(135deg, #fbbc05 0%, #ea4335 100%);
    --hero-gradient: linear-gradient(135deg, rgba(26, 42, 108, 0.8) 0%, rgba(26, 115, 232, 0.7) 50%, rgba(52, 168, 83, 0.6) 100%);
    
    /* Tipografía */
    --font-primary: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Inter', 'Segoe UI', Roboto, 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;
}

/* Fallback para navegadores antiguos sin soporte de variables CSS */
.no-cssvars {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
}

/* ============================================
   RESET Y ESTILOS BASE COMPATIBLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box; /* Safari/Chrome */
    -moz-box-sizing: border-box;    /* Firefox */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevenir zoom en iOS */
    -ms-text-size-adjust: 100%;     /* Prevenir zoom en IE */
}

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;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contenedor principal */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Limpiar floats para navegadores antiguos */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   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 linear infinite;
    margin: 0 auto;
    -webkit-animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.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);
    -webkit-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;
    min-height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 50px;
    width: auto;
    max-height: 50px;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* Navegación desktop */
        .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: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Compensar header fijo */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/imagenes/index1.JPG') center/cover no-repeat;
    z-index: 1;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 2;
}

.hero-content {
    display: none;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.6;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-transition: all var(--transition-normal);
}

.btn-hero:hover,
.btn-hero:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    outline: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scrollArrow 2s infinite;
    -webkit-animation: scrollArrow 2s infinite;
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}
@-webkit-keyframes scrollArrow {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: var(--section-padding);
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-light);
}

section:nth-child(odd) {
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   ACCESOS RÁPIDOS
   ============================================ */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.quick-access-item {
    background: var(--bg-color);
    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);
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-access-item:hover,
.quick-access-item:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    outline: none;
}

.quick-access-item.highlighted {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.quick-access-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-access-item.highlighted .quick-access-icon {
    color: white;
}

.quick-access-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quick-access-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   SECCIÓN QUIÉNES SOMOS
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-media {
    position: relative;
}

.media-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    background: var(--bg-light);
}

.video-placeholder {
    background: var(--bg-light);
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.video-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   SECCIÓN VISIÓN Y MISIÓN
   ============================================ */
.vm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.vm-card {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-transition: all var(--transition-normal);
}

.vm-card:hover,
.vm-card:focus {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    outline: none;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.vm-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.vm-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

.values h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    line-height: 1.3;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1rem;
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   SECCIÓN DOCTRINAS
   ============================================ */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    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);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.btn-download:hover,
.btn-download:focus {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    outline: none;
}

.doctrines-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.accordion-header {
    width: 100%;
    background: var(--bg-color);
    border: none;
    padding: 1.5rem 2rem;
    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);
    -webkit-appearance: none;
    -moz-appearance: none;
}

.accordion-header:hover,
.accordion-header:focus {
    background: var(--bg-light);
    outline: none;
}

.accordion-header.active {
    background: var(--primary-color);
    color: white;
}

.accordion-header.active i {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: var(--bg-light);
    -webkit-transition: all var(--transition-normal);
}

.accordion-content.active {
    padding: 1.5rem 2rem;
    max-height: 500px;
}

.accordion-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.accordion-more {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 2rem;
}

.accordion-more p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   SECCIÓN PASTORES
   ============================================ */
.pastors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pastor-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    -webkit-transition: all var(--transition-normal);
}

.pastor-card:hover,
.pastor-card:focus {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    outline: none;
}

.pastor-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    -webkit-transition: transform var(--transition-slow);
}

.pastor-card:hover .pastor-image img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

.pastor-info {
    padding: 2rem;
}

.pastor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.pastor-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pastor-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   NUEVA SECCIÓN: TRANSICIÓN Y FUTURO
   ============================================ */

.transition {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.transition-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.transition-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    height: fit-content;
}

.transition-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.transition:hover .transition-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.overlay-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.transition-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.transition-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.transition-intro .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.leader-info h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leader-info h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.leader-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vision-continuity {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin: 1.5rem 0;
}

.vision-continuity h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vision-continuity h4 i {
    color: var(--primary-color);
}

.transition-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.transition-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

.transition-list li:last-child {
    border-bottom: none;
}

.transition-list li i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.transition-list li strong {
    color: var(--text-color);
}

.future-focus {
    margin: 2rem 0;
}

.future-focus h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.future-focus h4 i {
    color: var(--primary-color);
}

.focus-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.focus-point {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.focus-point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.focus-point i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.focus-point h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.focus-point p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.transition-message {
    margin-top: 2rem;
}

.message-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.message-box i.fa-quote-left {
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.message-box p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.message-box cite {
    font-style: normal;
    font-weight: 600;
    display: block;
    text-align: right;
    opacity: 0.9;
}

/* Estilos para la imagen de la sección Quiénes Somos */
.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive para nueva sección */
@media screen and (max-width: 1024px) {
    .transition-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .transition-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .focus-points {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .focus-points {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    .transition-image {
        max-width: 100%;
    }
    
    .message-box {
        padding: 1.5rem;
    }
    
    .message-box p {
        font-size: 1rem;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
    }
}

/* ============================================
   SECCIÓN GALERÍA
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    -webkit-transition: all var(--transition-normal);
}

.gallery-item:hover,
.gallery-item:focus {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    -webkit-transition: transform var(--transition-slow);
    display: block;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    padding: 1rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    -webkit-transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus .gallery-caption {
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ============================================
   SECCIÓN FAQ
   ============================================ */
.faq-accordion {
    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 2rem;
    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);
    -webkit-appearance: none;
    -moz-appearance: none;
}

.faq-question:hover,
.faq-question:focus {
    background: var(--bg-light);
    outline: none;
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-question.active i {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: var(--bg-light);
    -webkit-transition: all var(--transition-normal);
}

.faq-answer.active {
    padding: 1.5rem 2rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.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;
    width: auto;
}

.footer-logo span {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-mission {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    font-family: var(--font-primary);
    line-height: 1.3;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
    outline: none;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.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);
    -webkit-transition: all var(--transition-normal);
}

.social-icons a:hover,
.social-icons a:focus {
    background: var(--secondary-color);
    transform: translateY(-3px);
    outline: none;
}

.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-copyright {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* ============================================
   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);
    -webkit-transition: all var(--transition-normal);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #128C7E;
    transform: scale(1.1);
    outline: none;
}

.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;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-transition: all var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--secondary-color);
    transform: translateY(-3px);
    outline: none;
}

/* ============================================
   RESPONSIVE DESIGN - DISPOSITIVOS MÓVILES
   ============================================ */

/* Tablets (768px - 1024px) */
@media screen and (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;
            }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .vm-cards {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Tablets pequeñas y móviles grandes (576px - 768px) */
@media screen and (max-width: 768px) {
    /* Navegación móvil */
    .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(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal) ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        gap: 1rem;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin: 0.5rem 0 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal) ease;
        padding: 0;
        border-radius: 8px;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-toggle i {
        transition: transform var(--transition-normal);
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    /* Hero ajustado */
    .hero {
        min-height: 600px;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Layout de una columna */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .vm-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pastors-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajustes de texto */
    .section-title {
        font-size: 2rem;
    }
    
    .back-to-top {
        right: 5rem;
    }
}

/* Móviles pequeños (hasta 576px) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .nav-list {
                padding: 1rem !important;
                max-height: calc(100vh - 70px) !important;
            }
            
            .nav-link {
                padding: 0.8rem 0.5rem !important;
            }
            
            .dropdown-link {
                padding: 0.6rem 1rem 0.6rem 1.8rem !important;
                min-height: 40px !important;
            }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .pastors-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .vm-card {
        padding: 2rem 1.5rem;
    }
    
    .about-features {
        gap: 1.5rem;
    }
    
    .feature {
        gap: 1rem;
    }
    
    .feature i {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        right: 1rem;
        bottom: 5rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .btn-donar,
    .btn-download,
    .btn-hero {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .accordion-header,
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .pastor-info {
        padding: 1.5rem;
    }
}

/* ============================================
   ACCESIBILIDAD Y MEJORES PRÁCTICAS
   ============================================ */

/* Enfocar elementos con teclado */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejorar legibilidad en modo alto contraste */
@media (prefers-contrast: high) {
    .nav-link,
    .dropdown-link,
    .footer-links a,
    .quick-access-item {
        text-decoration: underline;
    }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .spinner,
    .scroll-arrow::after {
        animation: none;
    }
    
    .hero-background {
        transform: none !important;
    }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --bg-light: #1e1e1e;
        --text-color: #e0e0e0;
        --text-light: #b0b0b0;
        --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .header {
        background-color: #1a1a1a;
    }
    
    .nav-link,
    .dropdown-link {
        color: #e0e0e0;
    }
    
    .quick-access-item {
        background: #1e1e1e;
        border-color: #333;
    }
    
    .vm-card,
    .pastor-card,
    .accordion-header,
    .faq-question {
        background: #1e1e1e;
        border-color: #333;
    }
    
    .accordion-content,
    .faq-answer {
        background: #252525;
    }
}

/* ============================================
   COMPATIBILIDAD CON NAVEGADORES ANTIGUOS
   ============================================ */

/* Soporte para IE 10-11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .container {
        display: block;
    }
    
    .header .container {
        display: flex;
        flex-direction: row;
    }
    
    .quick-access-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
    }
    
    .about-content {
        display: -ms-grid;
        -ms-grid-columns: 1fr 4rem 1fr;
    }
    
    .vm-cards {
        display: -ms-grid;
        -ms-grid-columns: 1fr 3rem 1fr;
    }
}

/* Soporte para Safari antiguo */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

/* ============================================
   CLASES DE UTILIDAD
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Estados de carga */
img.loading {
    opacity: 0.5;
    background: #f0f0f0;
}

img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}