                /* Mostrar modal de galería de fotos solo cuando tiene is-open */
                .modal-foto-slider {
                    display: none;
                }
                .modal-foto-slider.is-open {
                    display: flex !important;
                }
                /* Botón de cerrar flotante para el modal de galería de fotos */
                .close-modal-foto-slider {
                    position: fixed !important;
                    top: 24px !important;
                    right: 36px !important;
                    color: #fff;
                    background: rgba(0,0,0,0.55);
                    border-radius: 50%;
                    width: 54px;
                    height: 54px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 44px;
                    font-weight: bold;
                    cursor: pointer;
                    z-index: 40000;
                    transition: background 0.2s, color 0.2s, transform 0.3s;
                    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
                    line-height: 1;
                    border: 2px solid #fff;
                }
                .close-modal-foto-slider:hover {
                    background: #dd1515;
                    color: #fff;
                    transform: rotate(90deg) scale(1.08);
                }
        /* Botón de cerrar flotante para el modal de foto zoom */
        .close-modal-foto {
            position: fixed !important;
            top: 24px !important;
            right: 36px !important;
            color: #fff;
            background: rgba(0,0,0,0.55);
            border-radius: 50%;
            width: 54px;
            height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 44px;
            font-weight: bold;
            cursor: pointer;
            z-index: 40000;
            transition: background 0.2s, color 0.2s, transform 0.3s;
            box-shadow: 0 2px 12px rgba(0,0,0,0.18);
            line-height: 1;
            border: 2px solid #fff;
        }
        .close-modal-foto:hover {
            background: #dd1515;
            color: #fff;
            transform: rotate(90deg) scale(1.08);
        }
/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(138deg, #fff 0%, #fff 100%);
}

.main-content {
    width: 100%;
    padding: 40px 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 94vw;
    margin: 0 auto;
    max-width: none;
}

