@font-face {
    font-family: "Catedral Script";
    src: url("../fonts/DancingScript-Regular.4166d03f2359.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --gold: #BF9534;
    --white: #ffffff;
    --section-text: #A5784B;
}


/* ======================================================
   PORTADA
   ====================================================== */

.hero {
    position: relative;

    min-height: 620px;
    height: 82vh;
    max-height: 780px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #111111;

    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.58) 28%,
            rgba(0, 0, 0, 0.24) 58%,
            rgba(0, 0, 0, 0.16) 100%
        );
}


/* ======================================================
   CABECERA
   ====================================================== */

.site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 32px 7% 70px;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.28) 55%,
        rgba(0, 0, 0, 0) 100%
    );
}

.site-logo {
    display: block;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 38px;
}

.main-nav a {
    position: relative;

    padding-bottom: 10px;

    color: var(--white);
    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    font-weight: 500;

    letter-spacing: 0.04em;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 27px;
    height: 1px;

    background: var(--gold);

    transform: translateX(-50%);
}


/* ======================================================
   TEXTO DE PORTADA
   ====================================================== */

.hero-content {
    position: relative;
    z-index: 2;

    width: min(610px, 86%);

    padding-top: 205px;
    padding-left: 6%;
    padding-bottom: 80px;

    text-align: center;
}

.hero h1 {
    margin: 0;

    white-space: nowrap;

    font-family: "Catedral Script", cursive;
    font-size: clamp(3.6rem, 4.7vw, 5.2rem);
    font-weight: 400;

    line-height: 1;

    letter-spacing: 0;

    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    margin: 22px 0 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);

    letter-spacing: 0.28em;
    text-transform: uppercase;

    color: var(--gold);

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-divider {
    width: 95px;
    height: 1px;

    margin: 24px auto 0;

    background: var(--gold);
}

.hero-text {
    max-width: 390px;

    margin: 26px auto 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;

    line-height: 1.55;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-button {
    display: inline-block;

    margin-top: 30px;
    padding: 13px 29px;

    border: 1px solid var(--gold);
    border-radius: 4px;

    color: var(--gold);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.84rem;

    letter-spacing: 0.09em;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.hero-button:hover {
    background: var(--gold);
    color: #111111;
}


/* ======================================================
   BLOQUE DE LOS DIEZ APARTADOS
   ====================================================== */

.catedral-sections {
    background: #fbfaf7;

    padding: 48px 4% 58px;
}

.catedral-sections-grid {
    width: min(1240px, 100%);

    margin: 0 auto;

    display: grid;

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

    column-gap: 34px;
    row-gap: 38px;
}

.catedral-section-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    text-decoration: none;

    color: var(--section-text);
}

.catedral-section-card img {
    display: block;

    width: 100%;
    max-width: 205px;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 26px;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.catedral-section-card span {
    display: block;

    margin-top: 16px;

    min-height: 46px;

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

    font-size: 0.93rem;
    font-weight: 700;

    line-height: 1.12;

    letter-spacing: 0.025em;

    text-transform: uppercase;
}

.catedral-section-card:hover img {
    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.10);
}

.catedral-section-card:hover span {
    color: var(--gold);
}


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

@media (max-width: 1050px) {

    .main-nav {
        gap: 22px;
    }

    .catedral-sections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .site-header {
        padding: 22px 5%;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 0.78rem;
    }

    .hero-content {
        padding-left: 5%;
    }
}


@media (max-width: 700px) {

    .main-nav {
        display: none;
    }

    .hero {
        min-height: 720px;
        height: auto;
        max-height: none;
    }

    .hero-content {
        width: 90%;

        padding: 190px 5% 70px;

        text-align: center;
    }

    .hero h1 {
        white-space: normal;

        font-size: 3.3rem;
    }

    .catedral-sections {
        padding: 38px 5% 48px;
    }

    .catedral-sections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 18px;
        row-gap: 30px;
    }

    .catedral-section-card img {
        max-width: 190px;

        border-radius: 22px;
    }

    .catedral-section-card span {
        font-size: 0.83rem;
    }
}


@media (max-width: 420px) {

    .catedral-sections-grid {
        grid-template-columns: 1fr;
    }

    .catedral-section-card img {
        max-width: 220px;
    }
}

html {
    scroll-behavior: smooth;
}

#la-catedral {
    scroll-margin-top: 20px;
}

.nav-pending {
    display: none !important;
}