:root {
  --coral: #c64e4d;
  --cream: #f3f1f1;
  --cream-soft: rgba(243, 241, 241, 0.86);
  --ink: #1a1212;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --hold: 5.6s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--coral);
  color: var(--cream);
  overflow: hidden;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

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

img {
  max-width: none;
}

.stage {
  height: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--coral);
}

.media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #140e0e;
  cursor: pointer;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.slide:first-child {
  opacity: 1;
}

.slide-pan {
  position: absolute;
  inset: -7%;
  will-change: transform;
}

.slide-zoom {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.slide-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.slide-platos .slide-zoom img {
  object-position: 50% 42%;
}

.slide-cocina .slide-zoom img {
  object-position: 50% 50%;
}

.slide-tomate .slide-zoom img {
  object-position: 42% 48%;
}

.slide-servicio .slide-zoom img {
  object-position: 50% 42%;
}

.meter {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  width: 7.5rem;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(243, 241, 241, 0.28);
  z-index: 3;
  pointer-events: none;
}

.meter-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left center;
}

.ticks {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  display: flex;
  justify-content: center;
  gap: 0.15rem;
}

.tick {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
}

.tick span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: rgba(243, 241, 241, 0.45);
  transition: width 0.45s ease, background-color 0.45s ease;
}

.tick.is-on span,
.tick[aria-current="true"] span {
  width: 1.85rem;
  background: var(--cream);
}

.tick:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: -6px;
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  background: var(--coral);
  color: var(--cream);
  overflow: hidden;
  container-type: size;
}

.panel-shift {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 7cqh 11cqi 6cqh;
  will-change: transform;
}

.copy {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.brand {
  margin: 0;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.brand img {
  display: block;
  width: 32cqi;
  height: auto;
  margin-inline: auto;
}

.copy p {
  margin: 0;
  max-width: 78cqi;
  font-size: clamp(0.78rem, 2.05cqh, 1.02rem);
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--cream-soft);
}

.kicker {
  margin: 0;
  max-width: 100%;
  font-size: clamp(0.66rem, 1.6cqh, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-indent: 0;
  color: var(--cream);
}

.contact {
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.8rem;
  row-gap: 1.2cqh;
  align-items: end;
  margin-top: 2cqh;
}

.contact-label {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  font-size: clamp(0.66rem, 1.45cqh, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1.2;
  text-indent: 0.32em;
  color: var(--cream);
}

.phone {
  font-size: clamp(0.64rem, 1.4cqh, 0.84rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.92;
}

.phone-l {
  justify-self: start;
}

.phone-r {
  justify-self: end;
}

.phone:hover,
.phone:focus-visible {
  opacity: 1;
}

.phone:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 4px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: #8d3030;
  color: var(--cream);
}

@media (max-width: 860px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 7fr) minmax(0, 2fr);
    height: 100dvh;
  }
  
  .brand {
    margin: 0 0 20px 0px;
  }

  .panel {
    order: 0;
    min-height: 0;
    height: 100%;
    container-type: size;
  }

  .media {
    order: 1;
    min-height: 0;
    height: 100%;
  }

  .panel-shift {
    padding: 5cqh 8cqi 5cqh;
  }

  .copy {
    gap: 0.28rem;
  }

  .copy p {
    max-width: 100%;
    font-size: clamp(0.72rem, 2.3cqh, 0.88rem);
    line-height: 1.34;
  }

  .kicker {
    font-size: clamp(0.6rem, 1.9cqh, 0.74rem);
    letter-spacing: 0.11em;
  }

  .contact {
    margin-top: 1.2cqh;
    row-gap: 0.7cqh;
  }

  .contact-label {
      margin-top:10px;
    font-size: clamp(0.64rem, 1.9cqh, 0.76rem);
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .phone {
    display: block;
    font-size: clamp(0.54rem, 2.9cqi, 0.66rem);
    letter-spacing: 0.01em;
  }

  .phone-r {
    display: block;
  }

  .meter {
    bottom: 1.05rem;
    width: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-pan,
  .slide-zoom,
  .panel-shift,
  [data-depth] {
    transform: none !important;
  }
}
