/* ==========================================================
   ESTILOS MODERNOS IPN 2026
   ========================================================== */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Ubuntu', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ==========================================================
   HEADER IPN - DISEÑO MODERNO Y 100% RESPONSIVO
   ========================================================== */

/* Barra Superior */
.top-bar {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span i {
    color: #f59e0b; 
    margin-right: 6px;
}

/* Iconos de Redes en la Barra Superior */
.top-socials {
    display: flex;
    gap: 10px;
}

.top-socials a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.top-socials a:hover {
    background: #ffffff;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Header Principal */
.header-ipn {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-ipn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo con Texto */
.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
    transition: transform 0.3s ease;
}

.logo-box:hover img {
    transform: rotate(6deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Enlaces de Navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links > li > a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active-link::after {
    width: 100%;
}

.nav-links > li > a:hover {
    color: #2563eb;
}

/* Menú Desplegable (PC) */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 160%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    list-style: none;
    min-width: 230px;
    padding: 8px 0;
    border: 1px solid #e2e8f0;
}

.dropdown-container:hover .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a i {
    color: #2563eb;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #0f172a;
}

/* Ocultar contenedor de redes móviles en PC */
.mobile-socials-container {
    display: none;
}

/* ==========================================================
   DISEÑO RESPONSIVE PERFECTO PARA CELULARES
   ========================================================== */
@media (max-width: 768px) {
    /* Adaptamos la barra superior en pantallas chicas para que no estorbe */
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }
    
    .top-bar-text span {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 220px;
    }
    .top-bar-text {
        display: none;
    }
    .top-bar-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }
    .top-right-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    /* Menú móvil desplegable perfectamente centrado y ordenado */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        width: 100%;
        padding: 1.8rem 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        gap: 1.2rem;
        text-align: center;
        align-items: center;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active > li > a {
        font-size: 1.1rem;
        display: block;
        padding: 6px 0;
    }

    /* Submenú en celular centrado */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin-top: 10px;
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    /* Mostrar redes sociales ordenadas dentro del menú móvil */
    .mobile-socials-container {
        display: block;
        margin-top: 5px;
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .mobile-socials a {
        color: #ffffff;
        background: #2563eb;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    }
}


/* --- CONTENEDORES Y TÍTULOS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* --- VERSÍCULO DIARIO (CENTRADÍSIMO) --- */
.verse-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 900px;
    text-align: center;
    border: 1px solid var(--border);
}

#dailyVersesWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#dailyVersesWrapper > div {
    margin: 0 auto !important;
    text-align: center !important;
}

/* --- VIDEOS --- */
.video-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    text-align: center;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- TABLA DE EVENTOS --- */
.events-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin: 3rem 0;
}

.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modern-table th {
    background: #f1f5f9;
    color: var(--dark);
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.modern-table th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.modern-table th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

.modern-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--gray);
}

.modern-table tbody tr:hover {
    background: #f8fafc;
    cursor: pointer;
    color: var(--dark);
}

/* --- GALERÍA & APP --- */
.gallery-section, .app-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    text-align: center;
}

.app-container-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.video-app video {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.app-link img {
    width: 200px;
    transition: transform 0.3s;
}

.app-link img:hover {
    transform: scale(1.05);
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    background: #eef2ff;
    padding: 18px;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card:hover i {
    background: var(--primary);
    color: var(--white);
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: #94a3b8;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* ==========================================================
   DISEÑO RESPONSIVE (MÓVIL) & MENÚ CENTRADO
   ========================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    /* Menú móvil desplegado perfectamente centrado */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        width: 100%;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        font-size: 1.1rem;
        display: block;
        padding: 5px 0;
    }

    /* Submenú adaptado y centrado para celular */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f1f5f9;
        margin-top: 10px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 10px;
        border: none;
        display: none; /* Se abrirá mediante clic táctil */
    }

    .dropdown-menu.show {
        display: block;
    }

    .hero-content img {
        width: 120px;
        height: 120px;
    }

    .section-title {
        font-size: 1.7rem;
    }
}
/* ==========================================================
   HEADER IPN - MODERNO Y RESPONSIVO
   ========================================================== */

