/* ==========================================================================
   Estilos Generales & Sistema de Diseño (Mobile-First)
   ========================================================================== */

/* Importar la tipografía Inter si no se cargó vía HTML */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-fondo-oscuro);
    color: var(--color-texto-claro);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-dorado);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--color-dorado-claro);
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-container {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--color-borde-dorado);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dorado);
    text-align: center;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-dorado);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* Estado Vacío (Avisos/Noticias) */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--color-borde-dorado);
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-texto-muted);
}

.empty-text {
    color: var(--color-texto-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   Cabecera y Navegación (Header & Nav)
   ========================================================================== */

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(26, 20, 13, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 1.2rem 0;
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-imp {
    color: var(--color-dorado);
    border-bottom: 2px solid var(--color-dorado);
    padding-bottom: 2px;
}

/* Botón Hamburguesa */
.menu-toggle {
    background: none;
    border: none;
    color: var(--color-texto-claro);
    font-size: 2rem;
    display: block;
    line-height: 1;
    z-index: 1001;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle:hover {
    color: var(--color-dorado);
}

/* Menú Móvil Colapsado */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-fondo-oscuro);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    border-left: 1px solid var(--color-borde-dorado);
}

.nav-menu.open {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--color-texto-claro);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-dorado);
    border-bottom-color: var(--color-borde-dorado);
    padding-left: 0.5rem;
}

/* ==========================================================================
   Sección 1: Hero & Carrusel
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Ajuste para móviles */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 20, 13, 0.55);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-dorado-claro);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Micro-animaciones iniciales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 1.2s ease-out forwards;
}

.animate-fade-delay {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.4s forwards;
}

/* ==========================================================================
   Sección 2: Avisos Semanales (Timeline)
   ========================================================================== */

.avisos-section {
    background-color: var(--color-fondo-oscuro);
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Línea vertical izquierda en móvil */
.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-borde-dorado) 0%, var(--color-dorado) 50%, var(--color-borde-dorado) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 45px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Nodo de fecha */
.timeline-date-node {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    width: 12px;
    height: 12px;
    background-color: var(--color-fondo-oscuro);
    border: 3px solid var(--color-dorado);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px rgba(217, 154, 78, 0.4);
}

.timeline-date-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dorado-claro);
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* Contenedor de tarjetas — 1 columna base (móvil) */
.timeline-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Imagen de cabecera: altura controlada para no ocupar toda la pantalla */
.aviso-imagen-cabecera img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 220px; /* En móvil controlado */
}

/* Tarjeta de Aviso */
.aviso-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-borde-dorado);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.aviso-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 154, 78, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.aviso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.aviso-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(217, 154, 78, 0.1);
    color: var(--color-dorado);
}

/* Colores de tags según categoría */
.category-predicacion .aviso-tag {
    background-color: rgba(217, 154, 78, 0.15);
    color: var(--color-dorado-claro);
}

.category-oracion .aviso-tag {
    background-color: rgba(144, 238, 144, 0.1);
    color: #90ee90;
}

.category-clase .aviso-tag {
    background-color: rgba(135, 206, 250, 0.1);
    color: #87cefa;
}

.aviso-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-texto-muted);
}

.icon-clock {
    width: 14px;
    height: 14px;
}

.aviso-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.aviso-body {
    font-size: 0.95rem;
    color: var(--color-texto-claro);
    margin-bottom: 0.5rem;
    opacity: 0.9;
    /* Limitar a 3 líneas por defecto */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    transition: none;
}

.aviso-body.expandido {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin-bottom: 1rem;
}

.btn-seguir-leyendo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--color-borde-dorado);
    color: var(--color-dorado);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-seguir-leyendo:hover {
    background-color: rgba(217, 154, 78, 0.15);
    border-color: var(--color-dorado);
}

.aviso-lugar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-texto-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.75rem;
}

.icon-map {
    width: 14px;
    height: 14px;
    color: var(--color-dorado);
    flex-shrink: 0;
}

