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

: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: #687083;
    --gris-claro: #E7E9F0;

    --sombra: 0 12px 35px rgba(0, 17, 120, 0.10);
}


/* =========================
   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(--azul-oscuro);

    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


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

.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 */

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

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

.logo-placeholder img {

    width: 38px;

    height: 38px;

    object-fit: contain;

    display: block;
}


/* TEXTO INSTITUCIONAL */

.institution {

    display: block;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    color: var(--rojo);

    margin-bottom: 2px;
}

.logo-area h1 {

    font-size: 20px;

    color: var(--azul);

    line-height: 1.2;
}


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

.nav {

    display: flex;

    align-items: center;

    gap: 28px;
}

.nav a {

    font-size: 14px;

    font-weight: 600;

    color: var(--azul);

    position: relative;

    transition: 0.3s;
}

.nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 2px;

    background: var(--rojo);

    transition: 0.3s;
}

.nav a:hover {

    color: var(--rojo);
}

.nav a:hover::after {

    width: 100%;
}


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

.red-line {

    height: 4px;

    background: var(--rojo);
}


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

.hero {

    min-height: 500px;

    padding: 80px 8%;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;

    gap: 60px;

    position: relative;

    overflow: hidden;

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

    color: var(--blanco);
}


/* DECORACIÓN */

.hero::before {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    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(200,16,46,0.35);

    border-radius: 50%;

    right: 100px;

    bottom: -130px;
}

.hero-content {

    position: relative;

    z-index: 2;
}

.section-label {

    display: inline-block;

    padding: 7px 14px;

    margin-bottom: 20px;

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

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

    color: var(--blanco);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;
}

.hero h2 {

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

    line-height: 1.03;

    margin-bottom: 22px;
}

.hero h2 span {

    color: #ffffff;

    position: relative;
}

.hero h2 span::after {

    content: "";

    display: block;

    width: 80px;

    height: 4px;

    background: var(--rojo);

    margin-top: 12px;
}

.hero p {

    max-width: 650px;

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

    font-size: 17px;

    margin-bottom: 32px;
}


/* BOTONES */

.hero-buttons {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}

.btn-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 22px;

    background: var(--rojo);

    color: var(--blanco);

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;

    transition: 0.3s;

    box-shadow:
        0 8px 20px rgba(200,16,46,0.25);
}

.btn-primary:hover {

    background: var(--rojo-oscuro);

    transform: translateY(-2px);
}

.btn-secondary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 22px;

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

    color: var(--blanco);

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;

    transition: 0.3s;
}

.btn-secondary:hover {

    background: var(--blanco);

    color: var(--azul);
}


/* CRUCES */

.medical-cross {

    position: absolute;

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

    font-size: 130px;

    font-weight: bold;

    z-index: 1;
}

.cross-one {

    right: 45%;

    top: 40px;
}

.cross-two {

    right: 8%;

    bottom: 20px;

    color: rgba(200,16,46,0.15);

    font-size: 180px;
}


/* TARJETA HERO */

.hero-decoration {

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 2;
}

.medical-card {

    width: 310px;

    min-height: 260px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

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

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

    border-radius: 20px;

    backdrop-filter: blur(8px);

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

.medical-symbol {

    width: 78px;

    height: 78px;

    margin-bottom: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--rojo);

    color: var(--blanco);

    font-size: 40px;

    font-weight: bold;
}

.medical-card strong {

    font-size: 18px;

    margin-bottom: 8px;
}

.medical-card span {

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

    font-size: 13px;
}


/* =========================
   INTRODUCCIÓN
   ========================= */

.intro {

    max-width: 1000px;

    margin: auto;

    padding: 80px 8% 50px;

    text-align: center;
}

.small-title {

    color: var(--rojo);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.8px;
}

.intro h2 {

    color: var(--azul);

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.2;

    margin: 10px 0 18px;
}

.intro p {

    color: var(--gris);

    max-width: 760px;

    margin: auto;

    font-size: 16px;
}


/* =========================
   CATEGORÍAS
   ========================= */

.categories {

    padding: 60px 8% 90px;

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

.section-heading {

    max-width: 1150px;

    margin: 0 auto 40px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.section-heading h2 {

    color: var(--azul);

    font-size: 34px;

    margin-top: 5px;
}

.heading-cross {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--rojo);

    color: var(--blanco);

    font-size: 24px;

    box-shadow:
        0 8px 20px rgba(200,16,46,0.20);
}


/* TARJETAS */

.cards {

    max-width: 1150px;

    margin: auto;

    display: grid;

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

    gap: 22px;
}

.document-card {

    display: flex;

    gap: 18px;

    padding: 25px;

    background: var(--blanco);

    border-radius: 14px;

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

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

    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(-5px);

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

    box-shadow: var(--sombra);
}

.document-card:hover::before {

    background: var(--rojo);
}

.card-icon {

    width: 48px;

    height: 48px;

    min-width: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--azul-claro);

    color: var(--azul);

    font-size: 22px;

    font-weight: bold;

    transition: 0.3s;
}