/* Barra Superior */
.top-bar {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span i {
    color: #f59e0b; 
    margin-right: 6px;
}

/* Iconos de Redes en la Barra Superior */
.top-socials {
    display: flex;
    gap: 12px;
}

.top-socials a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.top-socials a:hover {
    background: #ffffff;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Header Principal */
.header-ipn {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-ipn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo con Texto */
.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
    transition: transform 0.3s ease;
}

.logo-box:hover img {
    transform: rotate(6deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Enlaces de Navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links > li > a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active-link::after {
    width: 100%;
}

.nav-links > li > a:hover {
    color: #2563eb;
}

/* Menú Desplegable (PC) */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 160%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    list-style: none;
    min-width: 230px;
    padding: 8px 0;
    border: 1px solid #e2e8f0;
}

.dropdown-container:hover .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a i {
    color: #2563eb;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #0f172a;
}

.mobile-socials-container {
    display: none;
}

/* ==========================================================
   RESPONSIVE PARA CELULARES
   ========================================================== */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }
    
    .top-bar-text span {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    /* Menú móvil desplegable centrado */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        width: 100%;
        padding: 1.8rem 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        gap: 1.2rem;
        text-align: center;
        align-items: center;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active > li > a {
        font-size: 1.1rem;
        display: block;
        padding: 6px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin-top: 10px;
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    /* Redes sociales en móvil con espacio separado (gap: 20px) */
    .mobile-socials-container {
        display: block;
        margin-top: 10px;
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 20px; /* Espacio cómodo entre iconos */
    }

    .mobile-socials a {
        color: #ffffff;
        background: #2563eb;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
        transition: transform 0.2s;
    }

    .mobile-socials a:active {
        transform: scale(0.95);
    }
}
/* ==========================================================
   ESTILOS ADICIONALES PARA EL BOTÓN DE LA APP EN EL HEADER
   ========================================================== */
.top-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-app-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s, transform 0.3s;
}

.top-app-btn:hover {
    background: #ffffff;
    color: #2563eb;
    transform: translateY(-2px);
}
/* ==========================================================
   PORTADA HERO - ALTURA AMPLIADA EN PC Y CELULARES
   ========================================================== */
.hero-section-new {
    position: relative !important;
    width: 100% !important;
    height: 500px !important; /* Altura generosa en PC */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #ffffff !important;
    background-color: #0b0f19 !important;
    overflow: hidden !important;
}

.hero-bg-carousel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.hero-bg-carousel img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: opacity 0.5s ease-in-out !important;
}

.hero-overlay-dark {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(11, 15, 25, 0.65) !important;
    z-index: 2 !important;
}

.hero-content-inner {
    position: relative !important;
    z-index: 3 !important;
    max-width: 850px !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
    padding: 5px 16px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #f1f5f9 !important;
}

.hero-content-inner h1 {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6) !important;
}

