/* Banner de Cookies */
/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 32px;
    z-index: 9999;
    background: rgb(229, 229, 229);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    padding: 18px 32px 14px 32px;
    border-radius: 18px;
    max-width: 540px;
    width: 92vw;
}
.cookie-banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem; /* Letra más pequeña */
}
.cookie-banner-actions button {
    min-width: 110px;
    font-size: 0.9em;
}
.cookie-banner-actions #cookie-accept {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.cookie-banner-actions #cookie-accept:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}
.cookie-banner-actions #cookie-reject,
.cookie-banner-actions #cookie-configure {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
.cookie-banner-actions #cookie-reject:hover,
.cookie-banner-actions #cookie-configure:hover {
    background-color: #565e64;
    border-color: #565e64;
}
.cookie-config-panel {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 18px 24px;
    margin: 18px auto 0 auto;
    max-width: 400px;
}
/* --- Animaciones y estilos para la página 404 --- */
@keyframes wiggle {
    0% {
        transform: rotate(-8deg) scale(1.05);
    }
    10% {
        transform: rotate(8deg) scale(1.1);
    }
    20% {
        transform: rotate(-6deg) scale(1.08);
    }
    30% {
        transform: rotate(6deg) scale(1.12);
    }
    40% {
        transform: rotate(-4deg) scale(1.1);
    }
    50% {
        transform: rotate(4deg) scale(1.13);
    }
    60% {
        transform: rotate(-2deg) scale(1.11);
    }
    70% {
        transform: rotate(2deg) scale(1.12);
    }
    80% {
        transform: rotate(-1deg) scale(1.09);
    }
    90% {
        transform: rotate(1deg) scale(1.1);
    }
    100% {
        transform: rotate(0deg) scale(1.1);
    }
}
.animated-404 {
    animation: wiggle 2s infinite;
    color: #0d6efd !important;
    text-shadow: 2px 4px 12px #b6d4fe;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.bounce-btn {
    animation: bounce 1.2s infinite;
}
@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}
.fs-7 {
    font-size: 0.8rem !important;
}

.fs-8 {
    font-size: 0.7rem !important;
}

.mt-50 {
    margin-top: 50px;
}
.mb-50 {
    margin-bottom: 50px;
}
.mt-150 {
    margin-top: 150px;
}
.mb-150 {
    margin-bottom: 150px;
}

.separador-am {
    height: 3px !important;
    max-width: 400px;
    /* background: linear-gradient(to right, var(--secondary-color) 50px, var(--primary-color) 50px); */
    /* background: linear-gradient(to left, var(--secondary-color) 50px, var(--primary-color) 50px); */
    background: linear-gradient(
        to left,
        var(--secondary-color),
        var(--primary-color) 80px
    );

    margin-top: 1rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.punto-go {
    color: var(--secondary-color);
    font-size: 0.9rem;
    vertical-align: middle;
}

/* SEC Objetivos */
#objetivos .portfolio-info {
    text-align: center;
}

#objetivos .portfolio-info img {
    border-radius: 10px 10px 0 0;
    border-bottom: solid 4px var(--primary-color);
}

#objetivos h6 {
    color: var(--p-color);
}

#objetivos img {
    max-width: 255px;
}

/* SEC miembros */
#miembros .about-image {
    border-radius: 10px 0 0 10px;
}

#miembros .capa-dcha {
    border-radius: 0 10px 10px 0;
}

@media (max-width: 576px) {
    #miembros .about-image {
        border-radius: 0;
    }
    #miembros .capa-dcha {
        border-radius: 0;
    }
    #miembros .capa-izda {
        padding-left: 0;
    }
}

#miembros .team-thumb {
    border-radius: 10px;
}

/* secciones con fondo de color */
.sec-fondo {
    background-color: rgb(248, 241, 232);
}

.ventajas-section {
    padding: 60px 0; /* Ajusta el padding según la separación que desees */
    background-color: #f8f8f8; /* Color de fondo suave, similar al de la imagen */
    text-align: center; /* Centra el texto del título y subtítulo */
}

.ventajas-section h2 {
    color: #333; /* Color oscuro para el título principal */
    font-size: 36px; /* Tamaño de fuente para el título principal */
    margin-bottom: 10px;
}

.ventajas-section h4 {
    color: #e5a716; /* Color amarillo/naranja similar a tu separador y estilo primario */
    font-size: 20px;
    margin-bottom: 20px;
}

.ventajas-section p {
    color: #666; /* Color para el párrafo introductorio */
    font-size: 18px;
    margin-bottom: 40px; /* Espacio antes de las tarjetas */
}

