/* =========================
   VARIABLES
   ========================= */

:root {

    --azul: #001178;
    --azul-oscuro: #000A4D;
    --azul-claro: #EEF1FF;

    --rojo: #C8102E;
    --rojo-oscuro: #A30D26;
    --rojo-claro: #FCEBED;

    --blanco: #ffffff;

    --gris-fondo: #F7F8FC;
    --gris: #687083;
    --gris-claro: #E4E7EF;

}


/* =========================
   GENERAL
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--azul-oscuro);

    background: var(--blanco);

    line-height: 1.6;
}


a {
    text-decoration: none;
}


/* =========================
   HEADER
   ========================= */

.header {

    min-height: 86px;

    padding: 14px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background: var(--blanco);

    border-bottom: 1px solid var(--gris-claro);

    position: sticky;

    top: 0;

    z-index: 1000;
}


.logo-area {

    display: flex;

    align-items: center;

    gap: 15px;
}


.logo-placeholder {

    width: 58px;

    height: 58px;

    border: 3px solid var(--rojo);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--blanco);

    overflow: hidden;

    flex-shrink: 0;
}


.logo-placeholder img {

    width: 38px;

    height: 38px;

    object-fit: contain;

    display: block;
}


.institution {

    display: block;

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;

    margin-bottom: 2px;
}


.logo-area h1 {

    color: var(--azul);

    font-size: 20px;

    line-height: 1.2;
}


/* =========================
   NAV
   ========================= */

.nav {

    display: flex;

    gap: 28px;

    align-items: center;
}


.nav a {

    color: var(--azul);

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;
}


.nav a:hover {

    color: var(--rojo);
}


/* =========================
   RED LINE
   ========================= */

.red-line {

    height: 4px;

    background: var(--rojo);
}


/* =========================
   BREADCRUMB
   ========================= */

.breadcrumb {

    padding: 18px 8%;

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;

    color: var(--gris);

    background: var(--gris-fondo);
}


.breadcrumb a {

    color: var(--azul);

    font-weight: 600;
}


.breadcrumb strong {

    color: var(--rojo);
}


/* =========================
   HERO
   ========================= */

.hero {

    min-height: 420px;

    padding: 65px 8%;

    display: grid;

    grid-template-columns: 1fr 0.5fr;

    align-items: center;

    gap: 50px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--azul-oscuro),
            var(--azul)
        );

    color: var(--blanco);
}


.hero::before {

    content: "";

    position: absolute;

    width: 430px;

    height: 430px;

    right: -140px;

    top: -180px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 50%;
}


.hero-content {

    position: relative;

    z-index: 2;
}


.section-label {

    display: inline-block;

    padding: 7px 13px;

    margin-bottom: 18px;

    border-left: 4px solid var(--rojo);

    background: rgba(255,255,255,0.09);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.hero h2 {

    font-size: clamp(42px, 5vw, 64px);

    line-height: 1.05;

    margin-bottom: 22px;
}


.hero h2 span {

    display: block;

    color: var(--blanco);
}


.hero h2 span::after {

    content: "";

    display: block;

    width: 75px;

    height: 4px;

    margin-top: 12px;

    background: var(--rojo);
}


.hero p {

    max-width: 650px;

    color: rgba(255,255,255,0.82);

    font-size: 16px;

    margin-bottom: 30px;
}


/* HERO INFO */

.hero-info {

    display: flex;

    gap: 35px;

    flex-wrap: wrap;
}


.hero-info div {

    display: flex;

    flex-direction: column;

    border-left: 2px solid var(--rojo);

    padding-left: 12px;
}


.hero-info strong {

    font-size: 13px;
}


.hero-info span {

    color: rgba(255,255,255,0.60);

    font-size: 11px;
}


/* HERO ICON */

.hero-icon {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 2;
}


.big-cross {

    width: 150px;

    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--rojo);

    color: var(--blanco);

    font-size: 75px;

    font-weight: bold;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.20);
}


.hero-icon span {

    margin-top: 15px;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* =========================
   DOCUMENTOS
   ========================= */

.documents-section {

    max-width: 1150px;

    margin: auto;

    padding: 75px 6%;
}


.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}


.small-title {

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.7px;
}


.section-heading h2 {

    color: var(--azul);

    font-size: 34px;

    line-height: 1.2;

    margin: 7px 0 10px;
}


.section-heading p {

    max-width: 650px;

    color: var(--gris);

    font-size: 14px;
}


/* CONTADOR */

.counter {

    min-width: 105px;

    padding: 15px;

    text-align: center;

    border-radius: 12px;

    background: var(--azul-claro);

    color: var(--azul);
}


.counter strong {

    display: block;

    font-size: 25px;

    line-height: 1;
}


.counter span {

    font-size: 10px;

    font-weight: bold;
}


/* =========================
   BUSCADOR
   ========================= */

