/* Importing google fonts */
@import url('https://fonts.googleapis.com/css2?family=Miniver&display=swap');

@font-face {
    font-family: "Giaza";
    src: url("./fonts/Giaza_Font/Giaza.otf") format("opentype");
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    /* Colors */
    --white-color: #fff;
    --dark-color: #4d2e2e;
    --primary-color :#663635;
    --secondary-color: #deb3ad;
    --ligth-pink-color: #f9f1f0;
    --medium-gray-color: #ccc;

    /* Font size */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 3.4rem;
    --font-size-xxl: 3.9rem;    

    /* Font weight */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 800;
    --font-weight-bold: 700;

    /* Border radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* site max width */
    --site-max-width: 1300px;
}

/* styling for the hole site */
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 100%;
}

.section-content{
    margin: 0 auto;
    padding: 0 10px;
    max-width: var(--site-max-width);
}

.section-title{
    text-align: center;
    padding: 60pxx 0 100px;
    text-transform: uppercase;
    font-family: "Giaza", serif;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content:  "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--secondary-color);
}


header {
    position: fixed;
    width: 100%;
    z-index: 5;
    background: var(--primary-color);
}

header .navbar{
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 80px; 
    width: auto;
    background-color: white;
    border-radius: 6px; 
    object-fit: contain;
}

.navbar .nav-logo {
    display: flex;
    align-items: center;
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}
.popup {
  display: block; /* Cambiamos a 'none' con JS luego */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.popup-content {
  background-color: var(--primary-color);
  margin: 3% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  height: 90%;
  max-width: 600px;
}

.close-btn {
  float: right;
  font-size: 48px;
  cursor: pointer;
}


.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    background-color: var(--primary-color);
    color:  var(--white-color);
    border-radius: var(--border-radius-m);
    font-family: "Giaza", serif;
    font-size: var(--font-size-l);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--primary-color) ;
    background-color: var(--secondary-color);
}

.navbar :where(#menu-close-button, #menu-open-button){
    display:none;
}

.hero-section{
    min-height: 70vh;
    background: var(--primary-color);
}

.hero-section .section-content{
    display: flex;
    align-items: center;
    min-height: 60vh;
    color: var(--white-color);
    justify-content: space-between;
}

.hero-section .hero-details .title{
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
    font-family:  "Miniver", sans-serif;
}

.hero-section .hero-details .subtitle{
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xl);
    font-weight:  var(--font-weight-semibold);   
}

.hero-section .hero-details .description{
    max-width: 70%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

.hero-section .hero-details .buttons{
    justify-content: center;
    width: 100%;
    display: block;}

.hero-section .hero-details .button{
    padding: 10px 26px;
    border: 2px solid transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-m);
    background: var(--secondary-color);
    font-weight: var(--font-weight-medium);
}

.hero-section .hero-details .button:hover, 
.hero-section .hero-details .contact-us {
    color: var(--white-color);
    border-color: var(--white-color);
    background-color: transparent;
}

.hero-section .hero-details .contact-us:hover {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.hero-section .hero-image-wrapper {
        position: relative;
        width: 100%;
        max-width: 500px; /* o el ancho que estés usando */
        margin: 0 auto;
        overflow: hidden;
      }
      
      .hero-image {
        width: 100%;
        height: auto;
        display: block;
    }
      
      .fade-top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 400px; /* altura del fade */
        background: linear-gradient(
            to bottom,
            #663635 0%,
            #663635 10%,
            rgba(102, 54, 53, 0.95) 20%,
            rgba(102, 54, 53, 0.6) 50%,
            rgba(102, 54, 53, 0.4) 80%,
            rgba(102, 54, 53, 0.3) 90%,
            transparent 100%
          );        pointer-events: none; /* para que no interfiera con clics */
      }

      
.about-section{
    padding: 120px 0;
    background: var(--ligth-pink-color);
}

.about-section .section-content{
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.about-section .about-image-wrapper .about-image{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius:  var(--border-radius-circle);
}


.about-section  .about-details .section-title{
    padding: 0;
}
.about-section  .about-details {
    max-width: 50%;
}

.about-section  .about-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
}

.about-section .social-link-list{
    display: flex;
    gap: 25px;
    justify-content: center;
}

.about-section .social-link-list .social-link {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    transition: 0.2s ease;
}

