/* =============================================================
   STYLE.CSS — Estilos del layout y frontend público DPA/UNT
   (header, navbar, footer, home, secciones de inicio)
   Los estilos de páginas internas están en: public/css/dpa.css
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; margin: 0; padding: 0; }

body.container-fluid { padding: 0 !important; }

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

p, h2, li, b, table { font-family: "Montserrat"; }

/* ── Header ──────────────────────────────────────────────── */
.header-top {
    background: #0a1628;
    padding: 10px 0;
}
.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-top__logo {
    display: inline-flex;
    line-height: 0;
}
.header-top__logo img {
    max-height: 52px;
    width: auto;
    display: block;
}
.header-top__social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-top__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #f5b206;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
}
.header-top__social a:hover {
    background: #f5b206;
    color: #0a1628;
}

/* ── Navbar ─────────────────────────────────────────────── */
.header-nav {
    background: linear-gradient(135deg, #0d1b4a 0%, #1a237e 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}
.header-nav .navbar {
    padding: 0;
}
.header-nav .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.header-nav .nav-item {
    margin: 0;
}
.header-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 14px;
    transition: color 0.2s;
    position: relative;
}
.header-nav .nav-link:hover,
.header-nav .nav-link:focus {
    color: #fff;
}
.header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #f5b206;
    transform: scaleX(0);
    transition: transform 0.25s;
}
.header-nav .nav-link:hover::after {
    transform: scaleX(1);
}
.header-nav .dropdown-menu {
    background: #0d1b4a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    margin-top: 0;
}
.header-nav .dropdown-item {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.header-nav .dropdown-item:hover,
.header-nav .dropdown-item:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ── Overlay del menú responsive ─────────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ── Navbar responsive ───────────────────────────────────── */
@media (max-width: 991px) {
    .header-top__logo img {
        max-height: 42px;
    }
    .header-top__social {
        gap: 10px;
    }
    .header-top__social a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .header-nav .navbar-collapse {
        background: #0d1b4a;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    .header-nav .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .header-nav .nav-link::after {
        display: none;
    }
    .header-nav .dropdown-menu {
        background: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        padding-left: 16px;
    }
    .header-nav .dropdown-item {
        font-size: 11px;
        padding: 8px 16px;
    }
}

/* ── Títulos ─────────────────────────────────────────────── */
.titulo {
    color: #751111;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 30px;
    line-height: 45px;
}

.titulo-somos {
    font-family: "Montserrat";
    font-weight: 400;
    font-size: 28px;
    line-height: 43px;
    text-align: center;
    text-transform: uppercase;
    color: #751111;
}

.titulo-parrafo {
    font-family: "Montserrat";
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    margin-top: 31px;
    color: #636363;
    padding-bottom: 50px;
}

.top-titulo { margin-top: 65px; }

/* ── Utilidades ──────────────────────────────────────────── */
.mar-0 { padding-right: 0; padding-left: 0; }
.contenedor { position: relative; display: inline-block; text-align: center; }

/* ── Fondo azul (sección videos) ─────────────────────────── */
.bg-blue { background: #3d56d8; padding-bottom: 60px; }

/* ── Cards ───────────────────────────────────────────────── */
/* ── Footer aliados (Owl Carousel) ──────────────────────── */
.footer-aliados {
    background: #f8f9fa;
    padding: 30px 0;
}

/* ── Footer main (3 columnas) ───────────────────────────── */
.footer-main {
    background: linear-gradient(135deg, #0d1b4a 0%, #1a237e 100%);
    padding: 50px 0 40px;
    color: rgba(255,255,255,0.85);
}
.footer-col {
    margin-bottom: 30px;
}

/* ── Col 1 — Facebook ──────────────────────────────────── */
.footer-facebook iframe {
    max-width: 100%;
    width: 100% !important;
}

/* ── Col 2 — Información ────────────────────────────────── */
.footer-info__title {
    color: #f5b206;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-info__title i {
    margin-right: 8px;
}
.footer-info__item {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-info__item i {
    color: #f5b206;
    width: 16px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}
.footer-info__item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-info__item a:hover {
    color: #f5b206;
}

/* ── Redes sociales (col 2) ─────────────────────────────── */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s;
}
.footer-social a:hover {
    background: #f5b206;
    color: #0d1b4a;
}

/* ── Col 3 — Logo institucional ─────────────────────────── */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
}
.footer-brand img {
    max-width: 160px;
    height: auto;
    opacity: 0.9;
}

/* ── Footer bottom (copyright) ──────────────────────────── */
.footer-bottom {
    background: #0a1628;
    padding: 16px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* ── Footer responsive ──────────────────────────────────── */
@media (max-width: 991px) {
    .footer-main {
        padding: 35px 0 20px;
    }
    .footer-facebook iframe {
        height: 200px;
    }
    .footer-brand {
        min-height: auto;
    }
    .footer-brand img {
        max-width: 130px;
    }
}

/* ── Owl Carousel ────────────────────────────────────────── */
.item { width: 100%; }
.owl-carousel .owl-stage { display: flex; align-items: center; }

/* ── Animación scroll ────────────────────────────────────── */
.container-fluid { margin: 0 !important; padding: 0 15px !important; max-width: 100vw; width: 100%; }

@keyframes fadeInSlide {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.section-fade { opacity: 0; }
.section-fade.visible { animation: fadeInSlide 0.5s ease-in-out forwards; }

/* ── Carrusel principal (home) ───────────────────────────── */
.carrusel-section.row.row-test { height: 700px; }
.carrusel-section.row.row-test img { height: 700px !important; object-fit:content }
@media (max-width: 768px) { .carrusel-section .carousel-inner img { object-fit: cover; } }

/* ── Sección Unidades DPA (home) ─────────────────────────── */
.unidades-dpa-section .unidades-dpa { gap: 30px; }
.unidades-dpa-section .unidades-dpa img { max-width: 250px; width: 100%; height: auto; transition: all .3s ease; }
.unidades-dpa-section .unidad-item { display: inline-block; padding: 20px; border-radius: 12px; transition: all .3s ease; box-shadow: 0 4px 8px rgba(0,0,0,.1); }
.unidades-dpa-section .unidad-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.unidades-dpa-section .unidad-item:hover img { transform: scale(1.1); }
.unidades-dpa-section .uda  { background-color: #a2d0f1; }
.unidades-dpa-section .udeg { background-color: #ffb9ac; }
.unidades-dpa-section .ugre { background-color: #ecbcf3; }
.unidades-dpa-section .ura  { background-color: #b0e0b4; }
.unidades-dpa-section .use  { background-color: #fcefb7; }
@media (max-width: 768px) {
    .unidades-dpa-section .unidades-dpa img { max-width: 200px; }
    .unidades-dpa-section .unidad-item      { padding: 10px; }
}

/* ── Sección Noticias (home) ─────────────────────────────── */
.noticias-section { background: linear-gradient(135deg,#4b5bdc,#3f51b5); color: white; }

.card-principal { display: flex; flex-direction: row; background: #fff; border-radius: 20px; overflow: hidden; color: #111; box-shadow: 0 20px 40px rgba(0,0,0,.15); transition: all .4s ease; }
.card-principal.fade { opacity: 0; transform: scale(.95); }
.card-principal .img-container { width: 50%; height: auto; }
.card-principal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-principal .contenido { width: 50%; padding: 25px; display: flex; flex-direction: column; justify-content: center; }

.btn-outline-custom   { display: inline-block; margin-top: 10px; padding: 8px 18px; border: 2px solid #4b5bdc; border-radius: 8px; color: #4b5bdc; text-decoration: none; transition: .3s; }
.btn-outline-custom:hover { background: #4b5bdc; color: white; }
.btn-outline-custom-2 { display: none; margin-top: 10px; padding: 8px 18px; border: 2px solid #fff; border-radius: 8px; background: #fff; color: #4b5bdc; text-decoration: none; transition: .3s; }
.btn-outline-custom-2:hover { background: #e2e2e2; border-color: #e2e2e2; color: #4b5bdc; }

.card-lista { display: flex; gap: 15px; background: rgba(255,255,255,.08); border-radius: 15px; padding: 12px; cursor: pointer; transition: all .3s ease; backdrop-filter: blur(10px); }
.card-lista:hover  { transform: translateX(8px) scale(1.02); background: rgba(255,255,255,.15); }
.card-lista.active { border: 2px solid #00e5ff; transform: scale(1.05); }

.mini-img         { width: 70px; height: 70px; overflow: hidden; border-radius: 10px; }
.mini-img img     { width: 100%; height: 100%; object-fit: cover; }
.info h4          { font-size: 15px; margin: 0; }
.info span        { font-size: 12px; opacity: .7; }

@media (max-width: 990px) {
    .principal-container { display: none; }
    .card-lista { flex-direction: column; align-items: stretch; text-align: left; padding: 15px; position: relative; }
    .card-lista .mini-img { display: none; }
    .card-lista .info { justify-content: space-between; align-items: center; }
    .card-lista .info h4 { font-size: 16px; margin: 0; flex: 1; }
    .card-lista::after { content: "›"; font-size: 20px; transition: transform .3s ease; }
    .card-lista.active::after { transform: rotate(90deg); }
    .card-lista.active .mini-img { display: block; width: 100%; height: 160px; margin-bottom: 10px; }
    .card-lista .btn-outline-custom-2 { display: none; }
    .card-lista.active .btn-outline-custom-2 { display: block; margin-top: 10px; }
    .mini-img { width: 100%; height: 150px; margin-bottom: 10px; }
    .mini-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
}

/* ── Sección Procesos (home) ─────────────────────────────── */
.procesos-section { background: #f8f9fc; }
.procesos-section .titulo-seccion { font-weight: 600; color: #3f51b5; letter-spacing: 1px; }
.procesos-section .proceso-card { text-decoration: none; display: block; border-radius: 16px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.procesos-section .proceso-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.procesos-section .card-img { position: relative; height: 220px; border-radius: 16px; overflow: hidden; }
.procesos-section .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.procesos-section .proceso-card:hover img { transform: scale(1.08); }
.procesos-section .overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(8,11,27,.85),rgba(0,0,0,.1)); transition: opacity .3s ease; }
.procesos-section .proceso-card:hover .overlay { background: linear-gradient(to top,rgba(63,81,181,.85),rgba(0,0,0,.1)); }
.procesos-section .card-img h5 { position: absolute; bottom: 15px; left: 15px; right: 15px; color: #fff; font-size: 14px; font-weight: 600; margin: 0; text-align: left; line-height: 1.3; }
@media (max-width: 768px) { .procesos-section .card-img { height: 180px; } .procesos-section .card-img h5 { font-size: 13px; } }
@media (max-width: 576px) { .procesos-section .titulo-seccion { font-size: 20px; } .procesos-section .card-img { height: 160px; } }

/* ── Sección Documentación (home) ────────────────────────── */
.documentacion-section { background: #ffa600; }
.documentacion-section .titulo { font-weight: 600; letter-spacing: 1px; }
.documentacion-section .doc-card { display: block; min-height: 250px; min-width: 200px; text-decoration: none; background: white; border-radius: 16px; padding: 20px 10px; transition: all .3s ease; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.documentacion-section .doc-card img { width: 120px; transition: transform .3s ease; object-fit: cover; border-radius: 50%; aspect-ratio: 1; border: 3px solid #751111; margin: auto; }
.documentacion-section .doc-card p { font-size: 14px; color: #333; margin: 15px 0; }
.documentacion-section .doc-card:hover, .documentacion-section .doc-card:hover img { transform: scale(1.1); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
@media (max-width: 768px) { .documentacion-section .doc-card { padding: 15px 5px; min-height: 150px; } .documentacion-section .doc-card img { width: 80px; } }