/* Contenedor de las tarjetas - usando Flexbox para la cuadrícula */
.ventajas-cards-container {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan a la siguiente fila en pantallas pequeñas */
    justify-content: center; /* Centra las tarjetas horizontalmente */
    gap: 20px; /* Espacio entre las tarjetas */
    padding: 0 15px; /* Padding horizontal para evitar que las tarjetas toquen los bordes en móviles */
    margin-top: 60px;
}

/* Estilos para cada tarjeta */
.ventaja-card {
    background-color: #fff; /* Fondo blanco para las tarjetas */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    padding: 30px; /* Espacio interno de la tarjeta */
    text-align: center; /* Centra el contenido de la tarjeta */
    width: calc(
        33% - 20px
    ); /* Ancho para 3 tarjetas por fila en pantallas grandes, ajusta el 33% y el 20px (gap) según necesites */
    max-width: 350px; /* Ancho máximo para evitar que sean demasiado grandes */
    display: flex;
    flex-direction: column; /* Organiza el contenido verticalmente */
    align-items: center; /* Centra el contenido verticalmente */
}

/* Ajuste para pantallas medianas y pequeñas */
@media (max-width: 992px) {
    .ventaja-card {
        width: calc(50% - 20px); /* 2 tarjetas por fila en pantallas medianas */
    }
}

@media (max-width: 576px) {
    .ventaja-card {
        width: 100%; /* 1 tarjeta por fila en pantallas pequeñas */
    }
}

/* Estilos para el icono */
.ventaja-icon {
    color: #e5a716; /* Color amarillo/naranja para los iconos */
    font-size: 48px; /* Tamaño de los iconos */
    margin-bottom: 15px;
}

/* Estilos para el título de la tarjeta */
.ventaja-card .ventaja-title {
    color: #333; /* Color oscuro para el título de la tarjeta */
    font-size: 20px;
    margin-bottom: 10px;
}

/* Estilos para el texto de la tarjeta */
.ventaja-card .ventaja-text {
    color: #666; /* Color para el texto de la tarjeta */
    font-size: 16px;
    line-height: 1.5; /* Espaciado entre líneas para facilitar la lectura */
}

/* seccion miembros */
/* Estilo para el texto pequeño entre la imagen y team-thumb */
.member-description {
    font-size: 0.9em; /* Ajusta el tamaño de fuente según necesites */
    color: #9d9c9c; /* Color del texto, ajusta si es necesario */
    margin-top: 10px; /* Espacio entre la imagen y el texto */
    margin-bottom: 10px; /* Espacio entre el texto y la caja team-thumb */
    margin-right: 10px;
    text-align: right; /* Centra el texto si lo deseas */
    height: 43px;
}

/* Ajustes para pantallas más pequeñas si es necesario */
@media (max-width: 768px) {
    .member-description {
        font-size: 0.8em; /* Reduce el tamaño de fuente en móviles */
    }
}

/* comision europea */
#comision-europea img {
    border: solid 20px #fff;
    border-radius: 20px;
}

/* Efecto Parallax para cabecera */
.hero-parallax {
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 500px;
}

/* Para dispositivos móviles donde fixed no funciona bien */
@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll !important;
    }
}

/* Estilos para la página detallada de miembros */
#miembros-detallados .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#miembros-detallados .badge.bg-danger {
    background-color: var(--custom-btn-bg-color) !important;
}

#miembros-detallados .badge.bg-primary {
    background-color: var(--primary-color) !important;
}

#miembros-detallados .badge.bg-secondary {
    background-color: var(--dark-color) !important;
}

#miembros-detallados img {
    transition: transform 0.3s ease;
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

#miembros-detallados img:hover {
    transform: scale(1.05);
}

#miembros-detallados .row {
    margin-bottom: 2rem;
}

#miembros-detallados h3 {
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

#miembros-detallados h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

#miembros-detallados p {
    text-align: justify;
    line-height: 1.6;
    color: var(--p-color);
}

#miembros-detallados .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

#miembros-detallados .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    #miembros-detallados .order-md-1 {
        order: 1;
    }

    #miembros-detallados .order-md-2 {
        order: 2;
    }

    #miembros-detallados img {
        max-height: 250px;
        margin-bottom: 1rem;
    }
}

/* Footer Styles - Mejoras en hover */
.site-footer {
    position: relative;
}

/* Mejoras para los enlaces de contacto en el footer */
.site-footer .text-white.text-decoration-none {
    transition: all 0.3s ease;
    position: relative;
}

.site-footer .text-white.text-decoration-none:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

