/* Botón Volver a Noticias - estilo institucional */
.btn-volver-noticias {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: #1e3a8a !important; /* azul institucional */
    color: #fff !important;
    margin-bottom: 2rem !important;
    margin-top: 2.5rem !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-volver-noticias:hover {
    background-color: #374151 !important;
    color: #f59e0b !important;
}
/* Alineación uniforme para el bloque 'Volver' en notas
   Evita editar cada archivo HTML: fuerza la misma distancia
   entre el menú principal y el botón "volver".
   mt-16 de Tailwind equivale a 4rem, lo usamos aquí. */
.enlace-volver {
    margin-top: 4rem !important;
    margin-bottom: 2rem !important;
}
/* CSS común para todas las noticias - Instituto Universitario del Sur */
/* Reemplaza Tailwind CSS con estilos personalizados */

/* Variables CSS personalizadas */
:root {
    --navy: #1e3a8a;
    --gold: #f59e0b;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Estilos críticos para asegurar que el contenido se muestre */
.article-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
}

.article-content p {
    display: block !important;
    margin-bottom: 1.5rem !important;
}

.article-content div {
    display: block !important;
}

/* Asegurar que las imágenes se muestren */
img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Asegurar que el contenido principal sea visible */
main {
    display: block !important;
    visibility: visible !important;
    min-height: 500px !important;
}

article {
    display: block !important;
    visibility: visible !important;
    min-height: 400px !important;
}

/* Corregir colores personalizados */
.text-navy {
    color: #1e3a8a !important;
}

.bg-navy {
    background-color: #1e3a8a !important;
}

.text-gold {
    color: #f59e0b !important;
}

.bg-gold {
    background-color: #f59e0b !important;
}

/* Asegurar que el header se muestre correctamente */
.header-no-margin {
    margin: 0 !important;
}

/* ========================================== */
/* IMPORTANTE: NO MODIFICAR EL MENÚ PRINCIPAL */
/* ========================================== */
/* 
 * El menú principal debe ser EXACTAMENTE igual al de index.html
 * Los estilos del menú se manejan desde:
 * - css/styles.css (estilos base del header y navegación)
 * - css/dropdown-menu.css (menús desplegables)
 * - css/mobile-menu.css (navegación móvil)
 * 
 * NO SOBRESCRIBIR estos estilos aquí para mantener consistencia
 * con la página principal
 */

/* ========================================== */
/* IMPORTANTE: NO MODIFICAR EL MENÚ PRINCIPAL */
/* ========================================== */
/* 
 * El menú principal debe ser EXACTAMENTE igual al de index.html
 * Los estilos del menú se manejan desde:
 * - css/styles.css (estilos base del header y navegación)
 * - css/dropdown-menu.css (menús desplegables)
 * - css/mobile-menu.css (navegación móvil)
 * 
 * NO SOBRESCRIBIR estos estilos aquí para mantener consistencia
 * con la página principal
 */

/* Asegurar que el breadcrumb se muestre */
.bg-gray-100 {
    background-color: #f3f4f6 !important;
}

/* Asegurar que el contenido de la noticia se muestre */
.prose {
    display: block !important;
    visibility: visible !important;
    color: #374151 !important;
    max-width: none !important;
}

.prose p {
    display: block !important;
    margin-bottom: 1rem !important;
    line-height: 1.75 !important;
}

/* Asegurar que la galería se muestre */
.grid {
    display: grid !important;
}

/* Asegurar que los botones se muestren */
.btn-primary {
    display: inline-block !important;
    background-color: #2563eb !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
}

/* Asegurar que el sidebar se muestre */
[class*="lg:w-1/3"] {
    width: 33.333333% !important;
}

/* Layout principal del contenido */
.flex.flex-col.lg\:flex-row {
    display: flex !important;
    flex-direction: column !important;
}

@media (min-width: 1024px) {
    .flex.flex-col.lg\:flex-row {
        flex-direction: row !important;
    }
}

/* Contenido principal del artículo */
.lg\:w-2\/3 {
    width: 100% !important;
}

@media (min-width: 1024px) {
    .lg\:w-2\/3 {
        width: 66.666667% !important;
    }
}

/* Sidebar */
.lg\:w-1\/3 {
    width: 100% !important;
    margin-top: 2rem !important;
}

@media (min-width: 1024px) {
    .lg\:w-1\/3 {
        width: 33.333333% !important;
        margin-top: 0 !important;
    }
}

/* Espaciado entre contenido y sidebar */
.gap-8 {
    gap: 2rem !important;
}

@media (min-width: 1024px) {
    .gap-8 {
        gap: 2rem !important;
    }
}

/* Asegurar que el footer se muestre */
footer {
    display: block !important;
    visibility: visible !important;
}

/* Estilos del header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5% !important;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 30;
}

/* Header fijo */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ajustar el body para el header fijo */
body {
    padding-top: 70px !important;
}

/* Reducir espacios enormes en el header */
.header-no-margin {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reducir espacios en la sección del artículo */
.max-w-7xl.mx-auto.px-4.sm\:px-6.lg\:px-8.py-8 {
    padding-top: 0.0625rem !important;
    padding-bottom: 0.75rem !important;
}

/* Reducir espacios entre elementos del artículo */
.article-header-section {
    margin-bottom: 2rem !important;
}

/* Espaciado compacto para los botones de compartir */
.flex.items-center.space-x-3.py-4.border-t.border-b.border-gray-200 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

/* Colores correctos para los botones de compartir */
.flex.items-center.space-x-3 button {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

/* Facebook - Azul correcto */
.flex.items-center.space-x-3 button.bg-blue-600 {
    background-color: #1877f2 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button.bg-blue-600:hover {
    background-color: #166fe5 !important;
}

/* X/Twitter - Negro correcto */
.flex.items-center.space-x-3 button.bg-black {
    background-color: #000000 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button.bg-black:hover {
    background-color: #14171a !important;
}

/* WhatsApp - Verde correcto */
.flex.items-center.space-x-3 button.bg-green-500 {
    background-color: #25d366 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button.bg-green-500:hover {
    background-color: #128c7e !important;
}

/* LinkedIn - Azul correcto */
.flex.items-center.space-x-3 button.bg-blue-700 {
    background-color: #0077b5 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button.bg-blue-700:hover {
    background-color: #005885 !important;
}

/* Copiar enlace - Gris correcto */
.flex.items-center.space-x-3 button.bg-gray-600 {
    background-color: #6b7280 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button.bg-gray-600:hover {
    background-color: #4b5563 !important;
}

/* Mejorar la apariencia de los botones de compartir */
.flex.items-center.space-x-3 button i {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    display: block !important;
    text-align: center !important;
}

/* Asegurar que los iconos de Font Awesome se muestren */
.fab.fa-facebook-f,
.fab.fa-x-twitter,
.fab.fa-whatsapp,
.fab.fa-linkedin-in,
.fas.fa-link {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ELIMINAR COMPLETAMENTE CUALQUIER COLOR AMARILLO O CONFLICTO */
.flex.items-center.space-x-3 button {
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Forzar colores específicos con máxima especificidad */
.flex.items-center.space-x-3 button[onclick*="facebook"] {
    background-color: #1877f2 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button[onclick*="x"] {
    background-color: #000000 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"] {
    background-color: #25d366 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"] {
    background-color: #0077b5 !important;
    color: white !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"] {
    background-color: #6b7280 !important;
    color: white !important;
}

/* Hover states */
.flex.items-center.space-x-3 button[onclick*="facebook"]:hover {
    background-color: #166fe5 !important;
}

.flex.items-center.space-x-3 button[onclick*="x"]:hover {
    background-color: #14171a !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"]:hover {
    background-color: #128c7e !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"]:hover {
    background-color: #005885 !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"]:hover {
    background-color: #4b5563 !important;
}

/* ELIMINAR CUALQUIER COLOR AMARILLO O CONFLICTO - MÁXIMA PRIORIDAD */
.flex.items-center.space-x-3 button.bg-blue-600,
.flex.items-center.space-x-3 button.bg-black,
.flex.items-center.space-x-3 button.bg-green-500,
.flex.items-center.space-x-3 button.bg-blue-700,
.flex.items-center.space-x-3 button.bg-gray-600 {
    background-color: transparent !important;
}

/* Aplicar colores correctos después de limpiar */
.flex.items-center.space-x-3 button[onclick*="facebook"] {
    background-color: #1877f2 !important;
}

.flex.items-center.space-x-3 button[onclick*="x"] {
    background-color: #000000 !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"] {
    background-color: #25d366 !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"] {
    background-color: #0077b5 !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"] {
    background-color: #6b7280 !important;
}

/* ELIMINAR COMPLETAMENTE CUALQUIER COLOR AMARILLO EN LOS ICONOS DE LOS BOTONES */
.flex.items-center.space-x-3 button i,
.flex.items-center.space-x-3 button .fab,
.flex.items-center.space-x-3 button .fas {
    color: white !important;
    background-color: transparent !important;
}

/* Asegurar que los iconos de los botones de compartir sean blancos */
.flex.items-center.space-x-3 button[onclick*="facebook"] i,
.flex.items-center.space-x-3 button[onclick*="x"] i,
.flex.items-center.space-x-3 button[onclick*="whatsapp"] i,
.flex.items-center.space-x-3 button[onclick*="linkedin"] i,
.flex.items-center.space-x-3 button[onclick*="copy"] i {
    color: white !important;
    background-color: transparent !important;
    text-shadow: none !important;
}

/* ELIMINAR CUALQUIER COLOR AMARILLO O DORADO EN LOS BOTONES */
.flex.items-center.space-x-3 button[class*="gold"],
.flex.items-center.space-x-3 button[class*="yellow"],
.flex.items-center.space-x-3 button .text-gold,
.flex.items-center.space-x-3 button .text-yellow {
    color: white !important;
    background-color: transparent !important;
}

/* Forzar colores correctos en todos los botones */
.flex.items-center.space-x-3 button {
    color: white !important;
    background-color: transparent !important;
}

/* Aplicar colores de fondo específicos */
.flex.items-center.space-x-3 button[onclick*="facebook"] {
    background-color: #1877f2 !important;
}

.flex.items-center.space-x-3 button[onclick*="x"] {
    background-color: #000000 !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"] {
    background-color: #25d366 !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"] {
    background-color: #0077b5 !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"] {
    background-color: #6b7280 !important;
}

/* ELIMINAR COMPLETAMENTE CUALQUIER COLOR AMARILLO - MÁXIMA PRIORIDAD */
.flex.items-center.space-x-3 button,
.flex.items-center.space-x-3 button *,
.flex.items-center.space-x-3 button i,
.flex.items-center.space-x-3 button .fab,
.flex.items-center.space-x-3 button .fas {
    color: white !important;
    background-color: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Aplicar colores de fondo después de limpiar todo */
.flex.items-center.space-x-3 button[onclick*="facebook"] {
    background-color: #1877f2 !important;
}

.flex.items-center.space-x-3 button[onclick*="x"] {
    background-color: #000000 !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"] {
    background-color: #25d366 !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"] {
    background-color: #0077b5 !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"] {
    background-color: #6b7280 !important;
}

/* Espaciado entre botones de compartir */
.flex.items-center.space-x-3 > * + * {
    margin-left: 0.75rem !important;
}

/* Estilos para el texto "Compartir:" */
.flex.items-center.space-x-3 span:first-child {
    color: var(--gray-500) !important;
    font-size: 0.875rem !important;
    margin-right: 0.75rem !important;
}

/* Mejorar la apariencia de los bordes de la sección de compartir */
.flex.items-center.space-x-3.py-4.border-t.border-b.border-gray-200 {
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-left: none !important;
    border-right: none !important;
}

/* Asegurar que los botones tengan el tamaño correcto */
.flex.items-center.space-x-3 button.w-8.h-8 {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
}

/* Forzar colores correctos para todos los botones de compartir - MÁXIMA PRIORIDAD */
.flex.items-center.space-x-3 button[onclick*="facebook"],
.flex.items-center.space-x-3 button.bg-blue-600 {
    background-color: #1877f2 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.flex.items-center.space-x-3 button[onclick*="facebook"]:hover,
.flex.items-center.space-x-3 button.bg-blue-600:hover {
    background-color: #166fe5 !important;
}

.flex.items-center.space-x-3 button[onclick*="x"],
.flex.items-center.space-x-3 button.bg-black {
    background-color: #000000 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.flex.items-center.space-x-3 button[onclick*="x"]:hover,
.flex.items-center.space-x-3 button.bg-black:hover {
    background-color: #14171a !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"],
.flex.items-center.space-x-3 button.bg-green-500 {
    background-color: #25d366 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.flex.items-center.space-x-3 button[onclick*="whatsapp"]:hover,
.flex.items-center.space-x-3 button.bg-green-500:hover {
    background-color: #128c7e !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"],
.flex.items-center.space-x-3 button.bg-blue-700 {
    background-color: #0077b5 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.flex.items-center.space-x-3 button[onclick*="linkedin"]:hover,
.flex.items-center.space-x-3 button.bg-blue-700:hover {
    background-color: #005885 !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"],
.flex.items-center.space-x-3 button.bg-gray-600 {
    background-color: #6b7280 !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.flex.items-center.space-x-3 button[onclick*="copy"]:hover,
.flex.items-center.space-x-3 button.bg-gray-600:hover {
    background-color: #4b5563 !important;
}

/* Reducir espacios adicionales en el contenido */
.prose.prose-lg.max-w-none {
    margin-bottom: 1rem !important;
}

/* Reducir espacios en la imagen destacada */
.mb-8 .w-full.featured-image {
    margin-bottom: 0.25rem !important;
}

/* Reducir espacios en el pie de la imagen */
.text-sm.text-gray-500.mt-2.text-center {
    margin-top: 0.125rem !important;
    margin-bottom: 0.5rem !important;
}

/* Reducir drásticamente todos los espacios en blanco */
.max-w-7xl.mx-auto.px-4.sm\:px-6.lg\:px-8.py-8 {
    padding-top: 0.03125rem !important;
    padding-bottom: 0.5rem !important;
}

/* Reducir espacios adicionales entre header y contenido */
header + section {
    margin-top: 0 !important;
    padding-top: 0.03125rem !important;
}

/* Reducir espacios en el contenedor principal */
.max-w-7xl.mx-auto {
    margin-top: 0 !important;
}

/* ELIMINAR COMPLETAMENTE ESPACIOS ENTRE HEADER Y CONTENIDO */
header + * {
    margin-top: 0 !important;
}

/* Reducir espacios en la primera sección */
header + section {
    margin-top: 0 !important;
    padding-top: 30rem !important;
}

/* Reducir espacios en el enlace volver específicamente */
header + section .enlace-volver {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Reducir espacios en el contenido principal */
main.max-w-7xl.mx-auto.px-4.sm\:px-6.lg\:px-8.py-8 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Reducir espacios en el gap del layout principal */
.flex.flex-col.lg\:flex-row.gap-8 {
    gap: 1rem !important;
}

/* Reducir espacios en la galería */
.grid.grid-cols-1.md\:grid-cols-2.gap-6 {
    gap: 0.75rem !important;
}

.space-y-4 {
    gap: 0.75rem !important;
}

.space-y-4 > * + * {
    margin-top: 0.75rem !important;
}

/* Reducir espacios en la segunda fila de imágenes */
.grid.grid-cols-1.md\:grid-cols-2.gap-6.mt-6 {
    margin-top: 1rem !important;
    gap: 0.75rem !important;
}

/* Reducir espacios en la galería de imágenes */
.mt-8 {
    margin-top: 0.75rem !important;
}

.mb-8 {
    margin-bottom: 0.75rem !important;
}

.mb-6 {
    margin-bottom: 0.5rem !important;
}

/* Reducir espacios en el contenido del artículo */
.prose.prose-lg.max-w-none {
    margin-bottom: 2rem !important;
}

/* Reducir espacios en las cajas destacadas */
.bg-gradient-to-r.from-green-50.to-blue-50,
.bg-green-50,
.bg-blue-50 {
    margin-bottom: 0.75rem !important;
    padding: 1rem !important;
}

/* Reducir espacios en el enlace de volver */
.enlace-volver {
    margin-bottom: 0.25rem !important;
    margin-top: 30rem !important;
    padding-top: 0 !important;
}

/* Reducir espacios adicionales en el enlace volver */
.enlace-volver a {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Reducir espacios en la primera sección después del header */
header + section .enlace-volver {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.enlace-volver a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: var(--navy) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.enlace-volver a:hover {
    color: #3b82f6 !important;
}

/* Reducir espacios en los metadatos del artículo */
.flex.items-center.space-x-4.mb-4 {
    margin-bottom: 0.25rem !important;
    gap: 0.25rem !important;
}

/* Reducir espacios en el título principal */
h1.text-3xl.md\:text-4xl.font-bold.text-gray-900.mb-4.leading-tight {
    margin-bottom: 0.25rem !important;
}

/* Reducir espacios en la descripción */
p.text-xl.text-gray-600.leading-relaxed.mb-6 {
    margin-bottom: 0.25rem !important;
}

/* Reducir espacios en la imagen destacada */
.mb-8 .w-full.featured-image {
    margin-bottom: 1rem !important;
}

/* Reducir espacios en el pie de la imagen */
.text-sm.text-gray-500.mt-2.text-center {
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Reducir espacios en la galería */
.grid.grid-cols-1.md\:grid-cols-2.gap-6 {
    gap: 1rem !important;
}

.space-y-4 {
    gap: 1rem !important;
}

.space-y-4 > * + * {
    margin-top: 1rem !important;
}

/* Reducir espacios en la segunda fila de imágenes */
.grid.grid-cols-1.md\:grid-cols-2.gap-6.mt-6 {
    margin-top: 1.5rem !important;
    gap: 1rem !important;
}

/* ========================================== */
/* ELIMINADOS: Estilos de navegación duplicados */
/* El menú principal se maneja desde styles.css, dropdown-menu.css y mobile-menu.css */
/* ========================================== */

/* Asegurar que la sección del header sea visible */
section.max-w-7xl {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 50 !important;
    padding-top: 2rem !important;
}

/* Estilos para el enlace de volver - completamente limpio como en la imagen */
.enlace-volver {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 4rem !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    z-index: 9999 !important;
}

.enlace-volver a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #1e3a8a !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: color 0.3s ease !important;
}

.enlace-volver a:hover {
    color: #3b82f6 !important;
}

.enlace-volver i {
    font-size: 1rem !important;
    display: inline-block !important;
    visibility: visible !important;
}

.enlace-volver span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Asegurar que las secciones destacadas se muestren */
.bg-green-50 {
    background-color: #f0fdf4 !important;
}

.bg-blue-50 {
    background-color: #eff6ff !important;
}

.border-green-500 {
    border-color: #22c55e !important;
}

.border-blue-500 {
    border-color: #3b82f6 !important;
}

.text-green-800 {
    color: #166534 !important;
}

.text-blue-800 {
    color: #1e40af !important;
}

/* Asegurar que el grid funcione */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.space-y-4 > * + * {
    margin-top: 1rem !important;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.transition-shadow {
    transition-property: box-shadow !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Estilos críticos para el layout principal */
.max-w-7xl {
    max-width: 80rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.sm\:px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.lg\:px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* ======= Normalizar espaciado entre header y botón 'Volver' =======
   La nota de referencia ('Celebración del Día del Niño') usa
   inline style "padding-top: 3rem;" en la sección. Para evitar
   editar cada HTML, forzamos el mismo padding en todas las
   páginas de noticias y aseguramos que el bloque .enlace-volver
   no esté pegado al header.
*/
header + section.max-w-7xl,
header + section.max-w-7xl.mx-auto.px-4.sm\:px-6.lg\:px-8.py-8 {
    padding-top: 3rem !important;
}

header + section .enlace-volver {
    margin-top: 1rem !important; /* separa el bloque del contenido superior */
    margin-bottom: 2rem !important;
}


/* Estilos de iconos sociales */
.social-icons {
    display: flex !important;
    gap: 1rem !important;
}

.social-icons a {
    color: #1e3a8a !important;
    font-size: 1.25rem !important;
    transition: color 0.3s !important;
}

.social-icons a:hover {
    color: #3b82f6 !important;
}

/* Estilos adicionales para las imágenes de la galería */
.news-image img,
.article-content img,
.gallery img,
.article-content .grid img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.article-content .grid img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Asegurar que el grid de imágenes funcione */
.grid.grid-cols-1.md\\:grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.h-64 {
    height: 16rem !important;
}

.md\\:h-96 {
    height: 24rem !important;
}

/* Estilos para el modal de imagen */
.image-modal {
    display: none !important;
    position: fixed !important;
    z-index: 1000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.9) !important;
}

.image-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    max-width: 90% !important;
    max-height: 90% !important;
}

.modal-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.close-modal {
    position: absolute !important;
    top: 15px !important;
    right: 35px !important;
    color: #f1f1f1 !important;
    font-size: 40px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.close-modal:hover {
    color: #bbb !important;
}

/* Asegurar que el modal funcione correctamente */
#imageModal {
    display: none !important;
}

#imageModal.show {
    display: flex !important;
}

/* Asegurar que las imágenes se vean completas */
.gallery-image {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.3s ease !important;
}

.gallery-image:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Asegurar que la imagen destacada se vea bien */
.featured-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    max-height: 400px !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    /* CORRECCIÓN PARA LAYOUT MÓVIL - ALINEACIÓN CENTRADA */
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Contenedor principal centrado */
    .max-w-7xl {
        margin: 0 auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Layout principal - asegurar que no se desborde hacia la derecha */
    .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }
    
    /* Artículo principal - ocupar todo el ancho disponible */
    .lg\:w-2\/3 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Sidebar - centrado y sin desbordamiento */
    .lg\:w-1\/3 {
        width: 100% !important;
        margin: 2rem 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Header móvil centrado */
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5rem 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Asegurar que todo el contenido esté centrado */
    .px-4, .sm\:px-6, .lg\:px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Eliminar márgenes que causan desalineación */
    .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Layout desktop */
@media (min-width: 1024px) {
    .flex.flex-col.lg\:flex-row {
        flex-direction: row !important;
    }
    
    .lg\:w-2\/3 {
        width: 66.666667% !important;
    }
    
    .lg\:w-1\/3 {
        width: 33.333333% !important;
        margin-top: 0 !important;
    }
}

/* Estilos adicionales para clases de Tailwind que se usan en el HTML */
.bg-gray-50 {
    background-color: #f9fafb !important;
}

.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.space-x-4 > * + * {
    margin-left: 1rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-900 {
    color: #111827 !important;
}

.leading-tight {
    line-height: 1.25 !important;
}

.text-3xl {
    font-size: 1.875rem !important;
}

.md\:text-4xl {
    font-size: 2.25rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.leading-relaxed {
    line-height: 1.625 !important;
}

.flex-col {
    flex-direction: column !important;
}

.lg\:flex-row {
    flex-direction: row !important;
}

.gap-8 {
    gap: 2rem !important;
}

.lg\:w-2\/3 {
    width: 66.666667% !important;
}

.lg\:w-1\/3 {
    width: 33.333333% !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.w-full {
    width: 100% !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.text-center {
    text-align: center !important;
}

.prose-lg {
    font-size: 1.125rem !important;
}

.max-w-none {
    max-width: none !important;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}

.from-green-50 {
    --tw-gradient-from: #f0fdf4 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0)) !important;
}

.to-blue-50 {
    --tw-gradient-to: #eff6ff !important;
}

.border-l-4 {
    border-left-width: 4px !important;
}

.border-green-500 {
    border-color: #22c55e !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.rounded-r-lg {
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.italic {
    font-style: italic !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.text-green-600 {
    color: #16a34a !important;
}

.mt-8 {
    margin-top: 2rem !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.to-blue-800 {
    --tw-gradient-to: #1e40af !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.p-8 {
    padding: 2rem !important;
}

.text-white {
    color: white !important;
}

.text-center {
    text-align: center !important;
}

.flex-col {
    flex-direction: column !important;
}

.sm\:flex-row {
    flex-direction: row !important;
}

.justify-center {
    justify-content: center !important;
}

.bg-white {
    background-color: white !important;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6 !important;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.bg-white {
    background-color: white !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.space-y-4 > * + * {
    margin-top: 1rem !important;
}

.p-3 {
    padding: 0.75rem !important;
}

.bg-gray-50 {
    background-color: #f9fafb !important;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6 !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.bg-blue-100 {
    background-color: #dbeafe !important;
}

.text-blue-800 {
    color: #1e40af !important;
}

.bg-green-100 {
    background-color: #dcfce7 !important;
}

.text-green-800 {
    color: #166534 !important;
}

.bg-purple-100 {
    background-color: #f3e8ff !important;
}

.text-purple-800 {
    color: #6b21a8 !important;
}

.bg-orange-100 {
    background-color: #fed7aa !important;
}

.text-orange-800 {
    color: #c2410c !important;
}

.bg-red-100 {
    background-color: #fee2e2 !important;
}

.text-red-800 {
    color: #991b1b !important;
}

.bg-blue-50 {
    background-color: #eff6ff !important;
}

.hover\:bg-blue-100:hover {
    background-color: #dbeafe !important;
}

.bg-green-50 {
    background-color: #f0fdf4 !important;
}

.hover\:bg-green-100:hover {
    background-color: #dcfce7 !important;
}

.bg-purple-50 {
    background-color: #f3e8ff !important;
}

.hover\:bg-purple-100:hover {
    background-color: #f3e8ff !important;
}

.ml-auto {
    margin-left: auto !important;
}

.w-full {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.hover\:bg-blue-800:hover {
    background-color: #1e40af !important;
}

.hover\:bg-yellow-400:hover {
    background-color: #facc15 !important;
}

.space-y-3 > * + * {
    margin-top: 0.75rem !important;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Estilos adicionales para clases específicas */
.border-t {
    border-top-width: 1px !important;
}

/* Estilos para las tarjetas del sidebar */
.bg-white.rounded-xl.shadow-md {
    background-color: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
}

/* Espaciado consistente entre elementos dentro de las tarjetas */
.space-y-4 > * + * {
    margin-top: 1rem !important;
}

.space-y-3 > * + * {
    margin-top: 0.75rem !important;
}

/* Espaciado entre iconos y texto en las tarjetas */
.flex.items-center.space-x-3 {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Estilos para los iconos en las tarjetas de información */
.flex.items-center.space-x-3 i {
    color: var(--gold) !important;
    font-size: 1.125rem !important;
    min-width: 1.125rem !important;
    text-align: center !important;
}

/* Estilos para el contenido de texto en las tarjetas */
.flex.items-center.space-x-3 > div {
    flex: 1 !important;
}

.flex.items-center.space-x-3 p:first-child {
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
}

.flex.items-center.space-x-3 p:last-child {
    color: var(--gray-600) !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* Espaciado entre tarjetas del sidebar */
aside .bg-white.rounded-xl.shadow-md:not(:last-child) {
    margin-bottom: 1.5rem !important;
}

/* ===== CORRECCIONES ESPECÍFICAS PARA MÓVIL - LAYOUT CENTRADO ===== */
@media (max-width: 768px) {
    /* Asegurar que el contenido del artículo no se desborde */
    .article-content,
    .prose,
    .prose-lg {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    /* Títulos centrados y sin desbordamiento */
    h1, h2, h3, h4, h5, h6 {
        width: 100% !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Párrafos sin desbordamiento */
    p {
        width: 100% !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    /* Imágenes centradas y responsivas */
    img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        margin: 1rem auto !important;
        object-fit: cover !important;
        box-sizing: border-box !important;
    }
    
    /* Galería de imágenes centrada */
    .grid {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Botones de compartir centrados */
    .flex.items-center.space-x-3 {
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        flex-wrap: wrap !important;
    }
    
    /* Metadatos del artículo */
    .flex.items-center.space-x-4 {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 0.5rem !important;
    }
    
    /* Breadcrumb centrado */
    .breadcrumb-container {
        width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Enlace de volver centrado */
    .enlace-volver {
        width: 100% !important;
        text-align: left !important;
        margin: 1rem 0 !important;
        padding: 0 !important;
    }
    
    /* Secciones destacadas sin desbordamiento */
    .bg-green-50,
    .bg-blue-50,
    .bg-gradient-to-r {
        width: 100% !important;
        margin: 1rem 0 !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
    }
}

/* Estilos específicos para la tarjeta de Artículos Relacionados */
.space-y-4 .flex.items-center.space-x-3.p-3 {
    padding: 0.75rem !important;
    background-color: #f9fafb !important;
    border-radius: 0.5rem !important;
    transition: background-color 0.3s ease !important;
}

.space-y-4 .flex.items-center.space-x-3.p-3:hover {
    background-color: #f3f4f6 !important;
}

/* Estilos para las etiquetas */
.flex.flex-wrap.gap-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

/* Estilos para los botones de acción */
.flex.flex-col.space-y-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.flex.flex-col.space-y-2 a {
    width: 100% !important;
    text-align: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.flex.flex-col.space-y-2 a:first-child {
    background-color: var(--navy) !important;
    color: white !important;
}

.flex.flex-col.space-y-2 a:first-child:hover {
    background-color: #1e40af !important;
}

.flex.flex-col.space-y-2 a:last-child {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
}

.flex.flex-col.space-y-2 a:last-child:hover {
    background-color: #facc15 !important;
}

/* Estilos para las tarjetas interactivas del sidebar */
.bg-blue-50.rounded-lg.hover\:bg-blue-100,
.bg-green-50.rounded-lg.hover\:bg-purple-100,
.bg-purple-50.rounded-lg.hover\:bg-purple-100 {
    border-radius: 0.5rem !important;
    transition: background-color 0.3s ease !important;
    cursor: pointer !important;
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.bg-blue-50.rounded-lg.hover\:bg-blue-100:hover {
    background-color: #dbeafe !important;
}

.bg-green-50.rounded-lg.hover\:bg-green-100:hover {
    background-color: #dcfce7 !important;
}

.bg-purple-50.rounded-lg.hover\:bg-purple-100:hover {
    background-color: #f3e8ff !important;
}

/* Estilos para el último elemento de las tarjetas interactivas */
.bg-blue-50.rounded-lg.hover\:bg-blue-100:last-child,
.bg-green-50.rounded-lg.hover\:bg-green-100:last-child,
.bg-purple-50.rounded-lg.hover\:bg-purple-100:last-child {
    margin-bottom: 0 !important;
}

/* Estilos para el contenedor de las tarjetas interactivas */
.space-y-3.mb-4 {
    margin-bottom: 1rem !important;
}

/* Estilos para los iconos de flecha en las tarjetas interactivas */
.ml-auto {
    margin-left: auto !important;
    color: var(--navy) !important;
    font-size: 0.875rem !important;
}

/* Espaciado uniforme entre todas las tarjetas del sidebar */
aside > div {
    margin-bottom: 1.5rem !important;
}

aside > div:last-child {
    margin-bottom: 0 !important;
}

/* ===== PREVENIR DESBORDAMIENTO HORIZONTAL EN MÓVIL ===== */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Asegurar que todos los contenedores no se desborden */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Contenedores principales */
    .max-w-7xl,
    .max-w-none,
    main,
    article,
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Flexbox containers */
    .flex {
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        box-sizing: border-box !important;
    }
    
    /* Grid containers */
    .grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Texto largo que pueda causar desbordamiento */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Imágenes y media */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Tablas responsivas */
    table {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
        white-space: nowrap !important;
    }
    
    /* Preformatted text */
    pre, code {
        max-width: 100% !important;
        overflow-x: auto !important;
        word-wrap: break-word !important;
        white-space: pre-wrap !important;
    }
}

/* Estilos específicos para cada tipo de tarjeta */
aside .bg-white.rounded-xl.shadow-md {
    margin-bottom: 1.5rem !important;
}

aside .bg-white.rounded-xl.shadow-md:last-child {
    margin-bottom: 0 !important;
}

/* Estilos para los títulos de las tarjetas */
aside .bg-white.rounded-xl.shadow-md h3 {
    margin-bottom: 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
}

/* Estilos para el contenido de las tarjetas */
aside .bg-white.rounded-xl.shadow-md > div:not(:first-child) {
    margin-top: 1rem !important;
}

/* Estilos para las etiquetas */
aside .bg-white.rounded-xl.shadow-md .flex.flex-wrap.gap-2 {
    margin-top: 1rem !important;
}

/* Estilos para los botones de acción */
aside .bg-white.rounded-xl.shadow-md .flex.flex-col.space-y-2 {
    margin-top: 1rem !important;
}

/* Estilos para los iconos en las tarjetas */
.text-navy.text-lg {
    color: var(--navy) !important;
    font-size: 1.125rem !important;
}

.text-gold.text-lg {
    color: var(--gold) !important;
    font-size: 1.125rem !important;
}

/* Estilos para el botón de flecha en las tarjetas */
.ml-auto {
    margin-left: auto !important;
}

/* Estilos para las etiquetas */
.bg-blue-100.text-blue-800,
.bg-green-100.text-green-800,
.bg-purple-100.text-purple-800,
.bg-orange-100.text-orange-800,
.bg-red-100.text-red-800 {
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
}

/* Estilos para la sección Call to Action */
.bg-gradient-to-r.from-navy.to-blue-800 {
    background: linear-gradient(to right, var(--navy), #1e40af) !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: white !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.flex.flex-col.sm\:flex-row {
    display: flex !important;
    flex-direction: column !important;
}

@media (min-width: 640px) {
    .flex.flex-col.sm\:flex-row {
        flex-direction: row !important;
    }
}

.gap-4 {
    gap: 1rem !important;
}

.justify-center {
    justify-content: center !important;
}

/* Botones del Call to Action */
.bg-gold.text-navy {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
}

.bg-white.text-navy {
    background-color: white !important;
    color: var(--navy) !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.hover\:bg-yellow-400:hover {
    background-color: #facc15 !important;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6 !important;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.border-b {
    border-bottom-width: 1px !important;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.bg-blue-600 {
    background-color: #2563eb !important;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8 !important;
}

.bg-black {
    background-color: #000000 !important;
}

.hover\:bg-gray-800:hover {
    background-color: #1f2937 !important;
}

.bg-green-500 {
    background-color: #22c55e !important;
}

.hover\:bg-green-600:hover {
    background-color: #16a34a !important;
}

.bg-blue-700 {
    background-color: #1d4ed8 !important;
}

.hover\:bg-blue-800:hover {
    background-color: #1e40af !important;
}

.bg-gray-600 {
    background-color: #4b5563 !important;
}

.hover\:bg-gray-700:hover {
    background-color: #374151 !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

/* Estilos para el footer - Exactamente como en la página principal */
footer {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 20%, #d1d9ff 40%, #b3c2ff 60%, #8fa3ff 80%, #6b84ff 100%);
    color: #2c2966;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem 2rem;
}

.footer-col {
    flex: 1 1 300px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-col {
    align-items: flex-start;
}

.footer-logo {
    height: auto;
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.footer-logo-col h3 {
    font-size: 1.4rem;
    color: #2c2966;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-motto {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact-col h4,
.footer-map-col h4 {
    font-size: 1.3rem;
    color: #2c2966;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-col h4 i,
.footer-map-col h4 i {
    color: #e71264;
    font-size: 1.1rem;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    color: #4a5568;
    font-size: 1rem;
}

.footer-contact-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.4;
}

.footer-contact-list li i {
    color: #e71264;
    margin-top: 0.2rem;
    min-width: 16px;
}

.footer-contact-list a {
    color: #e71264;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    text-decoration: underline;
    color: #2c2966;
}

/* Redes sociales con colores específicos */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.3rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:nth-child(1) {
    background: #1877f2; /* Facebook */
}

.footer-social a:nth-child(2) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Instagram */
}

.footer-social a:nth-child(3) {
    background: #ff0000; /* YouTube */
}

.footer-social a:nth-child(4) {
    background: #000000; /* TikTok */
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Enlaces útiles */
.footer-links-section {
    margin-top: 1rem;
}

.footer-links-section h5 {
    color: #2c2966;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #e71264;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: #2c2966;
    text-decoration: underline;
}

.footer-map-col {
    align-items: flex-start;
    flex: 2 1 400px; /* El mapa ocupa más espacio */
}

.footer-map {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.footer-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.footer-bottom {
    background: #2c2966;
    text-align: center;
    padding: 1.2rem 0;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive del footer */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
        padding: 2.5rem 1rem 1rem 1rem;
    }
    .footer-col {
        align-items: flex-start;
    }
    .footer-map-col {
        flex: 1 1 auto;
    }
    .footer-map iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1rem 1rem 1rem;
    }
    .footer-map iframe {
        height: 300px;
    }
    .footer-social {
        justify-content: center;
    }
}

/* Breadcrumb */
.breadcrumb-nav {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.breadcrumb-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb-links a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb-links a:hover {
    color: var(--navy);
}

.breadcrumb-separator {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.breadcrumb-current {
    color: var(--gray-900);
    font-weight: 500;
}

/* Contenido del artículo */
.article-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category {
    margin-bottom: 1rem;
}

.category-badge {
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

.article-meta .separator {
    margin: 0 0.75rem;
    color: var(--gray-400);
}

/* Imagen destacada */
.featured-image {
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Texto del artículo */
.article-content {
    margin-bottom: 3rem;
}

.article-content p {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Galería de imágenes */
.image-gallery {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Cajas de información */
.info-box {
    background-color: #eff6ff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
    margin-bottom: 2rem;
}

.info-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #1e40af;
    margin-bottom: 1rem;
}

.info-box .btn-primary {
    background-color: var(--navy);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.info-box .btn-primary:hover {
    background-color: #1e40af;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(to right, var(--navy), #1e40af);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.cta-btn-primary {
    background-color: white;
    color: var(--navy);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-btn-primary:hover {
    background-color: var(--gray-100);
}

.cta-btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    background-color: white;
    color: var(--navy);
}

/* Artículos relacionados */
.related-section {
    margin-top: 4rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.related-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.related-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.related-card-content {
    padding: 1.5rem;
}

.related-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.related-card-description {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Modal de imagen */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.image-modal .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Botón de volver */
.back-button {
    background-color: var(--navy);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    background-color: #1e40af;
}

/* Responsive design */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .article-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .breadcrumb-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Utilidades */
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.text-gray-100 { color: var(--gray-100) !important; }
.bg-gray-100 { background-color: var(--gray-100) !important; }
.text-gray-900 { color: var(--gray-900) !important; }
.bg-gray-900 { background-color: var(--gray-900) !important; }

/* End enlace-volver overrides */

/* --- Estilos para la sección Call to Action --- */
.call-to-action-section {
    margin-top: 3rem !important;
    background: linear-gradient(135deg, var(--navy) 0%, #7c3aed 100%) !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    color: white !important;
    text-align: center !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.call-to-action-section h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    color: white !important;
}

.call-to-action-section p {
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.9 !important;
    line-height: 1.6 !important;
    max-width: 42rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: white !important;
}

.call-to-action-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
}

@media (min-width: 640px) {
    .call-to-action-buttons {
        flex-direction: row !important;
    }
}

.call-to-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.call-to-action-btn:hover {
    transform: scale(1.05) !important;
}

.call-to-action-btn-primary {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
}

.call-to-action-btn-primary:hover {
    background-color: #fbbf24 !important;
}

.call-to-action-btn-secondary {
    background-color: white !important;
    color: var(--navy) !important;
}

.call-to-action-btn-secondary:hover {
    background-color: #f9fafb !important;
}

.call-to-action-btn i {
    margin-right: 0.75rem !important;
    font-size: 1.25rem !important;
}

/* End Call to Action styles */
