@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
}


p {
    margin-block: 0.5lh;
}


section {
    width: 100%;
    text-align: center;
    position: relative;
    background-color: white;
}

article {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.hero {
    min-height: 100dvh;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.hero__content { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;

    animation: fade-out linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
}

.hero__title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-family: 'Alex Brush';
}

.hero__img{ 
    object-fit: cover;
    object-position: top;
    z-index: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0.5;

    transform-origin: bottom;

    animation: hero-fade-out linear both;
    animation-timeline: view();
    animation-range: entry 25% cover 100%;
}

.menu {
    color: white;
    display: block;
    position: relative;
}

.menu > article {
    position: sticky;
    top: 0px;
    min-height: 100dvh;
    width: 100%;
    
    /* Mantenemos el flex interno para centrar el contenido del menú */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Importante: El background debe ser normal, no fixed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Esto ayuda a que el navegador gestione mejor las capas */
    will-change: transform; 
}

.menu__title {
    padding: 1rem;
    display: block;
    width: 100%;
    font-family: 'Alex Brush';
    margin-bottom: 1rem;
    font-size: 4rem;
}

.menu__plate {
    padding: 1rem;
    background-size: cover;
    background-position: center;
}

.menu > article:nth-of-type(1) {
    z-index: 1;
    background-color: red;
}

.menu__plate:nth-child(2){
    background-image: url(img/bg1.jpg);
    z-index: 2;
}

.menu__plate:nth-child(3){
    background-image: url(img/bg2.jpg);
    z-index: 3;
}

.menu__plate:nth-child(4){
    background-image: url(img/bg3.jpg);
    z-index: 4;
}

.menu__plate:nth-child(5){
    background-image: url(img/bg4.jpg);
    z-index: 5;
}

.menu__plate:nth-child(6){
    background-image: url(img/bg5.jpg);
    z-index: 6;
}

.menu__item {
/*     font-size: 1.25rem; */
    position: relative;
    padding: 1rem 0;
}

.menu__item:before {
    content: '';
    height: 1px;
    width: 10%;
    background: white;
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    translate: -50%;
}

.menu__item:last-child:before {
    content: '';
    height: 0px;
    width: 10%;
    background: white;
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    translate: -50%;
}

.menu__inner {
    padding: 2rem;
    box-shadow: 0px 2px 10px 0px #0002;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(18px);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.menu__time {
    margin-bottom: 2rem;
    font-weight: 500;
    font-family: 'Playfair Display';
    font-size: 1.75rem;
    position: relative;
}

.menu__time:before {
    content: '';
    height: 1px;
    width: 35%;
    background: white;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    translate: -50%;
}

.menu__image {
    width: 100%;
    height: auto ;
    object-fit: cover;
    object-position: center;
    margin-bottom: 2rem;
    z-index: 2;
}


.wine__do {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.felicitacion {
    padding: 3rem 2rem;
}

/* ANIMACIONES */

@keyframes fade-out {
    to {  opacity: 0; }
}

@keyframes hero-fade-out { 
    25% { opacity: 0.7; }
    85%, 100% { opacity: 0; scale: 1.5;}
}

@keyframes slide-fade-in { 
    from {
        opacity: 0;
        transform: translateY(5vh) ;
    }
}

@keyframes slide-fade-in-out {
  0% {
    opacity: 0;
    transform: translateY(5vh);
  }

  20%, 80% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-5vh);
  }
}

@keyframes show {
    from {
        opacity: 0;
        scale: 10%;
    }

    to {
        opacity: 1;
        scale: 100%;
    }
}