/* Mejora para los enlaces del footer inferior */
.site-footer .hover-opacity-100 {
    transition: all 0.3s ease;
    position: relative;
}

.site-footer .hover-opacity-100:hover {
    opacity: 1 !important;
    color: var(--primary-color) !important;
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.2);
}

/* Mejora para los iconos sociales */
.social-icon-link {
    transition: all 0.3s ease;
    transform-origin: center;
}

.social-icon-link:hover {
    color: var(--primary-color) !important;
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

/* Efecto de resplandor suave para iconos Bootstrap */
.site-footer i.bi:hover {
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.6));
}

/* Animación suave para el logo del footer */
.site-footer img {
    transition: all 0.3s ease;
}

.site-footer img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(255, 193, 7, 0.2));
}

/* Utilidades para mejorar la accesibilidad del footer */
.footer-hover-effect {
    transition: all 0.3s ease;
    position: relative;
}

.footer-hover-effect:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 5px rgba(229, 167, 22, 0.3);
}

/* Mejora para reducir el parpadeo en dispositivos móviles */
@media (hover: none) {
    .social-icon-link:hover,
    .footer-hover-effect:hover {
        transform: none;
        text-shadow: none;
    }
}

/* Asegurar que el color primario sea consistente en todo el footer */
.site-footer .text-warning,
.site-footer .btn-warning {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.site-footer .btn-warning:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* ===== CARRUSEL DE LOGOS DE MIEMBROS ===== */
.logos-carousel-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logos-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.logos-carousel {
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 25%; /* 4 slides por defecto en desktop */
    padding: 20px;
    box-sizing: border-box;
}

.logo-link {
    display: block;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 150px;
}

.logo-link:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.member-logo {
    width: 100%;
    height: 135px;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.logo-link:hover .member-logo {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        var(--secondary-color) 0%,
        var(--secondary-color) 20%,
        transparent 100%
    );
    color: white;
    padding: 8px 12px;
    text-align: center;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-overlay {
    transform: translateY(0);
}

.logo-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--dark-color);
}

.logo-subtitle {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    color: white;
}

/* Controles del carrusel */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(0.9);
}

.prev-btn {
    margin-left: -22px;
}

.next-btn {
    margin-right: -22px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .carousel-slide {
        flex: 0 0 33.333%; /* 3 slides en tablet */
    }
}

@media (max-width: 767px) {
    .carousel-slide {
        flex: 0 0 50%; /* 2 slides en móvil */
    }

    .logo-link {
        height: 120px;
    }

    .member-logo {
        height: 80px;
        padding: 10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-btn {
        margin-left: -17px;
    }

    .next-btn {
        margin-right: -17px;
    }
}

@media (max-width: 575px) {
    .carousel-slide {
        flex: 0 0 100%; /* 1 slide en móviles pequeños */
    }

    .logos-carousel-wrapper {
        padding: 15px 0;
    }

    .carousel-slide {
        padding: 15px;
    }
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logos-carousel-wrapper {
    animation: slideInUp 0.6s ease-out;
}

/* Efecto de hover mejorado para accesibilidad */
.logo-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.carousel-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejora de rendimiento */
.logos-carousel {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth scrolling para los enlaces */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.carousel-slide.loading .member-logo {
    opacity: 0.5;
    filter: blur(2px);
}

/* Hover effect para toda la sección */
.logos-carousel-section:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease,
        background-color 0.3s ease;
}

/* Botón Scroll to Top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:active {
    transform: scale(0.95);
}

/* Responsive para el botón */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Ocultar badge de reCAPTCHA v3 */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Aviso de privacidad para reCAPTCHA (requerido por Google) */
.recaptcha-privacy-notice {
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

.recaptcha-privacy-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.recaptcha-privacy-notice a:hover {
    text-decoration: underline;
}

/* NOTICIAS */
.noticia-bloque .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 10px;
}

.noticia-bloque .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.noticia-bloque .stretched-link {
    position: relative;
}

.noticia-bloque .stretched-link:hover {
    color: #0d6efd !important;
}

.card-img-top {
    border-radius: 10px 10px 0 0;
}

#noticias-container {
    min-height: 400px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* === BUSCADOR DE NOTICIAS === */
.input-group.position-relative {
    display: inline-flex;
    max-width: 300px;
}

#search-input {
    border-radius: 25px 0 0 25px;
    border-right: none;
    padding-left: 20px;
    padding-right: 70px;
    transition: all 0.3s ease;
}

#search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

#search-btn {
    border-radius: 0 25px 25px 0;
    border-left: none;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

#search-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* X roja dentro del input */
#clear-search-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    padding: 2px;
    transition: all 0.3s ease;
}

