:root {
  --accent: #d9574c;
  --panel-bg: #000000;
  --panel-text: #f2f2f2;
  --panel-text-dim: #cfcfcf;
  --gold: #B99D40;
  --gold-deep: #ba9d41;
  --gap: 6px;
}

* {
  box-sizing: border-box;

  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing: grayscale;
}


@font-face {
    font-family: 'Chronicle Display Bold';
    src: url('../fonts/ChronicleDisplay-Bold.woff2') format('woff2'),
        url('../fonts/ChronicleDisplay-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chronicle Display Black';
    src: url('../fonts/ChronicleDisplay-Black.woff2') format('woff2'),
        url('../fonts/ChronicleDisplay-Black.woff') format('woff');
    font-style: normal;
    font-display: swap;
}


body {
  margin: 0;
  background: #ffffff;
  color: #111;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.page-wrap {
  position: relative;
  overflow-x: hidden;
}

.page {
  max-width: 720px;
  margin: 0 auto;
}
    .page h3{
        font: 2.2rem/1.3 'Chronicle Display Black';
        margin: 0 auto;
        text-align: center;
    }
    .box-indicador{
      margin: 20px auto;
      text-align: center;
    }
      .box-indicador img{
          display: inline-block;
          margin: 8px auto 0;
          max-width: 20px;
          vertical-align: top;
      }
      .box-indicador h6{      
        display: inline-block;
        font: 1.9rem/1.3 'Chronicle Display Black';
        margin: 5px 0 5px;
        vertical-align: top;
      }

/* Hero */
#hero{
    overflow: hidden;
}

.main-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 13.5;
  background: #efe9df url("../img/bg-hero.jpg") center / cover no-repeat;
}

.box-titular {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 46%;
  transform: translate(-50%, -60%);
}
    .box-titular h1{
        color: transparent;
        background: url('../img/bg-titulo.png') no-repeat center;
        background-size: cover;
        height: 335px;
        text-align: center;
        width: 300px;
        font-size: 3rem;
        margin: 10px 0;
    }

.logo-somos {
  width: 46%;
  height: auto;
  display: block;
}

.titulo-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 720px) {
  .main-hero {
    aspect-ratio: 16 / 9;
  }

  .box-titular {
    width: 25%;
  }
}

