/* =========================================
   VARIABLES DE COLOR
   ========================================= */

:root {

    --azul: #001178;
    --azul-oscuro: #000A4D;
    --azul-medio: #16258F;
    --azul-claro: #EEF1FF;

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

    --blanco: #FFFFFF;
    --gris-fondo: #F7F8FC;
    --gris-claro: #E8EAF2;
    --gris-texto: #626779;
    --gris-oscuro: #303443;

    --sombra: 0 10px 30px rgba(0, 17, 120, 0.08);

}


/* =========================================
   CONFIGURACIÓN GENERAL
   ========================================= */

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


html {
    scroll-behavior: smooth;
}


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

    background: var(--blanco);

    color: var(--gris-oscuro);

    line-height: 1.6;
}


a {
    text-decoration: none;
}


img {
    max-width: 100%;
}


/* =========================================
   ENCABEZADO
   ========================================= */

.header {

    width: 100%;

    min-height: 82px;

    padding: 14px 6%;

    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);

    box-shadow:
        0 4px 12px rgba(200, 16, 46, 0.12);

    overflow: hidden;
}


.logo-placeholder img {

    width: 38px;

    height: 38px;

    object-fit: contain;

    display: block;
}


.institution {

    display: block;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.2px;

    color: var(--rojo);

    margin-bottom: 2px;
}


.logo-area h1 {

    font-size: 21px;

    font-weight: 700;

    color: var(--azul);
}


/* =========================================
   NAVEGACIÓN
   ========================================= */

.nav {

    display: flex;

    align-items: center;

    gap: 25px;
}


.nav a {

    color: var(--azul);

    font-size: 14px;

    font-weight: 600;

    position: relative;

    padding: 8px 0;

    transition: 0.3s;
}


.nav a:hover {

    color: var(--rojo);
}


.nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 2px;

    background: var(--rojo);

    transition: 0.3s;
}


.nav a:hover::after {

    width: 100%;
}


/* =========================================
   LÍNEA ROJA
   ========================================= */

.red-line {

    width: 100%;

    height: 4px;

    background: var(--rojo);
}


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

.breadcrumb {

    max-width: 1200px;

    margin: 0 auto;

    padding: 22px 6% 10px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    font-size: 13px;

    color: var(--gris-texto);
}


.breadcrumb a {

    color: var(--azul);

    font-weight: 600;
}


.breadcrumb a:hover {

    color: var(--rojo);
}


.breadcrumb span {

    color: var(--rojo);

    font-weight: bold;
}


.breadcrumb strong {

    color: var(--gris-oscuro);
}


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

.hero {

    max-width: 1200px;

    margin: 10px auto 55px;

    padding: 70px 7%;

    min-height: 400px;

    border-radius: 24px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    background:

        linear-gradient(
            135deg,
            var(--azul) 0%,
            var(--azul-medio) 100%
        );

    color: var(--blanco);

    box-shadow:
        0 18px 45px rgba(0, 17, 120, 0.18);
}


.hero::before {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

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

    border-radius: 50%;

    right: -100px;

    top: -100px;
}


.hero::after {

    content: "";

    position: absolute;

    width: 250px;

    height: 250px;

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

    border-radius: 50%;

    right: 50px;

    bottom: -170px;
}


.hero-content {

    max-width: 720px;

    position: relative;

    z-index: 2;
}