/* ==========================================================================
   Sección 3: Noticias Recientes
   ========================================================================== */

.noticias-section {
    background-color: rgba(26, 20, 13, 0.97);
}

.noticias-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.noticia-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-borde-dorado);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 154, 78, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.noticia-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.noticia-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-date {
    font-size: 0.8rem;
    color: var(--color-dorado);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.noticia-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.noticia-excerpt {
    font-size: 0.95rem;
    color: var(--color-texto-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.noticia-link {
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.noticia-link:hover {
    border-bottom-color: var(--color-dorado-claro);
}

/* ==========================================================================
   Sección 4: Pan de Vida
   ========================================================================== */

.pan-de-vida-section {
    position: relative;
    min-height: 350px;
    border-bottom: 1px solid var(--color-borde-dorado);
    overflow: hidden;
    background-color: var(--color-fondo-oscuro);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pan-de-vida-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* La imagen de fondo ya NO está aquí: vive en .pan-vida-bg hijo */
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pan-de-vida-slide.active {
    opacity: 1;
    z-index: 2;
}

/*
 * Capa de imagen de fondo para el efecto parallax.
 *
 * Se sobredimensiona al 130% del contenedor en ambas dimensiones para que,
 * al desplazarse con transform: translate3d(), nunca aparezcan bordes vacíos
 * en los extremos del recorrido de scroll.
 *
 * El JS de parallax (pan-de-vida-parallax.js) actualiza su propiedad
 * transform en cada frame de requestAnimationFrame.
 * Si JS falla, la imagen queda centrada y estática (degradación elegante).
 *
 * NOTA: NO se usa background-attachment: fixed porque no funciona
 * correctamente en iOS Safari (glitches / comportamiento estático).
 */
.parallax-bg {
    position: absolute;
    top: -15%;          /* Centrado: (130% - 100%) / 2 = 15% */
    left: -15%;         /* Ídem horizontal, aunque el parallax solo es vertical */
    width: 130%;
    height: 130%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;    /* Promueve la capa a GPU */
    transform: translate3d(0, 0, 0);
    z-index: 0;
    pointer-events: none;
}

/* Accesibilidad: desactivar parallax si el sistema prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg {
        /* Restablecer posición y tamaño normal; el fondo queda estático */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        will-change: auto;
        transform: none;
    }
}

.pan-de-vida-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 20, 13, 0.65);
    z-index: 1;
}

.pan-de-vida-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.pan-de-vida-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-dorado);
    margin-bottom: 1.5rem;
    display: block;
}

.versiculo-texto {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--color-texto-claro);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.versiculo-referencia {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dorado-claro);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Sección 5: Galería de Fotos (Grid Placeholders)
   ========================================================================== */

.galeria-section {
    background-color: var(--color-fondo-oscuro);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en móvil */
    gap: 0.75rem;
}

.galeria-item-placeholder {
    aspect-ratio: 1 / 1;
    background-color: var(--color-borde-dorado);
    border: 1px solid rgba(217, 154, 78, 0.15);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.galeria-item-placeholder:hover {
    background-color: rgba(217, 154, 78, 0.4);
    transform: scale(1.03);
}

.galeria-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(26, 20, 13, 0.95) 100%);
    padding: 25px 8px 8px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.galeria-item-placeholder:hover .galeria-item-info {
    opacity: 1;
}