.hero-dishes {
  position: absolute;
  inset: 0;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero-dish {
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.hero-dish img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.hero-dish--1 { top: 0%;   left: 15%;  width: 26%; }
.hero-dish--2 { top: 35%;  left: -10%; width: 26%; }
.hero-dish--3 { top: -8%;  left: -8%;  width: 20%; }
.hero-dish--4 { top: -3%;  left: 58%;  width: 21%; }
.hero-dish--5 { top: -10%; left: 77%;  width: 30%; }
.hero-dish--6 { top: 55%;  left: 83%;  width: 28%; }
.hero-dish--7 { top: 68%;  left: 56%;  width: 21%; }
.hero-dish--8 { top: 35%;  left: 64%;  width: 21%; }
.hero-dish--9 { top: 70%;  left: 10%;  width: 25%; }

.hero-dish[data-enter="top"]    { transform: translateY(-140%); }
.hero-dish[data-enter="bottom"] { transform: translateY(140%); }
.hero-dish[data-enter="left"]   { transform: translateX(-140%); }
.hero-dish[data-enter="right"]  { transform: translateX(140%); }

.main-hero.is-in .hero-dish {
  opacity: 1;
  transform: translate(0, 0);
}

.main-hero .hero-dish:nth-child(1) { transition-delay: 0.05s; }
.main-hero .hero-dish:nth-child(2) { transition-delay: 0.15s; }
.main-hero .hero-dish:nth-child(3) { transition-delay: 0.1s; }
.main-hero .hero-dish:nth-child(4) { transition-delay: 0.2s; }
.main-hero .hero-dish:nth-child(5) { transition-delay: 0.25s; }
.main-hero .hero-dish:nth-child(6) { transition-delay: 0.3s; }
.main-hero .hero-dish:nth-child(7) { transition-delay: 0.3s; }
.main-hero .hero-dish:nth-child(8) { transition-delay: 0.2s; }
.main-hero .hero-dish:nth-child(9) { transition-delay: 0.1s; }


.box-bajada{
    background: #FFFFFF;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(244, 240, 225, 1) 100%);
    padding: 80px 0 0;    
}
    .box-bajada h2{
        font-size: 1.7rem;
        font-weight: 400;
        margin: 10px auto;
        max-width: 490px;
        text-align: center;
    }
        .box-bajada h2 span{
            font-family: 'Chronicle Display Black';
            font-size: 2.5rem;
        }
        .box-bajada h2::before,
        .box-bajada h2::after{
            background-color: #B99D40;
            content: '';
            display: block;
            height: 2px;
            margin: 20px auto;
            width: 200px;
        }
    .box-bajada p{
        line-height: 1.5;
        margin: 60px auto 0;
        max-width: 450px;
    }
    .box-bajada .textura{
        background-image: url('../img/textura-punteada-hero.jpg');
        background-position: bottom;
        background-repeat: repeat-x;
        background-size: 20%;
        height: 66px;
    }

@media (prefers-reduced-motion: reduce) {
  .hero-dish {
    transition: none;
    opacity: 1;
    transform: translate(0, 0) !important;
  }
}

/* Elementos decorativos laterales */

.page-elementos {
  list-style: none;
  margin: 0;
  padding: 0;
}

.elemento {
  position: absolute;
  z-index: 3;
  width: clamp(64px, 8vw, 150px);
  pointer-events: none;
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.elemento img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.elemento[data-side="left"] {
  left: 0;
  transform: translateY(-50%) translateX(-160%);
}

.elemento[data-side="right"] {
  right: 0;
  transform: translateY(-50%) translateX(160%);
}

.elemento.is-in {
  opacity: 1;
}

.elemento.is-in[data-side="left"] {
  transform: translateY(-50%) translateX(-25%);
}

.elemento.is-in[data-side="right"] {
  transform: translateY(-50%) translateX(25%);
}

.elemento--1{
    width: 25%;
}
.elemento--2{
    width: 25%;
}
    .elemento--2.elemento.is-in[data-side="right"]{
        transform: translateY(-50%) translateX(60%);
    }
.elemento--3{
    width: 10%;
}
.elemento--4{
    width: 15%;
}
    .elemento--4.elemento.is-in[data-side="right"]{
        transform: translateY(-50%) translateX(35%);
    }
.elemento--5{
    width: 15%;
}
.elemento--6{
    width: 25%;
}
    .elemento--6.elemento.is-in[data-side="right"]{
        transform: translateY(-50%) translateX(50%);
    }
.elemento--7{
    width: 25%;
}
    .elemento--7.elemento.is-in[data-side="left"] {
        transform: translateY(-50%) translateX(-55%);
    }
.elemento--8{
    width: 25%;
}
    .elemento--8.elemento.is-in[data-side="right"]{
        transform: translateY(-50%) translateX(50%);
    }
.elemento--9{
    width: 25%;
}
    .elemento--9.elemento.is-in[data-side="left"] {
        transform: translateY(-50%) translateX(-55%);
    }

.box-footer{
    position: relative;
}   
    .ctn-footer{
        position: absolute;
        top: 150px;
        width: 100%;
        z-index: 10;
    }
        .ctn-footer img.logo-comercio-footer{
            display: block;
            margin: 0 auto;
            max-width: 200px;
        }
    .box-footer img{
        display: block;
        margin-top: 60px;
        position: relative;
    }
    .ctn-footer ul{
        list-style: none;
        margin: 50px auto;
        text-align: center;
        padding: 0;
    }
        .ctn-footer ul li{
            color: #fff;
            font-weight: 400;
        }
            .ctn-footer ul li p{
                line-height: 1.3;
                margin: 0 0 10px;
            }
                .ctn-footer ul li p a{
                    color: #fff;
                    text-decoration: none;
                }
                .ctn-footer ul li a{
                  display: block;
                  margin: 0 auto;
                  max-width: 250px;
                }
                  .ctn-footer ul li a img{
                    margin: 20px auto 0;
                  }
            .ctn-footer ul li span{
                font-weight: 700;
            }

@media (max-width: 900px) {
  .page-elementos {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elemento {
    transition: none;
  }
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: var(--gap);
}

.dish-card {
  position: relative;
  grid-column: span 1;
}

.dish-card.is-open {
  grid-column: 1 / -1;
}

.dish-photo {
  display: block;
  position: relative;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
}

.dish-photo__name {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 62%;
  background: var(--gold);
  color: #fff;
  font-family: "Chronicle Display Bold", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  padding: 10px 16px;
}

.dish-card.is-open .dish-photo {
  aspect-ratio: 16 / 10;
}

.dish-card.is-open .dish-photo__name {
  display: none;
}

.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.dish-photo:hover img,
.dish-photo:focus-visible img {
  transform: scale(1.1);
}

.dish-card.is-open .dish-photo:hover img,
.dish-card.is-open .dish-photo:focus-visible img {
  transform: none;
}

.dish-photo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .dish-photo img {
    transition: none;
  }
}

/* Panel */

.dish-panel {
  height: 0;
  /*overflow: hidden;*/
  background: var(--panel-bg);
  color: var(--panel-text);
  transition: height 0.45s ease;
  position: relative;
}
  .dish-panel::before{
        background: url(../img/textura-punteada-arriba.png) repeat-x;
    background-size: 50%;
    display: block;
    content: '';
    height: 10px;
    position: absolute;
    top: -10px;
    width: 100%;
    z-index: 10;
  }

@media (prefers-reduced-motion: reduce) {
  .dish-panel {
    transition: none;
  }
}

.dish-panel__inner {
  position: relative;
  padding: 36px 28px 32px;
}

.dish-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 0;
  width: 45px;
  height: 40px;
  border: 0;
  background: var(--gold-deep);
  color: #1a1408;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.dish-card.is-open .dish-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish-close:hover,
.dish-close:focus-visible {
  background: var(--gold);
}

.dish-panel__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: center;
}

.dish-panel__main {
  display: flex;
  flex-direction: column;
}

.dish-panel__title {
  margin: 0 0 12px;
  color: var(--panel-text);
  font-family: "Chronicle Display Bold", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
}

.dish-panel__restaurant {
  display: block;
    width: fit-content;
    border-bottom: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    margin: 0 auto 10px;
    text-align: center;
    padding: 0 10px 10px;
}

.dish-panel__ingredient {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--panel-text);
}

.dish-panel__ingredient-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.dish-panel__ingredient-icon svg,
.dish-panel__ingredient-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.dish-panel__ingredient-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.dish-panel__links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dish-panel__instagram,
.dish-panel__address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--panel-text);
  font-weight: 400;
  text-decoration: underline;
  font-size: 0.95rem;
  justify-content: center;
}

