/* ==================================================
   PORUBLOVA
   style.css
   Versión 0.6
   ================================================== */


/* ==================================================
   1. Reinicio básico
   ================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==================================================
   2. Documento
   ================================================== */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;

    position: relative;

    overflow-x: hidden;

    background-color: #e8dfd4;

    background-image:
        url("../img/hero/hero_01.png");

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    color: #2d2926;

    font-family:
        "Avenir Next",
        Avenir,
        Arial,
        sans-serif;
}


/* ==================================================
   3. Capa suave para mejorar la lectura
   ================================================== */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247, 243, 238, 0.56) 0%,
            rgba(247, 243, 238, 0.40) 36%,
            rgba(247, 243, 238, 0.12) 70%,
            rgba(247, 243, 238, 0.02) 100%
        );

    pointer-events: none;
}


/* ==================================================
   4. Portada
   ================================================== */

.hero {
    position: relative;

    z-index: 1;

    min-height: 100vh;
    min-height: 100svh;

    width: min(760px, 55vw);

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 56px 40px;

    text-align: center;
}


/* ==================================================
   5. Contenido
   ================================================== */

.hero-content {
    width: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;
}


/* ==================================================
   6. Logotipo
   ================================================== */

.logo {
    display: block;

    width: 520px;
    max-width: 90%;

    height: auto;

    margin-bottom: 38px;

    filter:
        drop-shadow(
            0 2px 8px rgba(60, 45, 32, 0.08)
        );
}


/* ==================================================
   7. Eslogan
   ================================================== */

.slogan {
    margin-bottom: 30px;

    color: #74675c;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.5;

    letter-spacing: 6px;

    text-transform: uppercase;
}


/* ==================================================
   8. Texto principal
   ================================================== */

.texto {
    max-width: 660px;

    margin-bottom: 46px;

    font-family:
        "Noe Display",
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 400;

    line-height: 1.65;

    text-wrap: balance;

    text-shadow:
        0 1px 12px rgba(247, 243, 238, 0.75);
}


/* ==================================================
   9. Próximamente
   ================================================== */

.coming {
    margin-bottom: 32px;

    color: #b18443;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 5px;

    text-transform: uppercase;

    text-shadow:
        0 1px 8px rgba(247, 243, 238, 0.78);
}


/* ==================================================
   10. Instagram
   ================================================== */

.social {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #5d5147;

    font-size: 15px;

    line-height: 1;

    letter-spacing: 2px;

    text-decoration: none;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.social:hover,
.social:focus-visible {
    color: #b18443;

    transform: translateY(-1px);
}

.social:focus-visible {
    outline: 2px solid currentColor;

    outline-offset: 6px;

    border-radius: 4px;
}


/* ==================================================
   11. Icono de Instagram
   ================================================== */

.instagram-icon {
    width: 19px;
    height: 19px;

    flex: 0 0 auto;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.55;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.instagram-dot {
    fill: currentColor;

    stroke: none;
}


/* ==================================================
   12. Animación inicial
   ================================================== */

.logo,
.slogan,
.texto,
.coming,
.social {
    opacity: 0;

    transform: translateY(16px);

    animation:
        fade-up 800ms ease forwards;
}

.logo {
    animation-delay: 120ms;
}

.slogan {
    animation-delay: 320ms;
}

.texto {
    animation-delay: 520ms;
}

.coming {
    animation-delay: 720ms;
}

.social {
    animation-delay: 900ms;
}

@keyframes fade-up {

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ==================================================
   13. Tablet
   ================================================== */

@media (max-width: 992px) {

    body {
        background-position: 62% center;
    }

    body::before {
        background:
            rgba(247, 243, 238, 0.52);
    }

    .hero {
        width: 100%;

        padding: 44px 28px;
    }

    .logo {
        width: 420px;

        margin-bottom: 34px;
    }

    .slogan {
        margin-bottom: 28px;

        font-size: 11px;

        letter-spacing: 5px;
    }

    .texto {
        max-width: 620px;

        margin-bottom: 42px;

        font-size: 20px;

        line-height: 1.6;
    }

}


/* ==================================================
   14. Móvil
   ================================================== */

@media (max-width: 576px) {

    body {
        background-position: 67% center;
    }

    body::before {
        background:
            rgba(247, 243, 238, 0.64);
    }

    .hero {
        width: 100%;

        padding: 32px 20px;
    }

    .logo {
        width: 290px;

        max-width: 90%;

        margin-bottom: 28px;
    }

    .slogan {
        max-width: 310px;

        margin-bottom: 24px;

        font-size: 10px;

        line-height: 1.7;

        letter-spacing: 3.5px;
    }

    .texto {
        max-width: 340px;

        margin-bottom: 38px;

        padding: 0 4px;

        font-size: 18px;

        line-height: 1.55;
    }

    .coming {
        margin-bottom: 30px;

        font-size: 11px;

        letter-spacing: 3px;
    }

    .social {
        gap: 9px;

        font-size: 14px;

        letter-spacing: 1.5px;
    }

    .instagram-icon {
        width: 18px;

        height: 18px;
    }

}


/* ==================================================
   15. Móviles pequeños
   ================================================== */

@media (max-width: 380px) {

    .hero {
        padding: 26px 16px;
    }

    .logo {
        width: 245px;
    }

    .slogan {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .texto {
        font-size: 17px;
    }

    .social {
        font-size: 13px;
    }

}


/* ==================================================
   16. Accesibilidad
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .logo,
    .slogan,
    .texto,
    .coming,
    .social {
        opacity: 1;

        transform: none;

        animation: none;
    }

    .social {
        transition: none;
    }

}