.section-label {

    display: inline-block;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #FFFFFF;

    margin-bottom: 15px;

    padding-left: 12px;

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


.hero h2 {

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.05;

    margin-bottom: 22px;

    font-weight: 800;
}


.hero h2 span {

    color: #FFFFFF;

    position: relative;
}


.hero p {

    max-width: 670px;

    font-size: 17px;

    line-height: 1.8;

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

    margin-bottom: 30px;
}


/* =========================================
   INFORMACIÓN DEL HERO
   ========================================= */

.hero-info {

    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}


.hero-info > div {

    padding: 16px 20px;

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

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

    border-radius: 0 10px 10px 0;

    min-width: 210px;
}


.hero-info strong {

    display: block;

    font-size: 13px;

    color: var(--blanco);

    margin-bottom: 4px;
}


.hero-info span {

    font-size: 12px;

    color: rgba(255,255,255,0.70);
}


/* =========================================
   ELEMENTOS MÉDICOS
   ========================================= */

.medical-cross {

    position: absolute;

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

    font-size: 80px;

    font-weight: bold;

    z-index: 1;
}


.cross-one {

    right: 38%;

    top: 12%;

    transform: rotate(-10deg);
}


.hero-icon {

    position: relative;

    z-index: 3;

    min-width: 190px;

    height: 190px;

    border-radius: 50%;

    border: 2px solid rgba(255,255,255,0.20);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

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

    box-shadow:
        inset 0 0 0 15px rgba(255,255,255,0.03);
}


.big-cross {

    font-size: 70px;

    line-height: 1;

    color: var(--blanco);

    margin-bottom: 10px;
}


.hero-icon span {

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;

    color: rgba(255,255,255,0.85);
}


/* =========================================
   SECCIÓN DE DOCUMENTOS
   ========================================= */

.documents-section {

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px 6% 60px;
}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 30px;
}


.small-title {

    display: block;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;

    color: var(--rojo);

    margin-bottom: 8px;
}


.section-heading h2 {

    font-size: 32px;

    line-height: 1.2;

    color: var(--azul);

    margin-bottom: 10px;
}


.section-heading p {

    max-width: 650px;

    color: var(--gris-texto);

    font-size: 15px;
}


/* =========================================
   CONTADOR
   ========================================= */

.counter {

    min-width: 130px;

    padding: 18px 22px;

    border-radius: 15px;

    background: var(--azul-claro);

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

    text-align: center;
}


.counter strong {

    display: block;

    color: var(--azul);

    font-size: 30px;

    line-height: 1;
}


.counter span {

    font-size: 12px;

    color: var(--gris-texto);

    text-transform: uppercase;

    letter-spacing: 1px;
}


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

.search-box {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    margin-bottom: 35px;

    padding: 15px 20px;

    background: var(--gris-fondo);

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

    border-radius: 14px;

    transition: 0.3s;
}


.search-box:focus-within {

    border-color: var(--azul);

    box-shadow:
        0 0 0 4px rgba(0,17,120,0.06);
}


.search-icon {

    color: var(--azul);

    font-size: 25px;

    line-height: 1;
}


.search-box input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: var(--gris-oscuro);

    font-size: 15px;
}


.search-box input::placeholder {

    color: #9297A8;
}


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

.documents-grid {

    display: grid;

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

    gap: 25px;
}


/* =========================================
   TARJETA DOCUMENTO
   ========================================= */

.document-card {

    display: flex;

    gap: 22px;

    padding: 28px;

    background: var(--blanco);

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

    border-radius: 18px;

    box-shadow: var(--sombra);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.document-card:hover {

    transform: translateY(-5px);

    border-color: rgba(0,17,120,0.18);

    box-shadow:
        0 18px 40px rgba(0,17,120,0.12);
}


/* =========================================
   ICONO DOCUMENTO
   ========================================= */

.document-icon {

    flex: 0 0 58px;

    width: 58px;

    height: 58px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--azul-claro);

    color: var(--azul);

    font-size: 27px;

    font-weight: bold;

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


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

.document-info {

    flex: 1;
}


.document-type {

    display: inline-block;

    margin-bottom: 7px;

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.document-info h3 {

    color: var(--azul);

    font-size: 21px;

    line-height: 1.3;

    margin-bottom: 10px;
}


.document-info p {

    color: var(--gris-texto);

    font-size: 14px;

    line-height: 1.65;

    margin-bottom: 18px;
}


/* =========================================
   METADATOS
   ========================================= */

.metadata {

    display: grid;

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

    gap: 8px;

    margin-bottom: 20px;

    padding: 14px;

    background: var(--gris-fondo);

    border-radius: 10px;
}


.metadata span {

    font-size: 12px;

    color: var(--gris-texto);
}


.metadata strong {

    color: var(--azul);
}


/* =========================================
   BOTÓN DOCUMENTO
   ========================================= */

.document-button {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 11px 17px;

    background: var(--azul);

    color: var(--blanco);

    border-radius: 9px;

    font-size: 13px;

    font-weight: bold;

    transition: 0.3s;
}


.document-button:hover {

    background: var(--rojo);

    transform: translateX(3px);
}


.document-button span {

    font-size: 17px;
}


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

.no-results {

    display: none;

    text-align: center;

    padding: 55px 20px;

    background: var(--gris-fondo);

    border-radius: 18px;

    margin-top: 20px;
}


.no-results > div {

    width: 60px;

    height: 60px;

    margin: 0 auto 15px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--azul-claro);

    color: var(--azul);

    font-size: 25px;
}


.no-results h3 {

    color: var(--azul);

    margin-bottom: 5px;
}


.no-results p {

    color: var(--gris-texto);

    font-size: 14px;
}


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

.information {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 6% 70px;
}


.information-card {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 25px 28px;

    background: var(--rojo-claro);

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

    border-radius: 12px;
}


.info-icon {

    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--rojo);

    color: var(--blanco);

    font-size: 20px;

    font-weight: bold;
}


