/* ================= RESETEO Y BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
html, body { height: 100%; display: flex; flex-direction: column; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= ENCABEZADO ================= */
.header { background-color: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 15px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60px; width: auto; object-fit: contain; }
.nav-menu ul { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-menu a { text-decoration: none; color: #333; font-weight: bold; }
.btn-login { background-color: #004080; color: #fff !important; padding: 8px 15px; border-radius: 5px; }
.nav-escudo { display: flex; align-items: center; margin-left: 25px; }
.escudo-img { height: 60px; width: auto; object-fit: contain; }

/* ================= SECCIÓN COMBINADA 50/50 ================= */
.hero-split { display: flex; flex-wrap: wrap; width: 100%; min-height: 550px; overflow: hidden; }
.hero-left { position: relative; flex: 1 1 50%; min-height: 400px; display: flex; align-items: flex-end; padding: 50px; color: #ffffff; }
.hero-bg-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%); z-index: 2; }
.hero-left-content { position: relative; z-index: 3; max-width: 600px; }
.tag-noticia { background-color: #d92323; color: #fff; padding: 4px 10px; font-size: 12px; font-weight: bold; border-radius: 3px; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.hero-left-content h1 { font-size: 32px; line-height: 1.2; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-left-content p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.btn-primary { display: inline-block; background-color: #d92323; color: white; padding: 10px 20px; text-decoration: none; font-weight: bold; border-radius: 5px; }

.hero-right { flex: 1 1 50%; background: linear-gradient(135deg, #d92323 0%, #004080 100%); display: flex; align-items: center; justify-content: center; padding: 50px; color: #ffffff; text-align: center; }
.hero-right-content { max-width: 500px; }
.hero-right-content h2 { font-size: 32px; margin-bottom: 15px; font-weight: 800; }
.hero-right-content p { font-size: 16px; margin-bottom: 30px; opacity: 0.9; }
.btn-gaceta-gigante { display: inline-block; background-color: #003366; color: #ffffff; font-size: 20px; font-weight: bold; text-decoration: none; padding: 20px 40px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.2s ease, background-color 0.2s ease; }
.btn-gaceta-gigante span { font-size: 24px; text-transform: uppercase; }
.btn-gaceta-gigante:hover { background-color: #002244; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.4); }

@media(max-width: 768px) { .hero-split { flex-direction: column; } .hero-left, .hero-right { flex: 1 1 100%; padding: 30px 20px; } }

/* ================= CARRUSEL DE NOTICIAS ================= */
.noticias-carrusel-section { padding: 60px 20px; background-color: #f4f6f9; flex: 1; width: 100%; }
.titulo-seccion { text-align: center; font-size: 32px; color: #004080; margin-bottom: 40px; font-weight: 800; }
.swiper { width: 100%; padding-bottom: 50px !important; }
.swiper-slide { display: flex; justify-content: center; height: auto; }
.news-card { background: #ffffff; border: 1px solid #eaeaea; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); width: 100%; max-width: 380px; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-info { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.news-info h3 { font-size: 20px; color: #333; margin-bottom: 12px; line-height: 1.3; }
.news-info p { font-size: 15px; color: #666; margin-bottom: 20px; line-height: 1.5; flex: 1; }
.leer-mas-link { color: #d92323; font-weight: bold; text-decoration: none; text-transform: uppercase; font-size: 14px; }
.leer-mas-link:hover { text-decoration: underline; }
.swiper-button-next, .swiper-button-prev { color: #d92323 !important; }
.swiper-pagination-bullet-active { background-color: #d92323 !important; }

/* ================= PIE DE PÁGINA ================= */
/* ================= PIE DE PÁGINA INSTITUCIONAL ================= */
.footer-institucional {
    /* Degradado adaptado a los colores de Colón (Rojo, Morado, Azul oscuro) */
    background: linear-gradient(to right, #d92323, #7a2a5c, #002244);
    color: #ffffff;
    padding: 40px 20px;
    margin-top: auto;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

/* Contenedor izquierdo: Logo y Eslogan */
.footer-logo {
    flex: 1;
    display: flex;
    flex-direction: column; /* Coloca el texto debajo del logo */
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* El logo de la izquierda en blanco */
/* El logo de la izquierda */
/* El logo de la izquierda */
.img-blanca {
    height: 110px; 
    width: auto;
    object-fit: contain;
    margin-bottom: 15px; 
    
    /* ESTE ES EL TRUCO: Elimina el fondo blanco del logo y lo integra con el rojo */
    mix-blend-mode: screen; 
    
    /* Opcional: Si quieres que el logo se vea completamente blanco, usa esto en su lugar: */
    /* mix-blend-mode: screen; */
}
/* Estilo para el eslogan */
.slogan-footer {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-style: italic; /* Le da un toque dinámico */
}

/* Contenedor derecho: Iglesia */
.footer-iglesia {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajustes para la foto de la iglesia (Sin filtro blanco para que conserve sus colores) */
.img-iglesia {
    height: 140px; 
    width: auto;
    object-fit: contain;
    border-radius: 8px; /* Redondea ligeramente los bordes si usas una foto cuadrada */
}

/* Ajustes para móviles */
@media (max-width: 900px) {
    .footer-logo, .footer-iglesia {
        order: 1; /* Mantendrá estos elementos abajo del texto en móviles */
    }
}

/* Este filtro convierte automáticamente cualquier imagen a color en blanco puro */
.img-blanca {
    height: 110px; 
    width: auto;
    object-fit: contain;
    margin-bottom: 15px; 
    
    /* Esto volverá tu logo completamente blanco y nítido sobre el fondo rojo */
    filter: brightness(0) invert(1);
}

.footer-info {
    flex: 3;
    text-align: center;
    padding: 0 20px;
}

.redes-iconos {
    margin-bottom: 15px;
}

/* Diseño de los círculos blancos para los íconos */
.redes-iconos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #62bfae;
    color: #ffffff; /* Color del ícono */
    border-radius: 50%;
    margin: 0 5px;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.redes-iconos a:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

.redes-texto {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.direccion-texto {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.rif-texto {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Ajustes para teléfonos móviles */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-info {
        order: -1; /* Pone el texto arriba en móviles */
    }
    .img-blanca {
        height: 100px;
    }
}


/* ================= BARRA SUB-BANNER (SERVICIOS, TURISMO, BUSCAR) ================= */


.sub-bar-grid {
    display: grid;
    /* Crea 3 columnas de igual ancho, pero en pantallas pequeñas se apilan de forma adaptable */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px; /* Separación entre los 3 elementos */
    align-items: center;
}

/* Base común para los botones redondeados */
.sub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 50px; /* Hace los extremos completamente redondeados (Pill) */
    text-decoration: none;
    font-size: 14px;
    font-weight: 800; /* Letras gruesas */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

/* 1. Botón Servicios (Fondo azul degradado y borde dorado) */
.btn-servicios {
    background: linear-gradient(90deg, #102640 0%, #1e3d64 50%, #517ca9 100%); /* Degradado de azul oscuro a claro */
    border: 2px solid #bda02b; /* Borde dorado/amarillo */
    color: #e5b310; /* Letras doradas */
}

.btn-servicios:hover {
    box-shadow: 0 0 12px rgba(189, 160, 43, 0.4);
    transform: translateY(-2px);
}

/* 2. Botón Turismo (Mismo degradado sin borde dorado) */
.btn-turismo {
    background: linear-gradient(90deg, #102640 0%, #1e3d64 50%, #517ca9 100%);
    border: 2px solid #102640;
    color: #e5b310; /* Letras doradas */
}

.btn-turismo:hover {
    box-shadow: 0 0 12px rgba(30, 61, 100, 0.3);
    transform: translateY(-2px);
}

/* 3. Buscador integrado (Barra redondeada) */
.buscador-form {
    display: flex;
    align-items: center;
    height: 52px;
    background-color: #ffffff;
    border: 2px solid #102640; /* Borde oscuro */
    border-radius: 50px;
    overflow: hidden; /* Corta lo que se salga para que quede redondeado */
    box-sizing: border-box;
}

.buscador-input {
    flex: 1; /* Ocupa todo el espacio izquierdo */
    border: none;
    padding: 0 20px;
    font-size: 15px;
    outline: none; /* Quita el borde feo que sale al hacer click */
    color: #333;
}

.buscador-input::placeholder {
    color: #888; /* Color del texto "Buscar..." */
}

.buscador-btn {
    height: 100%;
    width: 65px;
    background: linear-gradient(90deg, #102640 0%, #1e3d64 50%, #517ca9 100%); /* Degradado que coincide con los botones */
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.buscador-btn:hover {
    opacity: 0.9;
}

/* Ajustes para que se vea cómodo en teléfonos móviles */
@media (max-width: 768px) {
    .barra-sub-banner {
        padding: 0 15px;
    }
}

/* ================= NUEVO DISEÑO DEL ENCABEZADO ================= */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Contenedor central para servicios, turismo y buscador */
.nav-menu-central {
    flex: 1;
    max-width: 650px;
    padding: 0 10px;
}

.sub-bar-grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; /* Ajusta el espacio para los 3 elementos */
    gap: 8px;
    align-items: center;
}

/* Botones compactos para el encabezado */
.sub-btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.btn-servicios {
    background: linear-gradient(90deg, #102640 0%, #1e3d64 50%, #517ca9 100%);
    border: 1.5px solid #bda02b;
    color: #e5b310;
}

.btn-turismo {
    background: linear-gradient(90deg, #102640 0%, #1e3d64 50%, #517ca9 100%);
    border: 1.5px solid #102640;
    color: #e5b310;
}

/* Buscador compacto en la barra superior */
.buscador-form-header {
    display: flex;
    align-items: center;
    height: 38px;
    background-color: #ffffff;
    border: 1.5px solid #102640;
    border-radius: 20px;
    overflow: hidden;
}

.buscador-input-header {
    flex: 1;
    border: none;
    padding: 0 10px;
    font-size: 12px;
    outline: none;
    color: #333;
    min-width: 0;
}

.buscador-btn-header {
    height: 100%;
    width: 35px;
    background: linear-gradient(90deg, #102640 0%, #1e3d64 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Acciones del extremo derecho (Botón funcionarios + Escudo) */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.escudo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* ================= ESTILOS NUEVOS PARA EL BOTÓN DE GACETAS EN EL MENÚ ================= */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-gaceta-menu {
    display: inline-block;
    background: linear-gradient(90deg, #d92323 0%, #004080 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.btn-gaceta-menu span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gaceta-menu:hover {
    transform: translateY(-2px);
}

.btn-login-small {
    background-color: #004080;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.btn-login-small:hover {
    background-color: #002244;
}

/* ================= SECCIÓN Y BOTÓN FLOTANTE DE GACETAS ================= */
.seccion-gacetas-flotante {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px 15px 20px;
    background-color: transparent;
}

/* Diseño del botón grande y llamativo */
.btn-gaceta-flotante {
    display: inline-block;
    background: linear-gradient(135deg, #d92323 0%, #004080 100%);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    padding: 22px 45px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    
    /* Aquí aplicamos la animación continua de flotación */
    animation: flotarBoton 2.5s ease-in-out infinite;
    transition: background 0.3s ease;
}

.btn-gaceta-flotante span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    font-weight: 600;
}

.btn-gaceta-flotante:hover {
    background: linear-gradient(135deg, #b51c1c, #002e5d);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* Definición de la animación de movimiento arriba y abajo */
@keyframes flotarBoton {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px); /* Sube 8 píxeles suavemente */
    }
    100% {
        transform: translateY(0); /* Regresa a su posición original */
    }
}

/* ================= BARRA DE NAVEGACIÓN DE ANCHO TOTAL ================= */
.barra-ancho-total {
    width: 100%;
    padding: 15px 20px; /* Margen superior e inferior con un pequeño respiro lateral */
    background-color: #ffffff;
    box-sizing: border-box;
}

.sub-bar-grid-full {
    display: grid;
    /* Divide el espacio en 3 columnas proporcionales que abarcan toda la pantalla */
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
    width: 100%;
    align-items: center;
}

/* Estilo exacto de los botones de la referencia */
.sub-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Botón Servicios (Degradado azul con borde dorado) */
.btn-servicios-full {
    background: linear-gradient(90deg, #0d2238 0%, #17385c 40%, #537d9c 100%);
    border: 2px solid #bda02b;
    color: #e5b310;
}

/* Botón Turismo (Degradado azul idéntico) */
.btn-turismo-full {
    background: linear-gradient(90deg, #0d2238 0%, #17385c 40%, #537d9c 100%);
    border: 2px solid #0d2238;
    color: #e5b310;
}

/* Buscador idéntico con el botón integrado a la derecha */
.buscador-form-full {
    display: flex;
    align-items: center;
    height: 55px;
    background-color: #ffffff;
    border: 2px solid #0d2238;
    border-radius: 50px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.buscador-input-full {
    flex: 1;
    border: none;
    padding: 0 25px;
    font-size: 15px;
    outline: none;
    color: #333;
    background: transparent;
}

.buscador-btn-full {
    height: 100%;
    width: 75px;
    background: linear-gradient(90deg, #17385c 0%, #537d9c 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.buscador-btn-full:hover {
    opacity: 0.9;
}

/* Adaptación para pantallas de teléfonos o tablets */
@media (max-width: 900px) {
    .sub-bar-grid-full {
        grid-template-columns: 1fr;
    }
}

/* ================= ANIMACIÓN DE FLOTACIÓN PARA LA BARRA ================= */
.barra-flotante {
    animation: flotarBarra 2.5s ease-in-out infinite;
}

@keyframes flotarBarra {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px); /* Sube suavemente 6 píxeles */
    }
    100% {
        transform: translateY(0); /* Regresa a la posición inicial */
    }
}

/* ================= BUZÓN DE CONTACTO (ESTILO GOOGLE FORMS) ================= */
.seccion-contacto-ciudadano {
    padding: 40px 20px;
    background-color: #f0f4f9; /* Fondo gris claro típico de Forms */
    margin: 40px auto;
    border-radius: 8px;
}

.contacto-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    /* Tarjeta elevada con sombra suave */
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    overflow: hidden;
    border: 1px solid #dadce0;
}

/* Cabecera del formulario con la barra superior de color institucional */
.contacto-header {
    background-color: #ffffff;
    padding: 24px 30px;
    border-top: 10px solid #102640; /* Barra superior institucional */
    text-align: left;
    border-bottom: 1px solid #dadce0;
}

.contacto-header h2 {
    color: #202124;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.contacto-header p {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

/* Estructura del formulario dentro de la tarjeta */
.formulario-contacto {
    padding: 24px 30px 30px 30px;
}

.formulario-contacto .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

/* Campos de texto estilo Google (línea inferior sutil y fondo claro) */
.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #202124;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #102640;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(16, 38, 64, 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end; /* Botón alineado a la derecha como en Google Forms */
    margin-top: 10px;
}

/* Botón de envío principal */
.btn-enviar-contacto {
    background-color: #102640;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-enviar-contacto:hover {
    background-color: #1a3d64;
    box-shadow: 0 1px 3px 1px rgba(60,64,67,0.15);
}

/* Mensaje de confirmación estilo Google */
.alerta-exito {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
    padding: 24px;
    border-radius: 8px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    margin: 30px;
}

.alerta-exito i {
    font-size: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Adaptabilidad móvil */
@media (max-width: 768px) {
    .formulario-contacto .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .contacto-header, .formulario-contacto {
        padding: 20px 15px;
    }
}
/* ================= FONDOS INSTITUCIONALES ================= */
.fondo-marca-agua {
    position: relative;
    background-color: #f0f4f9;
    min-height: 100vh;
    z-index: 1;
}

.fondo-marca-agua::before {
    content: "";
    position: fixed; /* Se queda fijo aunque hagas scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* Tamaño del escudo en el fondo */
    height: 500px;
    background-image: url('img/escudo.png'); /* Usa el escudo de tu carpeta img */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05; /* 5% de opacidad para que sea muy sutil */
    z-index: -1; /* Lo mantiene detrás de las tarjetas blancas */
}

.footer-institucional {
    background: linear-gradient(90deg, #62bfae 0%, #102640 100%);
    color: #ffffff;
    border-top: 4px solid #bda02b;
}

@media (max-width: 900px) {
    .contenedor-principal-web {
        grid-template-columns: 1fr !important;
    }
}

/* Tarjeta de noticias con un formato más cuadrado y profesional */
.tarjeta-noticia {
    background: #ffffff;
    border-radius: 8px; /* Reducimos el redondeo para que sea más cuadrada */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.tarjeta-noticia:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Imagen de la noticia en proporción uniforme */
.tarjeta-noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Evita que la imagen se deforme */
}

/* Contenedor del texto dentro de la tarjeta */
.tarjeta-contenido {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título de la noticia más legible y destacado */
.tarjeta-contenido h3 {
    color: #102640; /* Azul institucional oscuro */
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* Párrafo o extracto con mayor nitidez y legibilidad */
.tarjeta-contenido p {
    color: #4a5568; /* Gris oscuro para una lectura cómoda */
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Botón de Leer Completa */
.btn-leer-mas {
    color: #d92323; /* Rojo institucional */
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-leer-mas:hover {
    text-decoration: underline;
}