.dish-panel__instagram svg,
.dish-panel__address svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.dish-panel__desc-col {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--gold);
  padding-left: 32px;
}

.dish-panel__desc {
  margin: 0;
  color: var(--panel-text);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

img.bg-footer-desktop{
  display: block;
}
img.bg-footer-movil{
  display: none;
}
.flecha-movil{
  display: none;
}

@media (max-width: 640px) {
  .dish-panel__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dish-panel__main {
    align-items: center;
    text-align: center;
  }

  .dish-panel__restaurant {
    width: auto;
    padding: 0 10px 10px;
  }

  .dish-panel__links {
    margin-top: 0;
    align-items: center;
  }

  .dish-panel__desc-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--gold);
    padding-top: 20px;
  }

    .box-titular h1{
        height: 280px;
        width: 250px;
    }
    .hero-dish--1{
        top: -8%;
        width: 60%;
        left: -28%;
    }
    .hero-dish--4 {
        top: -3%;
        left: 73%;
        width: 45%;
    }
    .hero-dish--5 {
        top: 38%;
        left: 67%;
        width: 69%;
        rotate: 52deg;
    }
    .hero-dish--6{
        top: 35%;
        left: 83%;
        width: 28%;
    }
    .hero-dish--7{
        top: 77%;
        left: 39%;
        width: 56%;
    }
    .hero-dish--2,
    .hero-dish--3,  
    .hero-dish--6,   
    .hero-dish--8{
        display: none;
    }
    .hero-dish--9{
        top: 61%;
        left: -35%;
        width: 71%;
    }
    .box-bajada h2{
        font-size: 1.3rem;
        max-width: 85%;
    }
    .box-bajada h2 span{
        font-size: 1.5rem;
    }
    .box-bajada p{
        max-width: 90%;
        font-size: 1.2rem;
    }
    .box-footer{
      overflow: hidden;
    }
    .box-footer img{
        scale: 1.3;
    }
    .ctn-footer{
          bottom: 15px;
        top: inherit;
    }
        .ctn-footer img.logo-comercio-footer{
            max-width: 100px;
        }
        .ctn-footer ul{
            margin: 15px auto 0;
            max-width: 330px;
            padding: 0;
        }
        .ctn-footer ul li p{
          font-size: .9rem;
        }
    .dish-panel::before{
        background-size: 100%;
    }
    .box-indicador img{
        /*max-width: 180px;*/
    }
    .box-bajada .textura{
        background-size: 50%;
    }
    .ctn-footer ul li a{
        max-width: 170px;
    }
    .ctn-footer ul li a img{
          margin: 0 auto 0;
          scale: 1 !important;
    }
    img.bg-footer-desktop{
      display: none;
    }
    img.bg-footer-movil{
      display: block;
    }
    .main-hero{
      aspect-ratio: 16 / 28.5;
    }
    .box-titular{
      width: 80%;
          transform: translate(-50%, -73%);
    }
    .flecha-movil{
      display: block;
      margin-top: 10px;
      max-width: 40px;
    }
    .dish-photo__name{
        font-size: .8rem;
        max-width: 90%;
        width: fit-content;
        padding: 10px;
    }

}