.information-card > div:last-child {

    flex: 1;
}


.information-card span {

    display: block;

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}


.information-card h3 {

    color: var(--azul);

    font-size: 19px;

    margin-bottom: 6px;
}


.information-card p {

    color: var(--gris-texto);

    font-size: 14px;

    line-height: 1.7;
}


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

.footer {

    padding: 35px 6%;

    background: var(--azul-oscuro);

    color: var(--blanco);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.footer strong {

    font-size: 13px;

    letter-spacing: 1px;
}


.footer p {

    margin-top: 5px;

    font-size: 12px;

    color: rgba(255,255,255,0.65);
}


.footer-right {

    display: flex;

    align-items: center;

    gap: 25px;
}


.footer-right a {

    color: var(--blanco);

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s;
}


.footer-right a:hover {

    color: var(--rojo);
}


/* =========================================
   RESPONSIVE - TABLET
   ========================================= */

@media (max-width: 900px) {

    .header {

        padding: 14px 4%;

    }


    .nav {

        gap: 15px;

    }


    .nav a {

        font-size: 12px;

    }


    .hero {

        margin-left: 4%;

        margin-right: 4%;

        padding: 55px 6%;

    }


    .hero-icon {

        min-width: 150px;

        height: 150px;

    }


    .big-cross {

        font-size: 55px;

    }


    .documents-grid {

        grid-template-columns: 1fr;

    }

}


/* =========================================
   RESPONSIVE - CELULAR
   ========================================= */

@media (max-width: 650px) {


    .header {

        position: relative;

        flex-direction: column;

        align-items: flex-start;

        padding: 16px 5%;

    }


    .nav {

        width: 100%;

        flex-wrap: wrap;

        gap: 10px 18px;

    }


    .nav a {

        font-size: 12px;

    }


    .breadcrumb {

        padding-left: 5%;

        padding-right: 5%;

    }


    .hero {

        margin: 10px 4% 40px;

        padding: 45px 7%;

        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

    }


    .hero h2 {

        font-size: 40px;

    }


    .hero p {

        font-size: 15px;

    }


    .hero-info {

        flex-direction: column;

        width: 100%;

    }


    .hero-info > div {

        width: 100%;

    }


    .hero-icon {

        align-self: center;

        min-width: 145px;

        height: 145px;

    }


    .cross-one {

        right: 5%;

        top: 5%;

    }


    .documents-section {

        padding-left: 5%;

        padding-right: 5%;

    }


    .section-heading {

        flex-direction: column;

        align-items: flex-start;

    }


    .section-heading h2 {

        font-size: 27px;

    }


    .counter {

        width: 100%;

    }


    .document-card {

        flex-direction: column;

        padding: 22px;

    }


    .document-icon {

        width: 52px;

        height: 52px;

        flex-basis: 52px;

    }


    .document-info h3 {

        font-size: 19px;

    }


    .metadata {

        grid-template-columns: 1fr;

    }


    .information {

        padding-left: 5%;

        padding-right: 5%;

    }


    .information-card {

        flex-direction: column;

        padding: 22px;

    }


    .footer {

        flex-direction: column;

        align-items: flex-start;

        padding: 30px 5%;

    }


    .footer-right {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

}