.hero-content-inner p {
    font-size: 1.15rem !important;
    margin: 0 0 8px 0 !important;
    font-weight: 300 !important;
    opacity: 0.95 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* LOGO REDONDO GRANDE Y VISIBLE */
.hero-admin-link {
    display: inline-block !important;
    width: 210px !important;
    height: 210px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    margin-top: 8px !important;
    transition: transform 0.3s ease !important;
}


.hero-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.transparente {
    opacity: 0.2 !important;
}

/* ==========================================================
   RESPONSIVE PARA CELULARES (¡Altura ampliada hacia abajo!)
   ========================================================== */
@media (max-width: 768px) {
    .hero-section-new {
        height: 600px !important; /* Ahora llega mucho más abajo en móviles */
    }
    .hero-overlay-dark{
        height: 600px !important; /* Ahora llega mucho más abajo en móviles */
    }
    .hero-bg-carousel img{
        height: 600px !important; /* Ahora llega mucho más abajo en móviles */
    }
    .hero-content-inner h1 {
        font-size: 1.7rem !important;
    }
    .hero-content-inner p {
        font-size: 0.95rem !important;
    }
    .hero-admin-link {
        width: 95px !important;  /* Logo grande y protagonista en celulares */
        height: 95px !important;
    }
}
/* ==========================================================
   VERSÍCULO DIARIO - ESTILO LIMPIO Y PROFESIONAL
   ========================================================== */
.verse-section-light {
    position: relative;
    width: 100%;
    padding: 70px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.verse-container {
    max-width: 750px;
    width: 100%;
    text-align: center;
}

.verse-badge-light {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Tarjeta blanca y limpia */
.verse-card-light {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    text-align: left; /* Alineado elegante a la izquierda dentro de la tarjeta */
}

/* Contenedor del versículo */
.verse-widget-wrapper {
    font-size: 1.2rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
    border-left: 4px solid #2563eb; /* Línea decorativa moderna al costado */
    padding-left: 20px;
}

/* ELIMINAR EL SUBRAYADO Y COLOR AZUL FEO DEL SCRIPT EXTERNO */
.verse-widget-wrapper a {
    color: #475569 !important; /* Gris elegante que combina con el texto */
    text-decoration: none !important; /* Adiós al subrayado */
    font-weight: 600 !important;
    font-style: normal !important;
    display: inline-block;
    margin-top: 10px;
    font-size: 1rem;
    pointer-events: none; /* Desactiva el enlace para que no sea clickeable por error */
}

.verse-widget-wrapper a:hover {
    color: #1e293b !important;
    text-decoration: none !important;
}

/* Botón centrado */
.verse-actions-light {
    display: flex;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.verse-btn-main {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.verse-btn-main:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .verse-section-light {
        padding: 40px 15px;
    }
    .verse-card-light {
        padding: 25px 20px;
    }
    .verse-widget-wrapper {
        font-size: 1.05rem;
        padding-left: 15px;
    }
}/* ==========================================================
   VERSÍCULO DIARIO - ESTILO LIMPIO Y PROFESIONAL
   ========================================================== */
.verse-section-light {
    position: relative;
    width: 100%;
    padding: 70px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.verse-container {
    max-width: 750px;
    width: 100%;
    text-align: center;
}

.verse-badge-light {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Tarjeta blanca y limpia */
.verse-card-light {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    text-align: left; /* Alineado elegante a la izquierda dentro de la tarjeta */
}

/* Contenedor del versículo */
.verse-widget-wrapper {
    font-size: 1.2rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
    border-left: 4px solid #2563eb; /* Línea decorativa moderna al costado */
    padding-left: 20px;
}

/* ELIMINAR EL SUBRAYADO Y COLOR AZUL FEO DEL SCRIPT EXTERNO */
.verse-widget-wrapper a {
    color: #475569 !important; /* Gris elegante que combina con el texto */
    text-decoration: none !important; /* Adiós al subrayado */
    font-weight: 600 !important;
    font-style: normal !important;
    display: inline-block;
    margin-top: 10px;
    font-size: 1rem;
    pointer-events: none; /* Desactiva el enlace para que no sea clickeable por error */
}

.verse-widget-wrapper a:hover {
    color: #1e293b !important;
    text-decoration: none !important;
}

/* Botón centrado */
.verse-actions-light {
    display: flex;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.verse-btn-main {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.verse-btn-main:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .verse-section-light {
        padding: 40px 15px;
    }
    .verse-card-light {
        padding: 25px 20px;
    }
    .verse-widget-wrapper {
        font-size: 1.05rem;
        padding-left: 15px;
    }
}
/* ==========================================================
   SECCIÓN PRÓXIMOS EVENTOS - DISEÑO LIMPIO Y REAL
   ========================================================== */
.events-section-modern {
    position: relative;
    width: 100%;
    padding: 90px 20px;
    background: #f8fafc;
}

.events-container {
    max-width: 1100px;
    margin: 0 auto;
}

.events-header {
    text-align: center;
    margin-bottom: 50px;
}

.events-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
}

.events-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.events-subtitle {
    font-size: 1.05rem;
    color: #64748b;
}

/* Cuadrícula adaptativa */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta de Evento */
.event-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    transform: translateY(-50px); /* Ligeramente elevado */
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.1);
    border-color: #cbd5e1;
}

.event-card:hover::before {
    opacity: 1;
}

/* Insignia de Fecha */
.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

/* Cuerpo de la tarjeta con la descripción real */
.event-body {
    margin-bottom: 25px;
}

.event-desc {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6;
}

/* Pie de tarjeta con indicador y botón interactivo */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.event-reminder {
    font-size: 0.85rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Botón de Compartir por WhatsApp elegante */
.event-share-btn {
    background: #25d366; /* Color oficial de WhatsApp */
    color: white;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.event-share-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    color: white;
}

/* Estado vacío */
.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.no-events i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .events-section-modern {
        padding: 60px 15px;
    }
    .events-title {
        font-size: 2rem;
    }
}
/* ==========================================================
   SECCIÓN FOTOS Y VIDEOS - INSTAGRAM MODERNO (2026)
   ========================================================== */
.gallery-section-modern {
    position: relative;
    width: 100%;
    padding: 90px 20px;
    background: #ffffff;
}

.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Tarjeta superior con identidad de Instagram */
.instagram-header-card {
    background: linear-gradient(135deg, #fdf4f5 0%, #fef6ee 50%, #f0f4f8 100%);
    border: 1px solid #f1d5db;
    border-radius: 24px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.instagram-profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Anillo con el gradiente clásico y elegante de Instagram */
.instagram-avatar-ring {
    width: 65px;
    height: 65px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
    flex-shrink: 0;
}

.instagram-tag {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instagram-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.instagram-handle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* Botón de seguir con gradiente institucional */
.instagram-follow-btn {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(193, 53, 132, 0.3);
}

.instagram-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 53, 132, 0.4);
    color: white;
}

/* Contenedor del widget adaptado */
.instagram-feed-wrapper {
    background: #f8fafc;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.01);
    overflow: hidden;
}

/* Adaptabilidad móviles */
@media (max-width: 768px) {
    .gallery-section-modern {
        padding: 60px 15px;
    }
    .instagram-header-card {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .instagram-follow-btn {
        width: 100%;
        justify-content: center;
    }
    .instagram-feed-wrapper {
        padding: 15px;
    }
}
/* ==========================================================
   SECCIÓN DESCARGA APP - ESTILO CLARO Y MODERNO
   ========================================================== */
.app-section-clean {
    position: relative;
    width: 100%;
    padding: 90px 20px;
    background: #f8fafc; /* Fondo claro y luminoso como el resto de la web */
}

.app-container {
    max-width: 1100px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    margin-bottom: 50px;
}

.app-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
}

.app-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.app-subtitle {
    font-size: 1.05rem;
    color: #64748b;
}

/* Tarjeta contenedora principal de fondo blanco */
.app-grid-clean {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

/* Mockup de teléfono para que el video luzca ordenado */
.app-phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-screen {
    width: 100%;
    max-width: 250px;
    background: #0f172a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 4px solid #cbd5e1;
}

.phone-screen video {
    width: 100%;
    height: auto;
    border-radius: 26px;
    display: block;
}

/* Detalles y beneficios */
.app-details-clean {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.app-features-clean {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.5;
}

.feature-row i {
    color: #2563eb;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Botones de acción */
.app-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-top: 10px;
}

.playstore-img {
    max-width: 180px;
    height: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.playstore-img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Estilo del botón secundario de compartir */
.app-share-secondary {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #bfdbfe;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-share-secondary:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    color: #1e40af;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .app-section-clean {
        padding: 60px 15px;
    }
    .app-grid-clean {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        text-align: center;
    }
    .app-actions {
        align-items: center;
    }
    .app-features-clean {
        align-items: flex-start;
        text-align: left;
    }
}
/* ==========================================================
   SECCIÓN SERVICIOS - 3 COLUMNAS IGUALES EN UNA LÍNEA
   ========================================================== */
.services-section-modern {
    position: relative;
    width: 100%;
    padding: 90px 20px;
    background: #f8fafc;
}

.services-container {
    max-width: 1150px; /* Un poco más ancho para que entren cómodas las 3 */
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
}

.services-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.services-subtitle {
    font-size: 1.05rem;
    color: #64748b;
}

/* Forzamos exactamente 3 columnas en computadoras y tablets grandes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch; /* Hace que todas midan la misma altura automáticamente */
}

/* Estilo base para las tarjetas de servicio (iguales en tamaño) */
.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuye el contenido para que el pie quede alineado */
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.static-card {
    cursor: default;
}

.static-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

/* ==========================================
   ESTILO ESPECIAL PARA LA TARJETA DE "EN VIVO"
   ========================================== */
.service-card-live {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.service-card-live:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: #2563eb;
}

/* Insignia parpadeante EN VIVO */
.live-pulse-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* Iconos */
.service-icon-box {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.service-card-live .live-icon {
    background: #dbeafe;
    color: #2563eb;
}

.service-card:hover .service-icon-box {
    background: #2563eb;
    color: #ffffff;
}

/* Textos internos */
.service-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.service-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Pie de la tarjeta de vivo */
.service-action {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.service-card-live:hover .service-action {
    gap: 10px;
}

/* Responsive: en celulares se acomodan una debajo de otra de forma fluida */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna en celulares y tablets pequeñas */
    }
    .services-section-modern {
        padding: 60px 15px;
    }
    .services-title {
        font-size: 2rem;
    }
}
/* ==========================================================
   FOOTER MODERNO Y PROFESIONAL
   ========================================================== */
.footer-modern {
    background: #0f172a; /* Fondo oscuro elegante para cerrar la página con contraste */
    color: #94a3b8;
    padding: 60px 20px 30px 20px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info p {
    color: #94a3b8;
    max-width: 350px;
    line-height: 1.5;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

/* Línea divisoria sutil */
.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

/* Parte baja del footer con créditos */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: #64748b;
}

/* Enlace interactivo de JS Diseños hacia WhatsApp */
.js-designs-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.js-designs-link:hover {
    color: #34d399; /* Tono verde WhatsApp al pasar el mouse */
    text-decoration: underline;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}
/* ==========================================================
   ESTILOS PARA LA PÁGINA "QUIÉNES SOMOS" (MODERNO)
   ========================================================== */
.about-main {
    background: #f8fafc;
    color: #1e293b;
    padding: 60px 0 90px 0;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado de la página */
.about-header-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.about-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
}

.main-title-q {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.main-subtitle-q {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.6;
}

.about-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 40px 0;
}

/* Bloques de contenido */
.about-block {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
}

/* Tarjeta para la fundación */
.foundation-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.foundation-card .texto {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
}

.highlight-text {
    background: #f0f6ff;
    padding: 18px 22px;
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
}

/* Cuadrícula organizada para los Artículos de Fe (A al G) */
.faith-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faith-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faith-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.faith-item-full {
    grid-column: span 2; /* El último artículo ocupa el ancho completo para equilibrar */
}

.faith-item .texto {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.6;
}

/* Sección de Materiales y Tabla Moderna */
.materials-section {
    margin-top: 60px;
}

.materials-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
}

.table-responsive-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.modern-pdf-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modern-pdf-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 18px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.modern-pdf-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}

.modern-pdf-table tr:last-child td {
    border-bottom: none;
}

.modern-pdf-table tr:hover {
    background: #f8fafc;
}

.material-name {
    font-weight: 600;
    color: #0f172a;
}

.material-file {
    color: #64748b;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Botones interactivos para "Abrir" y "Descargar" */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-open {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.btn-open:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.btn-download {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.btn-download:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .faith-grid {
        grid-template-columns: 1fr;
    }
    .faith-item-full {
        grid-column: span 1;
    }
    .about-header-box, .foundation-card {
        padding: 25px;
    }
    .modern-pdf-table th, .modern-pdf-table td {
        padding: 12px 15px;
    }
}
/* ==========================================================
   ESTILOS PARA LA PÁGINA "DECLARACIÓN DE FE" (MODERNO)
   ========================================================== */
.faith-main {
    background: #f8fafc;
    color: #1e293b;
    padding: 60px 0 90px 0;
}

.faith-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezados de sección */
.faith-header-box {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.secondary-header {
    margin-top: 50px;
    text-align: center;
}

.faith-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
}

.faith-title-divider {
    width: 60px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
    margin: 15px 0;
}

.secondary-header .faith-title-divider {
    margin: 15px auto;
}

/* Tarjeta principal contenedora para historia y orígenes */
.faith-content-card {
    background: #ffffff;
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.faith-chapter {
    margin-bottom: 30px;
}

.faith-chapter:last-child {
    margin-bottom: 0;
}

.faith-chapter .subtitulo2 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 700;
}

.faith-chapter .texto {
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.9;
}

.faith-divider-inner {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

/* Cuadrícula para artículos y reglamentos */
.regulations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.regulation-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
}

.regulation-card .texto {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
}

/* Lista de Doctrinas (Tarjetas individuales) */
.doctrines-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.doctrine-item-card {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctrine-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.doctrine-item-card .texto {
    font-size: 1rem;
    color: #334155;
    line-height: 1.9;
}

/* Sub-doctrinas (puntos a, b, c, d, e dentro de sacramentos, cultos y fin) */
.sub-doctrine-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
}

.sub-text {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 3px solid #64748b;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .faith-content-card, .faith-header-box, .doctrine-item-card, .regulation-card {
        padding: 25px 20px;
    }
    .faith-chapter .subtitulo2 {
        font-size: 1.2rem;
    }
}
/* ==========================================================
   ESTILOS ACTUALIZADOS PARA LA PÁGINA "TESTIMONIOS"
   ========================================================== */
.testimonials-main {
    background: #f8fafc;
    color: #1e293b;
    padding: 60px 0 90px 0;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado */
.testimonials-header-box {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    text-align: center;
}

.testimonials-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #bfdbfe;
}

.testimonials-title-divider {
    width: 60px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
    margin: 15px auto 0 auto;
}

/* Pila vertical de Testimonios (Uno debajo del otro) */
.testimonials-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #3b82f6; /* Detalle visual elegante */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.testimonial-icon-box {
    color: #3b82f6;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.08rem;
    color: #334155;
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-footer-card {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.testimonial-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.testimonial-church {
    font-size: 0.9rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   ESTILO DEL FORMULARIO "MÁS LLAMATIVO"
   ========================================================== */
.testimonial-form-wrapper {
    width: 100%;
}

.striking-form-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

/* Banner de color superior llamativo */
.form-top-banner {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    padding: 16px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-test-form {
    padding: 45px;
}

.form-header-title {
    margin-bottom: 30px;
}

.form-header-title .subtitulo2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-header-title .texto {
    color: #64748b;
    font-size: 1rem;
}

.form-grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-field-group.full-width {
    grid-column: span 2;
}

.form-field-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.form-field-group input, 
.form-field-group textarea {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.98rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field-group input:focus, 
.form-field-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-field-group textarea {
    min-height: 220px;
    resize: vertical;
}

/* Botón de Enviar Muy Llamativo con Degradado */
.btn-submit-striking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    margin-bottom: 35px;
}

.btn-submit-striking:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

/* Consideraciones */
.considerations-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
}

.considerations-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.considerations-heading i {
    color: #2563eb;
}

.considerations-text-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.considerations-text-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid-inputs {
        grid-template-columns: 1fr;
    }
    .modern-test-form {
        padding: 25px 20px;
    }
}
/* ==========================================================
   ESTILOS AVANZADOS "GRUPOS DE LA MISIÓN" (SIN HUECOS Y COLORIDAS)
   ========================================================== */
.mission-groups-main {
    background: #f1f5f9;
    color: #1e293b;
    padding: 60px 0 100px 0;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Encabezado Principal */
.mission-intro-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.mission-main-title {
    font-size: 2.1rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: left;
}

.mission-divider {
    width: 70px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
    margin-bottom: 25px;
}

.mission-intro-text {
    color: #334155 !important;
    line-height: 2.0 !important;
    font-size: 1.05rem;
}

.mission-separator {
    height: 1px;
    background: #cbd5e1;
    margin: 40px 0;
    border: none;
}

.section-category-title {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Sistema Masonry (Evita huecos vacíos y organiza por columnas fluidas) */
.mission-masonry-grid {
    columns: 3 320px;
    column-gap: 25px;
}

.mission-masonry-grid-chile {
    columns: 2 380px;
    column-gap: 25px;
}

/* Tarjeta Base Común */
.mission-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    break-inside: avoid; /* Evita que la tarjeta se parta entre columnas */
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   PALETAS DE COLORES Y EFECTOS DIFERENCIADOS POR GRUPO
   ========================================================== */

/* 1. Niños: Toque alegre y azul claro */
.card-ninos { background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%); border-top: 5px solid #0ea5e9; }
.card-ninos .card-icon-header { background: #e0f2fe; color: #0284c7; }

/* 2. Preadolescentes: Toque fresco y verde esmeralda */
.card-preadolescentes { background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%); border-top: 5px solid #10b981; }
.card-preadolescentes .card-icon-header { background: #d1fae5; color: #059669; }

/* 3. Jóvenes: Toque dinámico y ámbar/naranja brillante */
.card-jovenes { background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%); border-top: 5px solid #f59e0b; }
.card-jovenes .card-icon-header { background: #fef3c7; color: #d97706; }

/* 4. Matrimonios Jóvenes: Toque elegante en tonos índigo/violeta */
.card-matrimonios { background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%); border-top: 5px solid #8b5cf6; }
.card-matrimonios .card-icon-header { background: #ede9fe; color: #7c3aed; }

/* 5. Dorcas Argentina: Toque cálido en tonos rosa/coral */
.card-dorcas-arg { background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%); border-top: 5px solid #f43f5e; }
.card-dorcas-arg .card-icon-header { background: #ffe4e6; color: #e11d48; }

/* 6. Varones: Toque sobrio y profesional en tonos pizarra/azul oscuro */
.card-varones { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border-top: 5px solid #334155; }
.card-varones .card-icon-header { background: #e2e8f0; color: #1e293b; }

/* Chile 1: Dorcas Chile (Tono turquesa corporativo) */
.card-dorcas-chile { background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%); border-top: 5px solid #14b8a6; }
.card-dorcas-chile .card-icon-header { background: #ccfbf1; color: #0d9488; }

/* Chile 2: Juvenil Chile (Tono violeta vibrante) */
.card-juvenil-chile { background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%); border-top: 5px solid #a855f7; }
.card-juvenil-chile .card-icon-header { background: #f3e8ff; color: #9333ea; }

/* Elementos internos de las tarjetas */
.card-icon-header {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.subtitulobanner {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 10px;
    transform: none !important;
}

.card-content-body .texto {
    color: #475569 !important;
    line-height: 1.9 !important;
    font-size: 0.95rem;
}

.social-text-label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #1e293b;
}

.social-icons-group {
    display: inline-flex;
    gap: 10px;
    margin-top: 8px;
}

.social-media-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    margin-top: 8px;
}

.social-media-icon:hover {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.1);
}

/* Adaptabilidad para Celulares */
@media (max-width: 768px) {
    .mission-masonry-grid, 
    .mission-masonry-grid-chile {
        columns: 1 100%;
    }
    .mission-intro-box {
        padding: 25px 20px;
    }
    .mission-main-title {
        font-size: 1.6rem;
    }
    .mission-card {
        padding: 25px 20px;
    }
}
/* ==========================================================
   ESTILOS DE INTRODUCCIÓN Y CONTENEDOR DE ESTUDIOS
   ========================================================== */
.mtest {
    background: #f1f5f9;
    padding: 40px 0 80px 0;
}

/* Introducción Reestructurada */
.estudios-intro-section {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.estudios-intro-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.intro-icon-badge {
    background: #dbeafe;
    color: #2563eb;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.intro-text-content .subtitulo {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 12px;
}

.intro-divider {
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin-bottom: 15px;
}

.intro-text-content .parrafo {
    color: #475569 !important;
    line-height: 1.8 !important;
    font-size: 1.02rem;
    font-weight: normal !important;
    margin: 0;
}

/* Contenedor de Pestañas */
.estudios-mission-container {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.estudios-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.estudio-tab-btn {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.estudio-tab-btn i {
    color: #2563eb;
    transition: color 0.25s ease;
}

.estudio-tab-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.estudio-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.estudio-tab-btn.active i {
    color: #ffffff;
}

/* Paneles de Contenido */
.estudio-content-panel {
    display: none;
    animation: fadeInPanel 0.35s ease forwards;
}

.estudio-content-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.estudios-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background: #ffffff;
    padding: 30px;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.estudio-card-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.estudio-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pdf-tag {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pdf-link-icon {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pdf-link-icon:hover {
    background: #2563eb;
    color: #ffffff;
}

.estudio-card-modern h4 {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 8px;
}

.estudio-card-modern p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
}

.iglesia-tag {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    width: 100%;
}

/* ==========================================================
   SECCIÓN DEL FORMULARIO (Adaptado)
   ========================================================== */
.estudios-form-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================================== */
@media (max-width: 768px) {
    .estudios-intro-card {
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px;
    }
    .intro-text-content .subtitulo {
        font-size: 1.4rem;
    }
    .estudios-tabs-nav {
        flex-direction: column;
    }
    .estudio-tab-btn {
        width: 100%;
        justify-content: center;
    }
    .estudios-grid-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* ==========================================================
   ESTILOS NUEVOS PARA LA SECCIÓN DE CONTACTO E IGLESIAS
   ========================================================== */
.mcontacto {
    background: #f1f5f9;
    padding: 40px 0 80px 0;
}

/* Introducción */
.contacto-intro-section {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.contacto-intro-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.contacto-intro-card .intro-icon-badge {
    background: #dbeafe;
    color: #2563eb;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contacto-intro-card .subtitulo {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 12px;
}

.contacto-intro-card .intro-divider {
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin-bottom: 15px;
}

.contacto-intro-card .parrafo {
    color: #475569 !important;
    line-height: 1.8 !important;
    font-size: 1.02rem;
    font-weight: normal !important;
    margin: 0;
}

/* Contenedor de Pestañas */
.contacto-mission-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacto-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.contacto-tab-btn {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.contacto-tab-btn i {
    color: #2563eb;
    transition: color 0.25s ease;
}

.contacto-tab-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.contacto-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.contacto-tab-btn.active i {
    color: #ffffff;
}

/* Paneles de Contenido */
.contacto-content-panel {
    display: none;
    animation: fadeInPanel 0.35s ease forwards;
}

.contacto-content-panel.active {
    display: block;
}

/* Cuadrícula de Tarjetas de Iglesias */
.iglesias-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    background: #ffffff;
    padding: 35px;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.iglesia-card-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.iglesia-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
    background: #ffffff;
}

.iglesia-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.local-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.iglesia-card-modern:hover .local-img-modern {
    transform: scale(1.05);
}

.pais-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.iglesia-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.iglesia-card-content h4 {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.iglesia-card-content h4 i {
    color: #2563eb;
    font-size: 0.95rem;
}

.sector-info {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sector-info i {
    color: #64748b;
}

.btn-maps-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-maps-modern:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ==========================================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================================== */
@media (max-width: 768px) {
    .contacto-intro-card {
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px;
    }
    .contacto-intro-card .subtitulo {
        font-size: 1.4rem;
    }
    .contacto-tabs-nav {
        flex-direction: column;
    }
    .contacto-tab-btn {
        width: 100%;
        justify-content: center;
    }
    .iglesias-grid-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* ==========================================================
   ESTILOS NUEVOS PARA LA SECCIÓN DE ORGANIGRAMA
   ========================================================== */
.morg {
    background: #f1f5f9;
    padding: 40px 0 80px 0;
}

/* Introducción */
.organigrama-intro-section {
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.organigrama-intro-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.organigrama-intro-card .intro-icon-badge {
    background: #dbeafe;
    color: #2563eb;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.organigrama-intro-card .subtitulo {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 12px;
}

.organigrama-intro-card .intro-divider {
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
    margin-bottom: 15px;
}

.organigrama-intro-card .parrafo {
    color: #475569 !important;
    line-height: 1.8 !important;
    font-size: 1.02rem;
    margin: 0;
}

/* Nivel Supremo: Obispo */
.obispo-supreme-wrapper {
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.obispo-supreme-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

.obispo-supreme-card {
    background: #ffffff;
    border: 2px solid #fcd34d;
    border-radius: 22px;
    padding: 25px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.1);
    transition: transform 0.25s ease;
}

.obispo-supreme-card:hover {
    transform: translateY(-3px);
}

.obispo-img-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f59e0b;
    flex-shrink: 0;
}

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

.obispo-info h3 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 800;
    margin: 4px 0;
}

.obispo-info p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cargo-tag-supreme {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.hierarchy-connector-line {
    width: 3px;
    height: 35px;
    background: #cbd5e1;
    margin-top: 10px;
}

/* Pestañas de Países del Organigrama */
.organigrama-mission-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.org-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.org-tab-btn {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.org-tab-btn i {
    color: #2563eb;
    transition: color 0.25s ease;
}

.org-tab-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.org-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.org-tab-btn.active i {
    color: #ffffff;
}

/* Paneles */
.org-content-panel {
    display: none;
    animation: fadeInPanel 0.35s ease forwards;
}

.org-content-panel.active {
    display: block;
}

/* Secciones Internas (Juntas / Consejos / Directorios) */
.org-sub-section {
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.section-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header-title i {
    font-size: 1.3rem;
    color: #2563eb;
    background: #dbeafe;
    padding: 10px;
    border-radius: 12px;
}

.section-header-title h3 {
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
}

/* Cuadrículas de Tarjetas */
.org-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.org-card-modern:hover .org-img {
    transform: scale(1.05);
}


.org-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.org-card-content h4 {
    font-size: 1.02rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

.org-church-info {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================================== */
@media (max-width: 768px) {
    .organigrama-intro-card {
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px;
    }
    .organigrama-intro-card .subtitulo {
        font-size: 1.4rem;
    }
    .org-tabs-nav {
        flex-direction: column;
    }
    .org-tab-btn {
        width: 100%;
        justify-content: center;
    }
    .obispo-supreme-card {
        flex-direction: column;
        text-align: center;
    }
    .obispo-info p {
        justify-content: center;
    }
    .org-grid-box {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   NUEVO DISEÑO DE TARJETAS: CIRCULARES Y CARGO DESTACADO
   ========================================================== */
.org-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.org-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.org-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
    border-color: #cbd5e1;
}

/* Imagen circular llamativa */
.org-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid #2563eb;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    background: #f1f5f9;
    flex-shrink: 0;
}

.org-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.org-card-modern:hover .org-img {
    transform: scale(1.08);
}

/* Contenido de la tarjeta */
.org-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Cargo destacado tipo etiqueta superior */
.org-cargo-badge-prominent {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.org-card-content h4 {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.org-church-info {
    font-size: 0.86rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}