/* =========================================
   1. RESET Y BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #f4f4f4;
}

/* =========================================
   2. NAVBAR (TRANSPARENTE AL INICIO)
   ========================================= */
.navbar-full {
    background-color: transparent;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 2000;
    box-shadow: none;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar-full.navbar-scrolled {
    background-color: #001f3e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.navbarmicropantallas {
    background-color: #001f3e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 80px;
    gap: 15px;
    padding-left: 10px;
    color: White;
}

.navbar-logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* =========================================
   3. MENÚ DE NAVEGACIÓN
   ========================================= */
.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 80px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700 !important;
}

/* =========================================
   4. DESPLEGABLES
   ========================================= */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #003366;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    list-style: none;
    padding: 0;
    top: 100%;
    left: 0;
    border-top: 3px solid #ffd700;
    z-index: 2100;
}

.dropdown-content li a {
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    color: #ffffff !important;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #004a99;
    padding-left: 30px;
    color: #ffd700 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

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

/* =========================================
   5. CARRUSEL AUTOMÁTICO (ESPACIO DELIMITADO)
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    background-color: #001f3e;
    overflow: hidden;
}

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

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

/* Contenido de la slide: texto a un lado, imagen al otro (estilo UVM) */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 10% 0 10%;
    box-sizing: border-box;
}

/* Variante: invierte el orden (imagen a la izquierda, texto a la derecha) */
.slide-content.reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
    max-width: 550px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.text-block.right-align {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.text-block img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.text-block h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
}

.text-block p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.text-block .disclaimer {
    font-size: 12px;
    opacity: 0.8;
    margin-top: -15px;
    margin-bottom: 25px;
}

/* Contenedor de la imagen lateral de cada slide */
.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 500px;
}

.slide-image img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.cta-button {
    display: inline-block;
    padding: 12px 35px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #cc0000;
    color: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, transform 0.3s;
    padding: 20px;
}

.carousel-arrow:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .text-block h2 { font-size: 32px; }
    .text-block p { font-size: 16px; }
    .slide-content {
        flex-direction: column;
        justify-content: center;
        padding: 80px 20px 0 20px;
    }
    .slide-image {
        display: none; /* oculta la imagen lateral en pantallas pequeñas */
    }
    .carousel-arrow { font-size: 30px; }
}

/* =========================================
   8. TARJETAS, BOTONES Y PLACEHOLDERS
   ========================================= */
.seccion-tarjetas {
    display: flex;
    gap: 20px;
    padding: 40px;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #f4f4f4;
    position: relative;
    z-index: 5;
}

.tarjeta-custom {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tarjeta-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.tarjeta-body {
    padding: 20px;
}

.tarjeta-titulo {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

.tarjeta-texto {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-azul-bootstrap {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0d6efd;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-azul-bootstrap:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

/* Tarjeta destacada (más grande, para cuando queda sola en la fila) */
.tarjeta-custom.tarjeta-destacada {
    width: 1250px;
}

.tarjeta-destacada .tarjeta-img {
    height: 280px;
}

.tarjeta-destacada .tarjeta-body {
    padding: 30px;
}

.tarjeta-destacada .tarjeta-titulo {
    font-size: 1.6rem;
}

.tarjeta-destacada .tarjeta-texto {
    font-size: 1.1rem;
}

.tarjeta-destacada .btn-azul-bootstrap {
    padding: 12px 30px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .tarjeta-custom.tarjeta-destacada {
        width: 100%;
        max-width: 360px;
    }
}

/* =========================================
   9. QUIÉNES SOMOS
   ========================================= */
.quienes-somos-seccion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    font-family: inherit;
}

.quienes-somos-titulo {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

.quienes-somos-contenido {
    display: flex;
    align-items: center;
    gap: 40px;
}

.quienes-somos-imagen {
    flex: 1;
}

.quienes-somos-imagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quienes-somos-texto {
    flex: 1;
}

.quienes-somos-texto p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .quienes-somos-contenido {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   10. FOOTER CORPORATIVO (ESTILO IMAGEN)
   ========================================= */
.footer-custom {
    background-color: #081b3b; /* Azul marino profundo */
    color: #a0aec0;
    font-family: inherit;
    padding-top: 60px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 60px 30px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Dividido en 3 grandes áreas */
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-wide {
    width: 100%;
}

.footer-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Columna Unidades dividida en 2 sublistas */
    gap: 20px;
}

.footer-title {
    color: #2b7fff; /* Azul brillante característico */
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 0;
}

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

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* --- BARRA INFERIOR (COPYRIGHT & LEGAL) --- */
.footer-bottom {
    background-color: #051329; /* Tono más oscuro inferior */
    padding: 22px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }

    .footer-subgrid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   13. VISTAS DE PRENSA (NOTICIAS Y NOVEDADES)
   ========================================= */
.prensa-seccion {
    padding: 80px 20px;
    background-color: #f4f4f4;
    min-height: 75vh;
}

.prensa-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prensa-header {
    text-align: center;
    margin-bottom: 60px;
}

.prensa-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.prensa-subtitulo {
    font-size: 1.15rem;
    color: #666666;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.prensa-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.articulo-tarjeta {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 360px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.articulo-tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.08);
}

.articulo-img-contenedor {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #000000;
}

.articulo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.articulo-tarjeta:hover .articulo-img {
    transform: scale(1.04);
    opacity: 1;
}

.articulo-etiqueta {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #003366;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.articulo-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
}

.articulo-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    line-height: 1.4;
}

.articulo-texto {
    font-size: 0.98rem;
    color: #555555;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .prensa-header {
        margin-bottom: 40px;
    }
    .prensa-titulo {
        font-size: 2rem;
    }
    .articulo-tarjeta {
        width: 100%;
        max-width: 360px;
    }
}

/* =========================================
   14. NOTICIAS ESPECÍFICAS (VIDEO + TARJETAS)
   ========================================= */
.noticias-seccion {
    padding: 80px 20px;
    background-color: #f4f4f4;
    min-height: 75vh;
}

.noticias-contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

.noticias-header {
    text-align: center;
    margin-bottom: 60px;
}

.noticias-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
}

.noticias-subtitulo {
    font-size: 1.15rem;
    color: #666666;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.noticias-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.noticias-tarjeta {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 360px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.noticias-tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.08);
}

.noticias-media {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #000000;
}

.noticias-img,
.noticias-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
    transition: transform 0.5s ease;
}

.noticias-tarjeta:hover .noticias-img,
.noticias-tarjeta:hover .noticias-video {
    transform: scale(1.04);
    opacity: 1;
}

.noticias-etiqueta {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #003366;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.noticias-contenido {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
}

.noticias-contenido-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
    line-height: 1.4;
}

.noticias-contenido-texto {
    font-size: 0.98rem;
    color: #555555;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.noticias-boton {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #FFD700;
    color: #003366;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.noticias-boton:hover {
    background-color: #ffffff;
    color: #003366;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .noticias-header {
        margin-bottom: 40px;
    }
    .noticias-titulo {
        font-size: 2rem;
    }
    .noticias-tarjeta {
        width: 100%;
        max-width: 360px;
    }
}
