:root {
    --blue: #0757b8;
    --blue-dark: #06458f;
    --black: #050505;
    --black-soft: #111111;
    --gold: #bc9655;
    --gold-light: #d8bd88;
    --white: #ffffff;
    --off-white: #f6f6f4;
    --text: #242424;
    --muted: #707070;
    --border: #e4e4e4;
}


/* BASE */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 60px));
    margin: 0 auto;
}


/* ==========================================================
   HEADER
========================================================== */

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--black);
}

.header-inner {
    min-height: 120px;

    display: flex;
    align-items: center;

    gap: 65px;
}

.site-logo img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}


/* NAV */

.main-navigation {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.main-navigation > a,
.dropdown-toggle {
    padding: 25px 0;

    border: 0;
    background: transparent;

    color: var(--white);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .13em;

    white-space: nowrap;

    cursor: pointer;

    transition: color .2s ease;
}

.main-navigation > a:hover,
.dropdown-toggle:hover,
.main-navigation > a.active {
    color: var(--gold);
}

.dropdown-toggle span {
    margin-left: 4px;
    color: var(--gold);
}


/* LOGIN */

.main-navigation .login-link {
    padding: 12px 18px;

    border: 1px solid var(--gold);

    color: var(--gold);
}

.main-navigation .login-link:hover {
    color: var(--black);
    background: var(--gold);
}


/* DROPDOWNS */

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% - 10px);
    left: -20px;

    min-width: 270px;

    padding: 10px 0;

    background: var(--black-soft);

    border-top: 2px solid var(--gold);

    box-shadow: 0 18px 40px rgba(0,0,0,.3);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    justify-content: space-between;

    padding: 13px 22px;

    color: #eeeeee;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dropdown-menu a:hover {
    color: var(--gold);
    background: rgba(255,255,255,.05);
}


/* SUBMENU */

.dropdown-submenu {
    position: relative;
}

.submenu {
    position: absolute;

    top: -10px;
    left: 100%;

    min-width: 250px;

    padding: 10px 0;

    background: var(--black-soft);

    border-top: 2px solid var(--gold);

    opacity: 0;
    visibility: hidden;

    transform: translateX(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.dropdown-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;
}


/* CARRUSEL */

/* ==========================================================
   SLIDER
========================================================== */

.hero-slider {
    position: relative;

    height: 540px;
    min-height: 540px;

    overflow: hidden;
    background: var(--black);
}

.slide {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;

    transition: opacity .8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    max-width: 900px;

    color: var(--white);

    text-align: center;

    text-shadow: 0 3px 18px rgba(0,0,0,.5);
}

.slide-content > span {
    display: block;

    margin-bottom: 14px;

    color: var(--gold-light);

    font-size: 15px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .18em;
}

.slide-content h1,
.slide-content h2 {
    margin: 0;

    font-size: clamp(52px, 6vw, 90px);

    line-height: 1.02;

    font-weight: 600;
}

.slide-content p {
    margin: 22px 0 32px;

    font-size: 22px;

    line-height: 1.5;
}

.slider-button {
    display: inline-block;

    padding: 15px 25px;

    border: 1px solid var(--gold-light);

    color: var(--white);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .12em;

    text-shadow: none;

    transition:
        color .2s ease,
        background .2s ease;
}

.slider-button:hover {
    color: var(--black);
    background: var(--gold-light);
}


/* ARROWS */

.slider-arrow {
    position: absolute;

    z-index: 10;

    top: 50%;

    width: 52px;
    height: 70px;

    border: 0;

    color: var(--white);
    background: rgba(0,0,0,.45);

    font-size: 40px;

    cursor: pointer;

    transform: translateY(-50%);

    transition: background .2s ease;
}

.slider-arrow:hover {
    background: var(--blue);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}


/* DOTS */

.slider-dots {
    position: absolute;

    z-index: 10;

    left: 50%;
    bottom: 27px;

    display: flex;

    gap: 10px;

    transform: translateX(-50%);
}

.slider-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 1px solid var(--white);
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.slider-dot.active {
    border-color: var(--gold);
    background: var(--gold);
}


/* ==========================================================
   GENERIC SECTIONS
========================================================== */

.section {
    padding: 100px 0;
}

.section-heading {
    margin-bottom: 55px;
    text-align: center;
}

.section-heading > span,
.section-kicker {
    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .2em;
}

.section-heading h2 {
    margin: 10px 0 18px;

    color: var(--blue-dark);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 45px;
    font-weight: normal;
}

.section-line {
    width: 65px;
    height: 2px;

    margin: auto;

    background: var(--gold);
}

.gold-line {
    width: 65px;
    height: 2px;

    margin: 25px 0;

    background: var(--gold);
}

.gold-line.centered {
    margin: 25px auto;
}


/* ==========================================================
   NEWS
========================================================== */

.news-section {
    background: var(--off-white);
}

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;
}