.document-card:hover .card-icon {

    background: var(--rojo-claro);

    color: var(--rojo);
}

.card-number {

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;
}

.card-content h3 {

    color: var(--azul);

    font-size: 19px;

    margin: 3px 0 7px;
}

.card-content p {

    color: var(--gris);

    font-size: 13px;

    line-height: 1.55;

    margin-bottom: 14px;
}

.card-link {

    color: var(--rojo);

    font-size: 13px;

    font-weight: bold;
}

.card-link span {

    margin-left: 5px;

    transition: 0.2s;
}

.card-link:hover span {

    margin-left: 9px;
}


/* =========================
   CONSULTA
   ========================= */

.consultation {

    max-width: 1150px;

    margin: 80px auto;

    padding: 35px 40px;

    display: flex;

    align-items: center;

    gap: 25px;

    background: var(--azul);

    color: var(--blanco);

    border-radius: 18px;

    box-shadow: var(--sombra);
}

.consultation-symbol {

    width: 58px;

    height: 58px;

    min-width: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--rojo);

    color: var(--blanco);

    font-size: 28px;

    font-weight: bold;
}

.consultation-content {

    flex: 1;
}

.consultation .small-title {

    color: #ffffff;

    opacity: 0.8;
}

.consultation h2 {

    font-size: 24px;

    margin: 3px 0 5px;
}

.consultation p {

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

    font-size: 14px;
}

.consultation .btn-primary {

    flex-shrink: 0;
}


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

.info-section {

    max-width: 1150px;

    margin: 0 auto 90px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;

    padding: 0 20px;
}

.info-box {

    padding: 25px;

    display: flex;

    gap: 18px;

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

    border-radius: 14px;

    background: var(--blanco);
}

.info-icon {

    width: 45px;

    height: 45px;

    min-width: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: var(--azul-claro);

    color: var(--azul);

    font-size: 20px;
}

.red-icon {

    background: var(--rojo-claro);

    color: var(--rojo);
}

.info-box span {

    color: var(--rojo);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;
}

.info-box p {

    margin-top: 5px;

    color: var(--gris);

    font-size: 13px;
}


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

.footer {

    padding: 35px 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background: var(--azul-oscuro);

    color: var(--blanco);

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

.footer strong {

    font-size: 13px;

    letter-spacing: 0.5px;
}

.footer p {

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

    font-size: 12px;

    margin-top: 3px;
}

.footer-right {

    display: flex;

    align-items: center;

    gap: 25px;

    font-size: 12px;
}

.footer-right span {

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

.footer-right a {

    color: var(--blanco);

    font-weight: bold;
}

.footer-right a:hover {

    color: #ffffff;
}


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

@media (max-width: 900px) {

    .header {

        padding: 14px 5%;

        flex-direction: column;

        align-items: flex-start;
    }

    .nav {

        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;

        gap: 18px;
    }

    .hero {

        grid-template-columns: 1fr;

        padding: 65px 7%;
    }

    .hero-decoration {

        display: none;
    }

    .cards {

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

    .consultation {

        margin-left: 5%;

        margin-right: 5%;
    }
}


@media (max-width: 600px) {

    .header {

        position: relative;
    }

    .logo-area {

        width: 100%;
    }

    .logo-area h1 {

        font-size: 17px;
    }

    .institution {

        font-size: 8px;

        letter-spacing: 0.7px;
    }

    .nav {

        gap: 13px;
    }

    .nav a {

        font-size: 12px;
    }

    .hero {

        min-height: auto;

        padding: 55px 6%;
    }

    .hero h2 {

        font-size: 42px;
    }

    .hero p {

        font-size: 15px;
    }

    .cards {

        grid-template-columns: 1fr;
    }

    .section-heading {

        align-items: flex-start;
    }

    .section-heading h2 {

        font-size: 27px;
    }

    .consultation {

        flex-direction: column;

        align-items: flex-start;

        padding: 30px;
    }

    .consultation .btn-primary {

        width: 100%;
    }

    .info-section {

        grid-template-columns: 1fr;

        padding: 0 6%;
    }

    .footer {

        flex-direction: column;

        align-items: flex-start;
    }

    .footer-right {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }
}
