/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --color-white: #ffffff;
    --color-light: #f5f5f5;
    --color-dark: #111111;
    --color-black: #000000;

    --color-red: #c62828;
    --color-red-light: #e53935;

    --overlay-dark: rgba(0, 0, 0, 0.52);
    --overlay-bottom: rgba(0, 0, 0, 0.78);

    --transition: 0.3s ease;

    --font-main: "Noto Sans JP", sans-serif;
    --font-display: "Playfair Display", serif;
}


/* =========================================================
   HTML / BODY
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    font-family: var(--font-main);

    background: var(--color-dark);

    color: var(--color-white);

    overflow-x: hidden;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    /*
        Imagen proporcionada por el usuario.
    */

    background-image:
        url("https://images.unsplash.com/photo-1509023464722-18d996393ca8?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8amFwYW5lc2UlMjB3YWxscGFwZXJ8ZW58MHx8MHx8fDA%3D");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;
}


/* =========================================================
   CAPA OSCURA SOBRE LA IMAGEN
========================================================= */

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.42) 45%,
            rgba(0, 0, 0, 0.72) 100%
        );

    z-index: 1;
}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.hero-content {

    position: relative;

    z-index: 2;

    width: min(900px, 90%);

    padding: 120px 20px 100px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    animation: heroAppear 1.2s ease forwards;
}


/* =========================================================
   PEQUEÑO TÍTULO JAPONÉS
========================================================= */

.hero-kicker {

    display: inline-block;

    margin-bottom: 18px;

    font-size: 0.85rem;

    font-weight: 500;

    letter-spacing: 0.35em;

    color: rgba(255, 255, 255, 0.85);

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */

.hero h1 {

    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(4rem, 10vw, 8rem);

    font-weight: 600;

    line-height: 0.95;

    letter-spacing: -0.04em;

    color: var(--color-white);

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   LÍNEA DECORATIVA
========================================================= */

.hero-line {

    width: 55px;

    height: 2px;

    margin: 28px auto 30px;

    background: var(--color-red);
}


/* =========================================================
   INTRODUCCIÓN
========================================================= */

.hero-intro {

    max-width: 780px;

    margin-bottom: 18px;

    font-size: clamp(0.95rem, 1.5vw, 1.08rem);

    line-height: 1.9;

    font-weight: 300;

    letter-spacing: 0.015em;

    color: rgba(255, 255, 255, 0.92);

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   BOTONES
========================================================= */

.hero-actions {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin-top: 25px;

    flex-wrap: wrap;
}


/* =========================================================
   BOTÓN BASE
========================================================= */

.hero-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 190px;

    padding: 13px 25px;

    border-radius: 2px;

    font-family: var(--font-main);

    font-size: 0.88rem;

    font-weight: 500;

    letter-spacing: 0.05em;

    text-decoration: none;

    transition:
        background var(--transition),
        border var(--transition),
        transform var(--transition),
        color var(--transition);

    cursor: pointer;
}


/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */

.hero-button-primary {

    background: var(--color-red);

    border: 1px solid var(--color-red);

    color: var(--color-white);
}


.hero-button-primary:hover {

    background: var(--color-red-light);

    border-color: var(--color-red-light);

    transform: translateY(-2px);
}


/* =========================================================
   BOTÓN SECUNDARIO
========================================================= */

.hero-button-secondary {

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.65);

    color: var(--color-white);

    backdrop-filter: blur(6px);
}


.hero-button-secondary:hover {

    background: rgba(255, 255, 255, 0.18);

    border-color: var(--color-white);

    transform: translateY(-2px);
}


/* =========================================================
   INDICADOR INFERIOR
========================================================= */

.hero-scroll {

    position: absolute;

    z-index: 2;

    bottom: 28px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.72rem;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


.scroll-line {

    display: block;

    width: 1px;

    height: 35px;

    background: rgba(255, 255, 255, 0.65);

    animation: scrollAnimation 1.8s ease-in-out infinite;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes heroAppear {

    from {

        opacity: 0;

        transform: translateY(25px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}


@keyframes scrollAnimation {

    0% {

        opacity: 0;

        transform: scaleY(0);

        transform-origin: top;
    }

    50% {

        opacity: 1;

        transform: scaleY(1);

        transform-origin: top;
    }

    100% {

        opacity: 0;

        transform: scaleY(1);

        transform-origin: bottom;
    }
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {

    .hero {

        background-attachment: scroll;
    }

    .hero-content {

        width: min(92%, 760px);

        padding-top: 130px;

        padding-bottom: 100px;
    }

    .hero-intro {

        line-height: 1.8;
    }
}


/* =========================================================
   MÓVILES
========================================================= */

@media (max-width: 600px) {

    .hero {

        min-height: 100svh;

        background-position: center;
    }


    .hero-overlay {

        background:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.62),
                rgba(0, 0, 0, 0.76)
            );
    }


    .hero-content {

        width: 92%;

        padding: 110px 10px 100px;
    }


    .hero-kicker {

        font-size: 0.72rem;

        letter-spacing: 0.25em;
    }


    .hero h1 {

        font-size: clamp(3.8rem, 20vw, 6rem);
    }


    .hero-line {

        margin: 22px auto 25px;
    }


    .hero-intro {

        font-size: 0.92rem;

        line-height: 1.75;

        margin-bottom: 16px;
    }


    .hero-actions {

        width: 100%;

        flex-direction: column;

        margin-top: 20px;
    }


    .hero-button {

        width: min(100%, 280px);
    }


    .hero-scroll {

        bottom: 18px;

        font-size: 0.62rem;
    }
}


/* =========================================================
   PANTALLAS MUY PEQUEÑAS
========================================================= */

@media (max-height: 700px) and (max-width: 600px) {

    .hero-content {

        padding-top: 90px;

        padding-bottom: 80px;
    }


    .hero h1 {

        font-size: 4rem;
    }


    .hero-intro {

        line-height: 1.6;

        margin-bottom: 10px;
    }


    .hero-actions {

        margin-top: 10px;
    }


    .hero-scroll {

        display: none;
    }
}