.search-box {

    max-width: 700px;

    margin-bottom: 35px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 17px;

    background: var(--blanco);

    border: 1px solid var(--gris-claro);

    border-radius: 10px;

    box-shadow:
        0 5px 20px rgba(0,17,120,0.05);
}


.search-box:focus-within {

    border-color: var(--azul);
}


.search-icon {

    color: var(--rojo);

    font-size: 25px;
}


.search-box input {

    width: 100%;

    border: none;

    outline: none;

    font-size: 14px;

    color: var(--azul);
}


.search-box input::placeholder {

    color: #9AA0AF;
}


/* =========================
   TARJETAS
   ========================= */

.documents-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}


.document-card {

    display: flex;

    gap: 18px;

    padding: 25px;

    background: var(--blanco);

    border: 1px solid var(--gris-claro);

    border-radius: 14px;

    position: relative;

    overflow: hidden;

    transition: 0.3s;
}


.document-card::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    bottom: 0;

    width: 4px;

    background: var(--azul);

    transition: 0.3s;
}


.document-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0,17,120,0.10);

    border-color:
        rgba(200,16,46,0.25);
}


.document-card:hover::before {

    background: var(--rojo);
}


/* ICONO */

.document-icon {

    width: 52px;

    height: 52px;

    min-width: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--azul-claro);

    color: var(--azul);

    font-size: 23px;

    font-weight: bold;
}


.document-card:hover .document-icon {

    background: var(--rojo-claro);

    color: var(--rojo);
}


/* INFORMACIÓN */

.document-type {

    color: var(--rojo);

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.document-info h3 {

    color: var(--azul);

    font-size: 18px;

    margin: 4px 0 8px;
}


.document-info p {

    color: var(--gris);

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 14px;
}


/* METADATA */

.metadata {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 10px 0;

    border-top: 1px solid var(--gris-claro);

    border-bottom: 1px solid var(--gris-claro);

    color: var(--gris);

    font-size: 11px;

    margin-bottom: 15px;
}


.metadata strong {

    color: var(--azul);
}


/* BOTÓN */

.document-button {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--rojo);

    font-size: 12px;

    font-weight: bold;
}


.document-button span {

    transition: 0.2s;
}


.document-button:hover span {

    transform: translateX(4px);
}


/* =========================
   SIN RESULTADOS
   ========================= */

.no-results {

    display: none;

    padding: 50px;

    text-align: center;

    background: var(--gris-fondo);

    border-radius: 14px;
}


.no-results div {

    color: var(--rojo);

    font-size: 35px;
}


.no-results h3 {

    color: var(--azul);

    margin-top: 8px;
}


.no-results p {

    color: var(--gris);

    font-size: 13px;
}


/* =========================
   INFORMACIÓN
   ========================= */

.information {

    max-width: 1100px;

    margin: 0 auto 80px;

    padding: 0 6%;
}


.information-card {

    display: flex;

    gap: 20px;

    padding: 25px;

    border-radius: 14px;

    background: var(--rojo-claro);

    border-left: 5px solid var(--rojo);
}


.info-icon {

    width: 45px;

    height: 45px;

    min-width: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--rojo);

    color: var(--blanco);

    font-weight: bold;

    font-size: 20px;
}


.information-card span {

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.information-card h3 {

    color: var(--azul);

    font-size: 18px;

    margin: 3px 0 5px;
}


.information-card p {

    color: var(--gris);

    font-size: 13px;
}


/* =========================
   FOOTER
   ========================= */

.footer {

    padding: 35px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    background: var(--azul-oscuro);

    color: var(--blanco);

    border-top: 4px solid var(--rojo);
}


.footer strong {

    font-size: 12px;
}


.footer p {

    color: rgba(255,255,255,0.60);

    font-size: 11px;
}


.footer-right {

    display: flex;

    gap: 22px;
}


.footer-right a {

    color: var(--blanco);

    font-size: 12px;

    font-weight: bold;
}


.footer-right a:hover {

    color: var(--rojo);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 850px) {

    .header {

        flex-direction: column;

        align-items: flex-start;
    }


    .nav {

        flex-wrap: wrap;

        gap: 15px;
    }


    .hero {

        grid-template-columns: 1fr;
    }


    .hero-icon {

        display: none;
    }


    .documents-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .header {

        padding: 14px 5%;
    }


    .institution {

        font-size: 8px;
    }


    .logo-area h1 {

        font-size: 17px;
    }


    .hero {

        padding: 50px 7%;
    }


    .hero h2 {

        font-size: 42px;
    }


    .section-heading {

        flex-direction: column;

        align-items: flex-start;
    }


    .counter {

        width: 100%;
    }


    .documents-section {

        padding: 55px 6%;
    }


    .document-card {

        padding: 20px;
    }


    .information {

        padding: 0 6%;
    }


    .footer {

        flex-direction: column;

        align-items: flex-start;
    }


    .footer-right {

        flex-direction: column;

        gap: 8px;
    }

}