#clear-search-icon:hover {
    color: #b02a37;
    transform: translateY(-50%) scale(1.2);
}

.input-group:focus-within #search-input {
    border-color: var(--primary-color);
}

/* Animación para el badge de total */
#total-noticias-badge {
    transition: all 0.3s ease;
}

/* === FICHA DE NOTICIA SIMPLIFICADA === */
.noticia-detalle-section {
    min-height: 60vh;
    padding-top: 2rem;
}

.noticia-meta-top {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    display: inline-block;
}

.noticia-titulo h1 {
    color: var(--dark-color, #333);
    font-weight: 700;
    line-height: 1.2;
}

.noticia-meta {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    display: inline-block;
}

.noticia-imagen {
    text-align: center;
}

.noticia-imagen img {
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.noticia-imagen img:hover {
    transform: scale(1.02);
}

.noticia-contenido {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.noticia-contenido p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.noticia-acciones {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.content-text {
    max-width: 100%;
}

/* Responsive para ficha simplificada */
@media (max-width: 768px) {
    .noticia-titulo h1 {
        font-size: 2rem;
    }

    .noticia-contenido {
        font-size: 1rem;
        line-height: 1.6;
    }

    .noticia-imagen img {
        max-height: 300px;
    }

    .noticia-acciones {
        padding: 1.5rem;
    }

    .noticia-meta,
    .noticia-meta-top {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* En móviles, cambiar a layout vertical */
    .row.align-items-center .col-6:first-child {
        margin-bottom: 1rem;
    }

    .row.align-items-center .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .noticia-titulo h1 {
        font-size: 1.75rem;
    }

    .noticia-imagen img {
        max-height: 250px;
    }

    .noticia-acciones {
        padding: 1rem;
    }

    .noticia-meta-top {
        font-size: 0.9rem;
    }
}

/* === FORMATO DE CONTENIDO DE NOTICIAS === */
.content-text strong,
.content-text b {
    color: var(--primary-color);
    font-weight: 600;
}

.content-text em,
.content-text i {
    color: var(--secondary-color);
    font-style: italic;
}

.content-text u {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 2px;
}

.content-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-text br {
    line-height: 1.8;
}

/* Formato en las cards de noticias */
.card-text strong,
.card-text b {
    color: var(--primary-color);
    font-weight: 600;
}

.card-text em,
.card-text i {
    color: var(--secondary-color);
    font-style: italic;
}

.card-text u {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 1px;
}

/* Responsive para el buscador de noticias */
@media (max-width: 800px) {
    /* Hacer que las columnas ocupen el 100% del ancho */
    .row.align-items-center .col-12.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Centrar el badge de noticias */
    .col-12.col-md-6:first-child {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    /* Centrar el buscador */
    .col-12.col-md-6.text-end {
        text-align: center !important;
    }

    /* Centrar el input group */
    .input-group.justify-content-end {
        justify-content: center !important;
    }

    .input-group.position-relative {
        max-width: 280px;
        margin: 0 auto;
    }

    #search-input {
        font-size: 16px; /* Evita zoom en iOS */
        max-width: 280px !important;
    }

    #clear-search-icon {
        right: 50px;
    }
}

@media (max-width: 576px) {
    .input-group.position-relative {
        max-width: 250px;
    }

    #search-input {
        max-width: 250px !important;
    }

    #clear-search-icon {
        right: 45px;
    }
}

/* Video Responsivo para Hero Section */
.hero .custom-video {
    transition: opacity 0.3s ease;
}

.hero .custom-video.loading {
    opacity: 0.7;
}

/* Asegurar que no haya espacio entre el hero y el siguiente contenido */
.hero {
    margin-bottom: 0;
}

.hero .videoWrapper {
    margin-bottom: 0;
    display: block;
}

.hero .custom-video {
    display: block;
    margin-bottom: 0;
}

/* Evitar espacios en blanco en móviles */
@media (max-width: 991px) {
    .hero,
    .hero .videoWrapper,
    .hero .custom-video {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Optimización para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero {
        height: 40vh;
        min-height: 250px; /* Reducir altura mínima en móviles muy pequeños */
    }

    .hero .custom-video {
        object-fit: cover;
        object-position: center top; /* Mostrar la parte superior del video en móviles */
        height: 40vh;
        min-height: 250px;
    }

    .videoWrapper {
        height: 40vh;
        min-height: 250px;
        padding-bottom: 0;
    }
}

/* Loading state para el video */
.hero .videoWrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.paginas p {
    font-size: 0.9rem !important;
}

.paginas table {
    font-size: 0.9rem !important;
}