@media (max-width: 1200px) and (min-width: 901px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .column:nth-child(4) {
        grid-column: 1 / span 3;
        grid-row: 2;
        width: 98% !important;
        margin: 0 auto;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
    }
    .column:nth-child(4) section {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }
    .slider-comentarios,
    .slider-preguntas {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    .comentario-slide,
    .pregunta-slide {
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        min-height: unset !important;
        height: auto !important;
    }
    .comentario-slide:last-child,
    .pregunta-slide:last-child {
        margin-bottom: 0 !important;
    }
    .comentario-slide:empty,
    .pregunta-slide:empty {
        display: none !important;
    }
}
@media (max-width: 900px) and (min-width: 769px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}


        .column {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            position: relative;
        }


        .column-header {
            background: linear-gradient(135deg, #f8f7f7 0%, #eae7e7 100%);
            color: #000;
            padding: 20px;
            text-align: center;
            font-size: 14px;
            font-weight: bold;
        }

        /* Ajuste: eliminar espacio superior solo en la columna de fotos */
        .column[aria-label="Galería de fotos"] .column-header {
            padding-top: 8px;
            padding-bottom: 12px;
        }
        .column[aria-label="Galería de fotos"] .slider-container {
            margin-top: 0;
        }
        .column[aria-label="Galería de fotos"] .slider-item {
            padding-top: 8px;
        }

        .column-header i {
            margin-right: 8px;
            color: #000;
        }

        .slider-container {
            position: relative;
            /* height: 600px eliminado para permitir altura automática en el rango de 1200px a 901px */
            overflow: visible;
        }

        .slider-item {
            display: none;
            /* height: 100%; eliminado para permitir altura automática */
            padding: 20px;
        }

        .slider-item.active {
            display: block;
            animation: fadeIn 0.5s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .slider-controls {
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #808080;
            cursor: pointer;
            transition: background 0.3s;
        }

        .slider-dot.active {
            background: #dd1515;
        }

        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(221, 21, 21, 0.8);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
            z-index: 10;
        }

        .slider-arrow:hover {
            background: rgba(139, 0, 0, 0.9);
        }

        .slider-arrow.prev {
            left: 10px;
        }

        .slider-arrow.next {
            right: 10px;
        }

        /* Estilos para Noticias */
        .noticia-item {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .noticia-item img {
              width: min(78%, 320px);
              max-width: 100%;
              height: 360px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
            object-position: top;
              align-self: center;
        }

        .noticia-item h3 {
            color: #000;
            font-size: 16px;
            margin-bottom: 0px;
            line-height: 1.4;
        }

        .noticia-item .fecha {
            color: #666;
            font-size: 14px;
            margin-top: 5px;
        }

        /* Estilos para Preguntas */
        .pregunta-item {
            /* height eliminado para permitir altura automática */
            display: flex;
            flex-direction: column;
        }

        .pregunta-item .icono-pregunta {
            width: 100%;
            /* height: 250px eliminado para permitir altura automática */
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 8px;
                margin-bottom: 0;
        }

        .pregunta-item .icono-pregunta i {
            font-size: 80px;
            color: #000;
        }

        .pregunta-item h3 {
            color: #000;
            font-size: 16px;
            margin-bottom: 0px;
            line-height: 1.4;
        }

        .pregunta-item .fecha {
            color: #666;
            font-size: 14px;
            margin-top: 5px;
        }

        .pregunta-item .extracto {
            color: #333;
            font-size: 14px;
            line-height: 1.6;
            margin: 12px 0;
            display: -webkit-box;
            -webkit-line-clamp: 8;
            -webkit-box-orient: vertical;
            line-clamp: 8;
            overflow: hidden;
            max-height: 180px;
            text-overflow: ellipsis;
        }
        .pregunta-slide {
            padding: 6px 8px;
            min-height: unset;
        }
                .comentario-slide {
                    padding: 6px 8px;
                    min-height: unset;
                }
        .pregunta-slide:last-child {
            margin-bottom: 0 !important;
        }

        .pregunta-item .estado {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-top: 8px;
        }

        .pregunta-item .estado.pendiente {
            background: #fff3cd;
            color: #856404;
        }

        .pregunta-item .estado.respondido {
            background: #d4edda;
            color: #155724;
        }

        /* Estilos para Fotos */
        .foto-item {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
                justify-content: flex-start;
        }

        .foto-item img {
            width: 100%;
                height: 560px;
            object-fit: cover;
            border-radius: 8px;
                margin-top: 10px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .foto-item img:hover {
            transform: scale(1.02);
        }

        .foto-item h3 {
            color: #000;
            font-size: 18px;
            text-align: center;
        }

        /* Estilos para Noticias */
        .noticia-item .extracto {
            color: #333;
            font-size: 14px;
            line-height: 1.6;
            margin: 12px 0;
            display: -webkit-box;
            -webkit-line-clamp: 8;
            -webkit-box-orient: vertical;
            line-clamp: 8;
            overflow: hidden;
            max-height: 180px;
            text-overflow: ellipsis;
        }

        .btn-leer-mas {
            background: linear-gradient(138deg, #dd1515 0%, #8b0000 100%);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-block;
            margin-top: 10px;
        }

        .btn-leer-mas:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(221, 21, 21, 0.3);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 30000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.7);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 0 auto;
            padding: 0;
            border-radius: 12px;
            width: 90%;
            max-width: 900px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            animation: slideDown 0.3s;
            height: 100vh;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        @keyframes slideDown {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
           /* background: linear-gradient(138deg, #dd1515 0%, #8b0000 100%);
            color: white;*/
            background: #fff;
            color: #000;
            padding: 20px 30px;
            border-radius: 12px 12px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 24px;
        }

        .close-modal-fixed {
            position: fixed;
            top: 24px;
            right: 36px;
            color: #fff;
            background: rgba(0,0,0,0.55);
            border-radius: 50%;
            width: 54px;
            height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 44px;
            font-weight: bold;
            cursor: pointer;
            z-index: 40000;
            transition: background 0.2s, color 0.2s, transform 0.3s;
            box-shadow: 0 2px 12px rgba(0,0,0,0.18);
            line-height: 1;
            border: 2px solid #fff;
        }
        .close-modal-fixed:hover {
            background: #dd1515;
            color: #fff;
            transform: rotate(90deg) scale(1.08);
        }

        .modal-body {
            padding: 30px;
            flex: 1 1 auto;
            overflow-y: auto;
            min-height: 0;
        }

        .modal-body img {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .modal-body .fecha-modal {
            color: #999;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .modal-body .detalle-completo {
            color: #333;
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 25px;
            text-align: justify;
        }

        .segundas-fotos {
            margin-top: 30px;
        }

        .segundas-fotos h3 {
            color: #000;
            font-size: 18px;
            margin-bottom: 15px;
        }

        .galeria-segundas {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .galeria-segundas img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .galeria-segundas img:hover {
            transform: scale(1.05);
        }

        /* Modal de Fotos con Zoom */
        .modal-foto {
            display: none;
            position: fixed;
            z-index: 30010;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.95);
            animation: fadeIn 0.3s;
        }

        .modal-foto-content {
            position: relative;
            margin: auto;
            padding: 0;
            width: 90%;
            max-width: 1200px;
            height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 5vh;
        }

        .modal-foto-content img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
            cursor: move;
        }

        .modal-foto-content img.zoomed {
            cursor: move;
        }

        .close-foto {
            position: absolute;
            top: 20px;
            right: 40px;
            color: white;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            z-index: 30011;
            transition: all 0.3s;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        .close-foto:hover {
            transform: rotate(90deg);
            color: #dd1515;
        }

        .foto-titulo-modal {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 18px;
            z-index: 30011;
        }

        .zoom-controls {
            position: absolute;
            bottom: 30px;
            right: 40px;
            display: flex;
            gap: 10px;
            z-index: 30011;
        }

        .zoom-btn {
            background: rgba(221, 21, 21, 0.9);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .zoom-btn:hover {
            background: rgba(139, 0, 0, 0.9);
            transform: scale(1.1);
        }

        /* Estilos para Videos */
        .video-item {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .video-item iframe {
            width: 100%;
            height: 280px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .video-item h3 {
            color: #000;
            font-size: 18px;
            line-height: 1.4;
        }

        /* Estilos para Columna 4 */
        .content-box {
            padding: 20px;
            border-bottom: 2px solid #f0f0f0;
        }

        .content-box:last-child {
            border-bottom: none;
        }

        .content-box h3 {
            color: #0000;
            font-size: 16px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .content-box h3 i {
            margin-right: 8px;
        }

        .content-box .texto {
            color: #333;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        .content-box .respuesta {
            background: #f8f9fa;
            padding: 12px;
            border-left: 3px solid #dd1515;
            margin-top: 10px;
            border-radius: 4px;
        }

        .content-box .respuesta strong {
            color: #000;
            display: block;
            margin-bottom: 5px;
        }

        .content-box .meta {
            color: #999;
            font-size: 12px;
            margin-top: 8px;
        }

        .no-content {
            text-align: center;
            color: #999;
            padding: 40px 20px;
        }

        .no-content i {
            font-size: 50px;
            margin-bottom: 15px;
            display: block;
        }

        body.modal-inicio-activo .navbar,
        body.modal-inicio-activo .navbar .container-fluid,
        body.modal-inicio-activo .navbar-collapse,
        body.modal-inicio-activo .dropdown-menu,
        body.modal-inicio-activo .dropdown-submenu {
            visibility: hidden !important;
            pointer-events: none !important;
        }

        /* Eliminados media queries repetidos para evitar conflictos */
    