.galeria-item-album {
    color: var(--color-dorado);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.placeholder-icon {
    width: 28px;
    height: 28px;
    color: var(--color-dorado);
    opacity: 0.5;
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}


.galeria-more-container {
    text-align: center;
    margin-top: 3.5rem;
}

.btn-galeria-more {
    display: inline-block;
    border: 1px solid var(--color-dorado);
    color: var(--color-dorado);
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-galeria-more:hover {
    background-color: var(--color-dorado);
    color: var(--color-fondo-oscuro);
}

/* ==========================================================================
   Pie de Página (Footer)
   ========================================================================== */

.main-footer {
    background-color: #110d08;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    color: var(--color-texto-muted);
    border-top: 1px solid rgba(217, 154, 78, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 1rem;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-address svg {
    width: 16px;
    height: 16px;
    color: var(--color-dorado);
    flex-shrink: 0;
}

.footer-nav h4,
.footer-social h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--color-texto-muted);
}

.footer-nav a:hover {
    color: var(--color-dorado-claro);
    padding-left: 0.25rem;
}

.footer-social p {
    margin-bottom: 1.25rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-borde-dorado);
    border-radius: 50%;
    color: var(--color-dorado);
}

.social-icons a:hover {
    background-color: var(--color-dorado);
    color: var(--color-fondo-oscuro);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Media Queries: Tablet & Escritorio (Media Queries)
   ========================================================================== */

/* TABLET (desde 768px) */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.1rem;
    }

    /* Hero */
    .hero-section {
        height: 90vh;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    /* Avisos Timeline — tablet: línea a la izquierda, 2 columnas de tarjetas */
    .timeline-line {
        left: 15px;
        transform: none;
    }

    .timeline-item {
        padding-left: 45px;
        width: 100%;
        margin-bottom: 4rem;
        left: auto;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: auto;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-date-node,
    .timeline-item:nth-child(even) .timeline-date-node {
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 10px;
        transform: none;
    }

    .timeline-item:nth-child(odd) .aviso-header,
    .timeline-item:nth-child(even) .aviso-header {
        flex-direction: row;
    }

    .timeline-item:nth-child(odd) .aviso-lugar,
    .timeline-item:nth-child(even) .aviso-lugar {
        justify-content: flex-start;
    }

    /* 2 columnas en tablet */
    .timeline-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Noticias */
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Galería */
    .galeria-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en tablet */
        gap: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ESCRITORIO (desde 1024px) */
@media (min-width: 1024px) {
    /* Header & Nav */
    .main-header {
        padding: 1.8rem 0;
    }

    .menu-toggle {
        display: none; /* Ocultar hamburguesa */
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        flex-direction: row;
        padding: 0;
        border-left: none;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 2.2rem;
    }

    .nav-menu a {
        font-size: 0.95rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0.25rem 0;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        padding-left: 0;
    }

    /* Hero */
    .hero-section {
        height: 100vh;
    }

    .hero-title {
        font-size: 4rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

    /* Timeline — escritorio: 3 columnas de tarjetas */
    .timeline-cards-container {
        display: grid;
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Imagen de cabecera en PC: altura fija tipo cuadrado Instagram */
    .aviso-imagen-cabecera img {
        max-height: 280px;
        object-fit: cover;
        object-position: center top;
    }

    /* Noticias (4 columnas en escritorio) */
    .noticias-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .noticia-img {
        height: 170px;
    }

    .noticia-title {
        font-size: 1.15rem;
    }

    /* Pan de vida */
    .pan-de-vida-section {
        min-height: 420px;
    }

    .versiculo-texto {
        font-size: 1.8rem;
    }

    /* Galería */
    .galeria-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 columnas en escritorio */
    }
}

/* ==========================================================================
   Estilos para el Cuerpo de las Noticias (cuerpos importados de WordPress, etc.)
   ========================================================================== */
.noticia-cuerpo img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 2rem auto;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.noticia-cuerpo figure {
    max-width: 100% !important;
    width: auto !important;
    margin: 2rem auto;
}

.noticia-cuerpo figure img {
    max-width: 100% !important;
    height: auto !important;
}

.noticia-cuerpo iframe,
.noticia-cuerpo video,
.noticia-cuerpo embed {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    margin: 2rem auto;
    display: block;
}

.noticia-cuerpo table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto;
    display: block;
}

.noticia-cuerpo p {
    margin-bottom: 1.5rem;
}

/* Ocultar elementos residuales de plugins de WordPress (gráficos de visitas, etc.) */
.noticia-cuerpo svg[data-icon="chart-bar"],
.noticia-cuerpo img[src*="page-views-count"],
.noticia-cuerpo img[src*="ajax-loader"] {
    display: none !important;
}