.news-card {
    overflow: hidden;

    background: var(--white);

    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.news-image {
    height: 245px;

    display: grid;
    place-items: center;

    color: #999;
    background: #e2e2e2;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.news-body {
    padding: 28px;
}

.news-body time {
    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.news-body h3 {
    margin: 12px 0;

    color: var(--blue-dark);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 25px;
    font-weight: normal;

    line-height: 1.3;
}

.news-body p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}

.news-body a {
    color: var(--blue);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.section-action {
    margin-top: 50px;
    text-align: center;
}

.outline-button {
    display: inline-block;

    padding: 14px 24px;

    border: 1px solid var(--blue);

    color: var(--blue);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.outline-button:hover {
    color: var(--white);
    background: var(--blue);
}


/* ==========================================================
   ABOUT
========================================================== */

.about-section {
    color: var(--white);

    background:
        linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.two-columns {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    gap: 85px;

    align-items: center;
}

.section-photo {
    position: relative;

    min-height: 550px;

    overflow: hidden;
}

.section-photo::after {
    content: "";

    position: absolute;

    inset: 18px;

    border: 1px solid rgba(216,189,136,.65);
}

.section-photo img {
    width: 100%;
    height: 550px;

    object-fit: cover;
    object-position: center top;
}

.section-copy h2 {
    max-width: 600px;

    margin: 10px 0 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 49px;
    font-weight: normal;

    line-height: 1.15;
}

.section-copy p {
    max-width: 570px;

    color: rgba(255,255,255,.86);

    font-size: 17px;

    line-height: 1.85;
}

.light-button {
    display: inline-block;

    margin-top: 15px;

    padding: 14px 22px;

    border: 1px solid var(--gold-light);

    color: var(--white);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.light-button:hover {
    color: var(--blue-dark);
    background: var(--gold-light);
}


/* ==========================================================
   MISSION
========================================================== */

.mission-section {
    background: var(--white);
}

.mission-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 60px;
}

.mission-grid article {
    padding: 20px 30px;

    text-align: center;
}

.mission-symbol {
    margin-bottom: 20px;

    color: var(--gold);

    font-size: 28px;
}

.mission-grid h3 {
    margin: 0 0 15px;

    color: var(--blue-dark);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 26px;
    font-weight: normal;
}

.mission-grid p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.75;
}


/* ==========================================================
   GOVERNMENT
========================================================== */

.government-section {
    color: var(--white);

    background:
        linear-gradient(
            rgba(4,66,139,.92),
            rgba(4,66,139,.92)
        ),
        url("../img/virgen-del-prado.jpg");

    background-position: center;
    background-size: cover;
}

.government-content {
    max-width: 760px;

    text-align: center;
}

.government-content h2 {
    margin: 10px 0 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 52px;
    font-weight: normal;
}

.government-content p {
    margin: 0 auto 25px;

    max-width: 650px;

    color: rgba(255,255,255,.88);

    font-size: 17px;

    line-height: 1.8;
}


/* ==========================================================
   CONTACT CTA
========================================================== */

.contact-cta {
    padding: 75px 0;

    background: var(--off-white);
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.contact-inner span {
    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .18em;
}

.contact-inner h2 {
    max-width: 650px;

    margin: 8px 0 0;

    color: var(--blue-dark);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 38px;
    font-weight: normal;
}

.contact-actions {
    display: flex;
    gap: 15px;
}

.blue-button,
.outline-blue-button {
    display: inline-block;

    padding: 15px 22px;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.blue-button {
    border: 1px solid var(--blue);
    color: var(--white);
    background: var(--blue);
}

.outline-blue-button {
    border: 1px solid var(--blue);
    color: var(--blue);
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
    color: #cccccc;
    background: var(--black);
}

.footer-main {
    min-height: 190px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.footer-logo {
    width: 90px;
    height: 90px;

    object-fit: contain;
}

.footer-info {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.footer-info strong {
    color: var(--white);

    font-size: 13px;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-info span {
    color: var(--gold);

    font-family: Georgia, "Times New Roman", serif;

    font-style: italic;
}

.footer-info p {
    margin: 4px 0 0;
}

.footer-bottom {
    padding: 20px;

    border-top: 1px solid rgba(255,255,255,.1);

    color: #777;

    text-align: center;

    font-size: 11px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

/*
 * PORTÁTILES / PANTALLAS INTERMEDIAS
 */
@media (max-width: 1100px) {

    .header-inner {
        gap: 30px;
    }

    .main-navigation {
        gap: 15px;
    }

    .main-navigation > a,
    .dropdown-toggle {
        font-size: 10px;
    }

}


/*
 * TABLET Y MÓVIL
 */
@media (max-width: 900px) {

    .container {
        width: min(100% - 36px, 1280px);
    }


    /* =========================
       HEADER
    ========================= */

    .header-inner {
        min-height: 95px;
        justify-content: space-between;
    }

    .site-logo img {
        width: 72px;
        height: 72px;
    }

    .menu-toggle {
        display: flex;

        width: 42px;
        padding: 6px;

        border: 0;
        background: transparent;

        flex-direction: column;
        gap: 7px;

        cursor: pointer;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;

        background: var(--gold);
    }


    /* =========================
       NAVEGACIÓN MÓVIL
    ========================= */

    .main-navigation {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        padding: 20px 28px 30px;

        background: var(--black);

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation > a,
    .dropdown-toggle {
        width: 100%;

        padding: 15px 0;

        text-align: left;

        border-bottom:
            1px solid rgba(255,255,255,.1);
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu,
    .submenu {
        position: static;

        display: none;

        min-width: 0;

        padding: 0 0 5px 15px;

        border: 0;

        background: transparent;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .nav-dropdown:hover > .dropdown-menu,
    .dropdown-submenu:hover > .submenu {
        display: block;
    }

    .main-navigation .login-link {
        margin-top: 15px;

        padding: 14px;

        text-align: center;

        border: 1px solid var(--gold);
    }


    /* =========================
       CARRUSEL
    ========================= */

    .hero-slider {
        height: 520px;
        min-height: 520px;
    }

    .slide {
        padding: 40px 35px;

        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .slide-content p {
        font-size: 18px;
    }


    /* =========================
       SECCIONES
    ========================= */

    .section {
        padding: 70px 0;
    }

    .news-grid,
    .mission-grid,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .two-columns {
        gap: 45px;
    }

    .section-photo,
    .section-photo img {
        height: 480px;
        min-height: 480px;
    }

    .mission-grid {
        gap: 20px;
    }


    /* =========================
       CONTACTO
    ========================= */

    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-actions {
        flex-wrap: wrap;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer-main {
        padding: 45px 0;
        align-items: flex-start;
    }

}


/*
 * TELÉFONOS
 */
@media (max-width: 600px) {

    .container {
        width: calc(100% - 30px);
    }


    /* HEADER */

    .header-inner {
        min-height: 85px;
    }

    .site-logo img {
        width: 64px;
        height: 64px;
    }


    /* CARRUSEL */

    .hero-slider {
        height: 470px;
        min-height: 470px;
    }

    .slide {
        padding: 35px 25px;
    }

    .slide-content > span {
        margin-bottom: 12px;

        font-size: 11px;
        letter-spacing: .15em;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: clamp(38px, 12vw, 52px);
        line-height: 1.05;
    }

    .slide-content p {
        margin: 18px 0 25px;

        font-size: 17px;
    }

    .slider-button {
        padding: 13px 18px;
        font-size: 10px;
    }

    .slider-arrow {
        width: 38px;
        height: 58px;

        font-size: 30px;
    }

    .slider-dots {
        bottom: 18px;
    }


    /* TÍTULOS */

    .section-heading h2 {
        font-size: 37px;
    }

    .section-copy h2 {
        font-size: 38px;
    }

    .government-content h2 {
        font-size: 40px;
    }

    .contact-inner h2 {
        font-size: 33px;
    }


    /* FOTOGRAFÍAS */

    .section-photo,
    .section-photo img {
        height: 400px;
        min-height: 400px;
    }


    /* CONTACTO */

    .contact-actions {
        width: 100%;

        flex-direction: column;
    }

    .blue-button,
    .outline-blue-button {
        width: 100%;

        text-align: center;
    }


    /* FOOTER */

    .footer-main {
        flex-direction: column;
    }

    .footer-logo {
        width: 75px;
        height: 75px;
    }

}