.about-section .social-link-list .social-link:hover {
    color: var(--secondary-color);
}

.menu-section{
    color: var(--white-color);
    background-color: var(--primary-color);
    padding: 50px 0 100px;
}

.menu-section .menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 110px;
    align-items: center;
    justify-content: space-between;
}

.menu-section .menu-list .menu-item{
    padding-top: 20px;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    width: calc(100%/3 - 110px);
}
.menu-section .menu-list .menu-item .menu-image{
    max-width: 100%;
    aspect-ratio: 1;
    margin-bottom: 15px;
    object-fit: contain;
    background-color: var(--secondary-color);
    border-radius:  var(--border-radius-circle);
}

.menu-section .menu-list .menu-item .name{
    margin: 12px 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
}

.menu-section .menu-list .menu-item .text{
    font-size: var(--font-size-m);
}
  .menu-details {
    margin-top: 15px;
    text-align: center;
  }
  
  .menu-details .name {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
  }
  
  .menu-details .weight-price {
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    color: var(--secondary-color);
    margin-bottom: 5px;
  }
  
  .menu-details .weight-price .dot {
    margin: 0 8px;
    color: var(--white-color);
  }
  
  .menu-details .description {
    font-size: var(--font-size-m);
    color: var(--white-color);
    font-style: italic;
    opacity: 0.8;
  }

  .whatsapp-button {
    margin-top: 12px;
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .whatsapp-button:hover {
    background-color: #1ebd57;
  }
  
.gallery-section{
    padding: 50px 0 100px;
}

.gallery-section .gallery-list{
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.gallery-section .gallery-list .gallery-item{
    overflow: hidden;
    border-radius: var(--border-radius-s);
    width: calc(100% / 3 - 32px);
}

.gallery-section .gallery-item .gallery-image{
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    transition: 0.3s ease;
}

.gallery-section .gallery-item:hover .gallery-image{
    transform: scale(1.6);
}

.gallery-section .gallery-item .gallery-video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-s);
}

@media screen and (max-width: 1024px) {
    .menu-section .menu-list {
        gap: 60px;
    }
    .menu-section .menu-list .menu-item{
        width: calc(100%/2 - 60px);
    }
}

@media screen and (max-width: 900px) {
    :root{
        --font-size-m: 1rem;
        --font-size-l: 1.3rem;
        --font-size-xl: 1.5rem;
        --font-size-xxl: 1.8rem;    
    }

    body.show-mobile-menu header::before{
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter:  blur(5px);
        background: rgba(0, 0, 0, 0.2);
        left: 0;
    }

    .navbar :where(#menu-close-button, #menu-open-button){
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button{
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .navbar #menu-open-button{
        color: var(--white-color);
    }

    .navbar .nav-menu{
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    body.show-mobile-menu .navbar .nav-menu{
        left: 0;
    }

    .navbar .nav-menu .nav-link{
        color:  var(--white-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .hero-section .section-content{
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-image-wrapper{
        max-width: 470px;
        margin-right: 0px;
    }

    .hero-section .hero-image-wrapper .hero-image{
        border-radius: var(--border-radius-m);
        
    }

    .hero-section .hero-details :is(.subtitle, .description), .about-section .about-details{
        max-width: 100%;
    }

    .hero-section .hero-details .button{
        justify-content: center;
    }

    .about-section .section-content{
        gap: 70px;
        flex-direction:  column-reverse; 
    }

    .about-section .about-image-wrapper .about-image{
        width: 100%;
        height: 100%;
        max-width: 250px;
        aspect-ratio: 1;
    }
    .menu-section .menu-list {
        gap: 30px;
    }
    .menu-section .menu-list .menu-item{
        width: calc(100%/2 - 30px);
    }
    .menu-section .menu-list .menu-item .menu-image{
        max-width: 200px;
    }

    .gallery-section .gallery-list {
        gap: 30px;
    }
    .gallery-section .gallery-list .gallery-item{
        width: calc(100% / 2 - 30px);
    }
}

@media screen and (max-width: 640px) {
    .menu-section .menu-list {
        gap: 60px;
    }
    .menu-section .menu-list .menu-item{
        width: 100%;
    }
    .gallery-section .gallery-list {
        gap: 60px;
    }
    .gallery-section .gallery-list .gallery-item{
        width: 100%;
    }
}
