/* =========================================================
   RC DIAMOND HOUSE
   HOME / INDEX
   ========================================================= */


/* =========================================================
   MAIN HERO
   ========================================================= */

.hero {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(360px, 38%) minmax(0, 62%);

    min-height: calc(100vh - 140px);

    background-color: var(--color-background);
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.hero-content {
    position: relative;

    min-height: 620px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding:
        50px
        clamp(30px, 5vw, 80px)
        160px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    isolation: isolate;
}


/* Subtle decorative background */

.hero-content::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    top: -180px;
    left: -150px;

    border-radius: 50%;

    background: rgba(0, 155, 222, 0.08);

    z-index: -1;
}


/* =========================================================
   BRAND
   ========================================================= */

.hero-brand {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 28px;
}

.hero-logo {
    width: clamp(150px, 15vw, 210px);
    height: auto;

    filter:
        drop-shadow(
            0 8px 12px rgba(0, 0, 0, 0.10)
        );
}


/* =========================================================
   WELCOME TEXT
   ========================================================= */

.hero-welcome {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 480px;

    text-align: center;
}

.hero-welcome-title {
    display: block;

    margin-bottom: 18px;

    color: var(--color-primary);

    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.15;
}

.hero-welcome p {
    margin: 7px 0;

    color: var(--color-text-light);

    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.hero-actions {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: 420px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    margin-top: 30px;
}

.hero-actions .btn {
    width: 100%;

    min-height: 50px;

    font-size: 15px;
}


/* Comprar */

.hero-actions .btn-primary {
    background: var(--color-primary);
    color: var(--color-white);

    border-color: var(--color-primary);

    box-shadow:
        0 8px 20px rgba(1, 0, 128, 0.20);
}

.hero-actions .btn-primary:hover {
    background: var(--color-primary-dark);

    box-shadow:
        0 12px 25px rgba(1, 0, 128, 0.28);
}


/* Vender */

.hero-actions .btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);

    border-color: var(--color-primary);

    box-shadow: var(--shadow-sm);
}

.hero-actions .btn-secondary:hover {
    background: var(--color-accent-light);

    border-color: var(--color-accent);

    color: var(--color-primary);
}


/* =========================================================
   BUILDINGS DECORATION
   ========================================================= */

.hero-buildings {
    position: absolute;

    z-index: 1;

    right: 0;
    bottom: 0;

    width: 100%;

    pointer-events: none;
}

.hero-buildings img {
    width: 100%;
    height: auto;

    object-fit: contain;

    opacity: 0.95;
}


/* Fade over buildings */

.hero-buildings::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 25%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0.75) 100%
        );

    pointer-events: none;
}


/* =========================================================
   RIGHT IMAGE / HERO
   ========================================================= */

.hero-image {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-image:
        url("../img/lecheria1.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* Dark overlay */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(1, 0, 128, 0.20),
            rgba(0, 0, 0, 0.35)
        );

    transition:
        background var(--transition);
}


/* Slight zoom */

.hero-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: inherit;

    transform: scale(1.01);

    z-index: 0;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero-title {
    position: relative;
    z-index: 2;

    width: min(85%, 900px);

    padding: 30px;

    text-align: center;

    color: var(--color-white);

    text-transform: uppercase;

    font-size: clamp(28px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.02em;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.65),
        0 8px 25px rgba(0, 0, 0, 0.35);
}

.hero-title span {
    display: inline-block;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1450px) {

    .hero {
        min-height: calc(100vh - 144px);
    }

    .hero-content {
        min-height: 700px;
        padding-bottom: 180px;
    }

    .hero-logo {
        width: 220px;
    }

    .hero-welcome-title {
        font-size: 32px;
    }

    .hero-welcome p {
        font-size: 16px;
    }

    .hero-actions {
        max-width: 440px;
    }

    .hero-actions .btn {
        min-height: 54px;
        font-size: 17px;
    }

    .hero-image {
        min-height: 700px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: minmax(300px, 42%) minmax(0, 58%);
    }

    .hero-content {
        padding:
            40px
            30px
            150px;
    }

    .hero-logo {
        width: 160px;
    }

    .hero-welcome-title {
        font-size: 25px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .hero-image {
        min-height: 600px;
    }

    .hero-title {
        width: 90%;
        padding: 20px;

        font-size: clamp(28px, 4vw, 44px);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;

        min-height: auto;
    }

    /*
     * En móvil mostramos primero la fotografía
     * y después la zona de acciones.
     */
    .hero-image {
        order: 1;

        width: 100%;
        min-height: 48svh;

        background-position: center;
    }

    .hero-content {
        order: 2;

        width: 100%;
        min-height: 430px;

        padding:
            45px
            20px
            135px;
    }

    .hero-logo {
        width: 145px;
    }

    .hero-brand {
        margin-bottom: 20px;
    }

    .hero-welcome-title {
        margin-bottom: 12px;

        font-size: 24px;
    }

    .hero-welcome p {
        font-size: 14px;
    }

    .hero-actions {
        max-width: 330px;

        grid-template-columns: repeat(2, 1fr);

        margin-top: 24px;
    }

    .hero-actions .btn {
        min-height: 46px;
        padding: 9px 15px;

        font-size: 14px;
    }

    .hero-title {
        width: 90%;

        padding: 15px;

        font-size: clamp(24px, 7vw, 36px);
    }

    .hero-buildings {
        width: 115%;
        right: -7%;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .hero-image {
        min-height: 42svh;
    }

    .hero-content {
        min-height: 405px;

        padding:
            35px
            15px
            120px;
    }

    .hero-logo {
        width: 125px;
    }

    .hero-welcome-title {
        font-size: 21px;
    }

    .hero-welcome p {
        margin: 5px 0;

        font-size: 13px;
    }

    .hero-actions {
        width: 100%;
        max-width: 300px;

        gap: 10px;

        margin-top: 20px;
    }

    .hero-actions .btn {
        min-height: 44px;

        padding: 8px 10px;

        font-size: 13px;
    }

    .hero-buildings {
        width: 125%;
        right: -12%;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 360px) {

    .header {
        align-items: center;
    }

    .header-slogan {
        max-width: 175px;
        font-size: 10px;
    }

    .hero-image {
        min-height: 38svh;
    }

    .hero-content {
        padding-bottom: 110px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
        max-width: 240px;
    }

}