/* =========================================================
   Black Scissors & Cap Culture — Solares, Zapopan
   Built on Osmo resources (osmo.supply)
   ========================================================= */

/* ------------------------- Scaling System by Osmo ------------------------- */
:root {
  --size-unit: 16;
  --size-container-ideal: 1440;
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));

  /* Palette */
  --c-paper: #efeeec;
  --c-ink: #131313;
  --c-black: #0b0b0b;
  --c-grey: #8a8a86;
  --c-accent: #ff4c24;
  --c-line-light: rgba(19, 19, 19, 0.14);
  --c-line-dark: rgba(239, 238, 236, 0.16);

  --ease-osmo: cubic-bezier(0.625, 0.05, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 550;
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 390;
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

/* ------------------------- Base ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial;
}

body {
  font-family: "Archivo", Arial, sans-serif;
  font-size: var(--size-font);
  background-color: var(--c-black);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.main {
  overflow: clip;
}

.container {
  width: 100%;
  max-width: calc(var(--size-container) - 5em);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.label {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Section title (shared) */
.section-title {
  font-size: 5em;
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  padding-top: 1.6em;
  padding-bottom: 1em;
}

@media screen and (max-width: 767px) {
  .section-title {
    font-size: 3.25em;
  }
}

@media screen and (max-width: 479px) {
  /* Below 480 the scaling system's root font outgrows the container, so
     single-word display type ("SERVICIOS") no longer fits. Cap against vw. */
  .section-title {
    font-size: min(3.25em, 11.5vw);
  }
}

/* ------------------------- Loader (Welcoming Words) ------------------------- */
.loading-container {
  z-index: 500;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.loading-screen {
  pointer-events: auto;
  color: var(--c-paper);
  background-color: var(--c-black);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.loading-words {
  gap: 0.5em;
  align-items: center;
  display: flex;
  opacity: 0;
}

.loading-words__dot {
  background-color: var(--c-accent);
  border-radius: 50%;
  width: 0.6em;
  height: 0.6em;
  flex-shrink: 0;
}

.loading-words__word {
  font-size: 4.5em;
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

@media screen and (max-width: 767px) {
  .loading-words__word {
    font-size: 3em;
  }
}

/* ------------------------- Cursor (Dynamic Text Cursor) ------------------------- */
.cursor {
  z-index: 600;
  pointer-events: none;
  padding-top: 1.25em;
  padding-left: 0.5em;
  padding-right: 1em;
  position: fixed;
  top: 0;
  left: 0;
}

.cursor-bubble {
  opacity: 0;
  color: var(--c-paper);
  background-color: var(--c-ink);
  border: 1px solid rgba(239, 238, 236, 0.2);
  border-radius: 50em;
  justify-content: center;
  align-items: center;
  height: 2.75em;
  padding-left: 1.5em;
  padding-right: 1.5em;
  display: flex;
  position: relative;
}

.cursor-bubble__text {
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-size: 0.85em;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  [data-cursor] .cursor-bubble {
    transition: transform 0.4s var(--ease-osmo), opacity 0.4s var(--ease-osmo);
    transform: translateX(0%) scale(0.9) rotate(0.001deg);
  }

  [data-cursor="active"] .cursor-bubble {
    opacity: 1;
    transform: translateX(0%) scale(1) rotate(0.001deg);
  }

  [data-cursor="active-edge"] .cursor-bubble {
    opacity: 1;
    transform: translateX(-100%) scale(1) rotate(0.001deg);
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ------------------------- Nav ------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: color 0.5s var(--ease-osmo);
}

body[data-theme-nav="dark"] .nav {
  color: var(--c-paper);
}

body[data-theme-nav="light"] .nav {
  color: var(--c-ink);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em 2em;
  gap: 2em;
}

.nav__logo {
  font-weight: 900;
  font-stretch: 120%;
  font-size: 1.4em;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.nav__logo-amp {
  color: var(--c-accent);
  margin: 0 0.06em;
}

.nav__links {
  display: flex;
  gap: 2em;
}

.nav__link {
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2em;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-osmo);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 50em;
  padding: 0.7em 1.4em;
  transition: background-color 0.4s var(--ease-osmo), color 0.4s var(--ease-osmo), border-color 0.4s var(--ease-osmo);
}

body[data-theme-nav="dark"] .nav__cta:hover {
  background-color: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-paper);
}

body[data-theme-nav="light"] .nav__cta:hover {
  background-color: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}

@media screen and (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .nav__inner {
    padding: 1.25em 1.25em;
  }
}

/* ------------------------- Hero ------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--c-paper);
  background-color: var(--c-black);
  overflow: clip;
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.02);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0.15) 35%, rgba(11, 11, 11, 0.82) 90%),
    rgba(11, 11, 11, 0.15);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 2em 3em;
}

.hero__eyebrow {
  opacity: 0.75;
  margin-bottom: 1.5em;
}

.hero__title {
  font-weight: 900;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.88;
  font-size: clamp(3em, 10.5vw, 10.5em);
  display: flex;
  flex-direction: column;
}

.hero__line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero__line-inner {
  display: inline-block;
  will-change: transform;
}

.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 0.018em var(--c-paper);
  font-size: 0.655em;
  line-height: 1;
}

.hero__line-inner .char {
  display: inline-block;
  will-change: transform;
}

.hero__meta {
  display: flex;
  align-items: flex-end;
  gap: 4em;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--c-line-dark);
}

.hero__meta-label {
  opacity: 0.5;
  margin-bottom: 0.6em;
}

.hero__meta-value {
  font-weight: 600;
  font-size: 1.1em;
}

.hero__meta-dim {
  opacity: 0.5;
  font-weight: 400;
}

.hero__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  background-color: var(--c-paper);
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  padding: 1em 1.8em;
  border-radius: 50em;
  transition: background-color 0.4s var(--ease-osmo), transform 0.4s var(--ease-osmo);
}

.hero__cta:hover {
  background-color: var(--c-accent);
  color: var(--c-paper);
  transform: scale(1.04);
}

.hero__cta-arrow {
  transition: transform 0.4s var(--ease-osmo);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(0.25em);
}

@media screen and (max-width: 767px) {
  .hero__content {
    padding: 0 1.25em 2em;
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: 1.5em;
  }

  .hero__cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------- Marquee (Scroll Direction) ------------------------- */
.marquee-section {
  background-color: var(--c-paper);
  color: var(--c-ink);
  padding: 3em 0;
  border-bottom: 1px solid var(--c-line-light);
}

.marquee-advanced {
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.marquee-advanced__scroll {
  will-change: transform;
  width: 100%;
  display: flex;
  position: relative;
}

.marquee-advanced__collection {
  will-change: transform;
  display: flex;
  position: relative;
}

.marquee-advanced__item {
  justify-content: flex-start;
  align-items: center;
  font-size: max(4em, 7vw);
  display: flex;
}

.marquee-advanced__p {
  white-space: nowrap;
  margin-right: 0.35em;
  font-size: 1em;
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

.marquee-advanced__p--outline {
  color: transparent;
  -webkit-text-stroke: 0.015em var(--c-ink);
}

.marquee-advanced__arrow-svg {
  color: var(--c-accent);
  width: 0.6em;
  margin-right: 0.35em;
  position: relative;
  flex-shrink: 0;
}

.marquee-advanced__arrow-svg,
[data-marquee-direction="right"][data-marquee-status="inverted"] .marquee-advanced__arrow-svg {
  transition: 0.5s var(--ease-osmo);
  transform: rotate(-180deg);
}

[data-marquee-status="inverted"] .marquee-advanced__arrow-svg,
[data-marquee-direction="right"][data-marquee-status="normal"] .marquee-advanced__arrow-svg {
  transform: rotate(-359.999deg);
}

/* ------------------------- Servicios (Image Preview Cursor Follower) ------------------------- */
.services {
  background-color: var(--c-paper);
  color: var(--c-ink);
  padding-bottom: 10em;
}

.preview-container {
  width: 100%;
}

.preview-collection {
  width: 100%;
  margin-top: 1em;
}

.preview-item__row {
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  display: flex;
}

.preview-item__col {
  flex: 1;
}

.preview-item__col.is--large {
  max-width: 45%;
}

.preview-item__col.is--medium {
  max-width: 40%;
}

.preview-item__col.is--small {
  max-width: 15%;
}

.preview-item__col.is--right {
  text-align: right;
}

.preview-container__label {
  opacity: 0.45;
}

.preview-list {
  flex-flow: column;
  width: 100%;
  display: flex;
  position: relative;
}

.preview-item {
  width: 100%;
  transition: opacity 0.25s;
}

.preview-item__heading {
  margin: 0;
  font-size: 2.6em;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.preview-item__text {
  margin-bottom: 0;
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.75;
}

.preview-item__cta {
  opacity: 1;
  font-weight: 600;
  transition: color 0.3s var(--ease-osmo);
}

.preview-item:hover .preview-item__cta {
  color: var(--c-accent);
}

.preview-item__visual {
  aspect-ratio: 1 / 1.25;
  width: 20em;
  display: none;
  position: absolute;
  overflow: hidden;
}

.preview-follower [data-follower-visual] {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.preview-item__inner {
  border-top: 1px solid var(--c-line-light);
  width: 100%;
  padding-top: 2.25em;
  padding-bottom: 2.25em;
  text-decoration: none;
  color: inherit;
  display: block;
}

.preview-item:last-of-type .preview-item__inner {
  border-bottom: 1px solid var(--c-line-light);
}

.preview-item__visual-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.preview-follower {
  z-index: 90;
  aspect-ratio: 1 / 1.25;
  pointer-events: none;
  border-radius: 0.5em;
  justify-content: center;
  align-items: center;
  width: 19em;
  display: flex;
  position: fixed;
  inset: 0% auto auto 0%;
  overflow: hidden;
}

.preview-follower__label {
  z-index: 2;
  position: absolute;
  opacity: 0;
  transform: translate(0px, 100%);
  transition: opacity 0.1s ease, transform 0.6s var(--ease-out-expo);
}

.preview-follower__label-span {
  background-color: var(--c-ink);
  color: var(--c-paper);
  border-radius: 50em;
  padding: 0.8em 1.4em;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-follower__inner {
  z-index: 2;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.1s ease, transform 0.6s var(--ease-out-expo);
}

@media (hover: hover) and (min-width: 992px) {
  body:has([data-follower-collection]:hover) .preview-follower__inner {
    opacity: 1;
    transform: scale(1);
  }

  body:has([data-follower-collection]:hover) .preview-follower__label {
    opacity: 1;
    transform: translate(0px, 0%);
  }

  body:has(.preview-item:hover) .preview-item:not(:hover) {
    opacity: 0.4;
  }
}

@media screen and (max-width: 991px) {
  .preview-item__row {
    grid-row-gap: 0.5em;
  }

  .preview-item__row.tablet--hide {
    display: none;
  }

  .preview-item__col.is--large {
    flex: none;
    order: -1;
    width: 100%;
    max-width: none;
  }

  .preview-item__col.is--medium {
    max-width: 70%;
  }

  .preview-item__col.is--small {
    text-align: right;
    max-width: 30%;
  }

  .preview-list {
    grid-column-gap: 1em;
    grid-row-gap: 4em;
    flex-flow: wrap;
  }

  .preview-item {
    width: 100%;
  }

  .preview-item__heading {
    font-size: 1.9em;
    margin-bottom: 0.4em;
  }

  .preview-item__visual {
    border-radius: 0.5em;
    order: -1;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 1.25em;
    display: block;
    position: relative;
  }

  .preview-item__inner {
    border: none;
    flex-flow: column;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
  }

  .preview-item:last-of-type .preview-item__inner {
    border-bottom: none;
  }

  .preview-follower {
    display: none;
  }
}

/* ------------------------- El Shop (Image to Background Zoom) ------------------------- */
.background-zoom {
  color: var(--c-paper);
  background-color: var(--c-black);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  /* svh, not dvh: dvh rewrites layout every time the mobile URL bar
     shows/hides mid-scroll, which fights the pinned Flip timeline. */
  padding-top: calc(50svh - 15em);
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  overflow: clip;
}

.background-zoom__title {
  padding-bottom: 4em;
}

.background-zoom__h {
  text-align: center;
  letter-spacing: -0.03em;
  max-width: min(9em, 100%);
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  /* The vw cap only bites between 768-991px, where the scaling system's
     smaller ideal container inflates 6em enough to clip "PERSONALIZADA".
     Every desktop width still resolves to 6em. */
  font-size: min(6em, 8.5vw);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.95;
}

.background-zoom__h.is--margin-top {
  margin-top: 33svh;
}

.background-zoom__h-span {
  color: transparent;
  -webkit-text-stroke: 0.015em var(--c-paper);
}

.background-zoom__start {
  aspect-ratio: 1;
  border-radius: 16em;
  width: 16em;
  position: relative;
}

.background-zoom__content {
  border-radius: inherit;
  will-change: width, height, transform;
  background-color: var(--c-ink);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  overflow: hidden;
}

.background-zoom__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
}

.background-zoom__tag {
  color: var(--c-paper);
  text-align: center;
  width: 100%;
  font-size: 0.85em;
  position: absolute;
  top: 1.5em;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.background-zoom__dark {
  opacity: 0;
  background-color: var(--c-black);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.background-zoom__end {
  width: 100vw;
  height: 100svh;
}

.background-zoom__text {
  gap: 2em;
  flex-flow: column;
  align-items: center;
  width: 100%;
  padding-bottom: calc(50svh - 12em);
  display: flex;
  position: relative;
}

@media screen and (max-width: 991px) {
  /* Once the image fills the screen this tag sits under the nav. On desktop it
     lands in the nav's empty centre; on narrower screens the nav spans the full
     width, so drop the tag clear of it. */
  .background-zoom__tag {
    top: 6.5em;
  }
}

@media screen and (max-width: 767px) {
  .background-zoom__h {
    /* Cap against viewport width: the longest word ("PERSONALIZADA") is ~10em
       wide, so a pure em size overflows narrow phones and gets clipped. */
    font-size: min(2.75em, 8vw);
  }

  .background-zoom__start {
    width: 12em;
  }
}

/* ------------------------- Caps (3D Perspective Hover) ------------------------- */
.caps {
  background-color: var(--c-ink);
  color: var(--c-paper);
  padding-top: 10em;
  padding-bottom: 12em;
  position: relative;
  overflow: clip;
}

.caps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
}

.caps__copy {
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: flex-start;
}

.caps__title {
  font-size: 3.6em;
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 10.5em;
}

.caps__title-outline {
  color: transparent;
  -webkit-text-stroke: 0.016em var(--c-paper);
}

.caps__p {
  max-width: 26em;
  font-size: 1.1em;
  line-height: 1.6;
  opacity: 0.75;
}

.caps__link {
  color: var(--c-paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 238, 236, 0.4);
  padding-bottom: 0.35em;
  transition: border-color 0.4s var(--ease-osmo), color 0.4s var(--ease-osmo);
}

.caps__link:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.perspective__wrap {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.perspective__item {
  aspect-ratio: 1 / 1.15;
  justify-content: center;
  align-items: center;
  width: clamp(22em, 30vw, 34em);
  display: flex;
  position: relative;
}

.perspective__item-bg {
  z-index: 0;
  border: 0.3125em solid var(--c-paper);
  border-radius: 0.5em;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.perspective__img {
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  height: 100%;
}

.perspective__item-drop {
  z-index: 2;
  background-color: var(--c-accent);
  color: var(--c-paper);
  border-radius: 50em;
  padding: 0.9em 1.5em;
  font-size: 0.8em;
  position: absolute;
  top: -1.25em;
  left: -1.5em;
}

.perspective__item-title {
  z-index: 1;
  color: var(--c-ink);
  background-color: var(--c-paper);
  border-radius: 0.5em;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0.875em 2.5em 0.875em 1.25em;
  display: flex;
  position: absolute;
  bottom: 8%;
  right: -12%;
}

.perspective__item-span {
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: -0.01em;
}

.perspective__item-span.is--secondary {
  opacity: 0.5;
  font-size: 0.95em;
  font-weight: 500;
}

.perspective__item-sizes {
  z-index: 2;
  gap: 0.75em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(239, 238, 236, 0.14);
  border: 1px solid rgba(239, 238, 236, 0.25);
  border-radius: 50em;
  justify-content: center;
  align-items: center;
  padding: 0.7em 1.2em;
  font-size: 0.75em;
  display: flex;
  position: absolute;
  top: 12%;
  right: -8%;
}

[data-3d-hover-target] {
  transform: perspective(50vw);
  transform-style: preserve-3d;
  will-change: transform;
}

[data-3d-hover-inner="layer-1"] { transform: translateZ(2vw); }
[data-3d-hover-inner="layer-2"] { transform: translateZ(4vw); }
[data-3d-hover-inner="layer-3"] { transform: translateZ(5vw); }
[data-3d-hover-inner="layer-4"] { transform: translateZ(7vw); }

@media screen and (max-width: 991px) {
  .caps__grid {
    grid-template-columns: 1fr;
    gap: 6em;
  }

  .caps__title {
    font-size: 2.6em;
  }
}

@media screen and (max-width: 479px) {
  .caps__title {
    font-size: 2.1em;
  }
}

/* The tilt is hover-only (init3dPerspectiveHover bails on touch), but the
   perspective + translateZ still magnified these layers on phones and pushed
   them past the viewport edge. Flatten them where the effect never runs. */
@media (hover: none) {
  [data-3d-hover-target],
  [data-3d-hover-inner] {
    transform: none;
  }
}

@media screen and (max-width: 479px) {
  .perspective__item {
    /* 85vw exceeded the grid track and widened it past the container,
       dragging the caps copy off-screen alongside the card. */
    width: 100%;
  }

  /* Keep the offset layers, just tucked inside the viewport. */
  .perspective__item-title {
    right: -3%;
    padding-right: 1.25em;
  }

  .perspective__item-sizes {
    right: -2%;
  }

  .perspective__item-drop {
    left: -0.75em;
  }
}

/* ------------------------- Visítanos ------------------------- */
.visit {
  background-color: var(--c-paper);
  color: var(--c-ink);
  padding-top: 10em;
  padding-bottom: 10em;
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
}

.visit__title {
  font-size: 6em;
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 0.5em;
}

.visit__rating-stars {
  position: relative;
  display: inline-block;
  font-size: 2em;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 0.35em;
}

.visit__rating-stars-base {
  color: rgba(19, 19, 19, 0.18);
}

.visit__rating-stars-fill {
  color: var(--c-accent);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

.visit__rating-text {
  opacity: 0.6;
}

.visit__col--info {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  padding-top: 0.75em;
}

.visit__row {
  border-bottom: 1px solid var(--c-line-light);
  padding-bottom: 2em;
}

.visit__row-label {
  opacity: 0.5;
  margin-bottom: 0.9em;
}

.visit__row-value {
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-decoration: none;
}

a.visit__row-value:hover {
  color: var(--c-accent);
}

.visit__actions {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.visit__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  padding: 1.1em 2em;
  border-radius: 50em;
  border: 1px solid var(--c-ink);
  transition: background-color 0.4s var(--ease-osmo), color 0.4s var(--ease-osmo), transform 0.4s var(--ease-osmo);
}

.visit__btn:hover {
  transform: scale(1.04);
}

.visit__btn.is--solid {
  background-color: var(--c-ink);
  color: var(--c-paper);
}

.visit__btn.is--solid:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

.visit__btn:not(.is--solid):hover {
  background-color: var(--c-ink);
  color: var(--c-paper);
}

@media screen and (max-width: 991px) {
  .visit__grid {
    grid-template-columns: 1fr;
  }

  .visit__title {
    font-size: 4em;
  }
}

@media screen and (max-width: 479px) {
  /* "VISÍTANOS" cannot wrap, so its min-content width sets the grid track.
     Oversized, it widened the track past the container and pushed the rows
     (e.g. the opening-hours line) off-screen with it. */
  .visit__title {
    font-size: min(4em, 11.5vw);
  }
}

/* ------------------------- Footer (Parallax) ------------------------- */
.footer-wrap {
  position: relative;
  overflow: hidden;
}

.footer {
  background-color: var(--c-black);
  color: var(--c-paper);
  min-height: 100svh;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  gap: 5em;
  padding-top: 8em;
  position: relative;
}

.footer__links-row {
  display: flex;
  gap: 2.5em;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.footer__label {
  opacity: 0.45;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3em;
}

.footer__a {
  color: inherit;
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.3s var(--ease-osmo);
}

.footer__a:hover {
  color: var(--c-accent);
}

.footer__address {
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.85;
}

.footer__logo-row {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.footer__tagline {
  opacity: 0.45;
}

.footer__big {
  display: inline-block;
  align-self: center;
  font-size: 9vw;
  font-weight: 900;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.8;
  white-space: nowrap;
  margin: 0;
  margin-bottom: -0.08em;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
  opacity: 0.45;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  border-top: 1px solid var(--c-line-dark);
}

.footer-wrap__dark {
  opacity: 0;
  pointer-events: none;
  background-color: var(--c-black);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (max-width: 767px) {
  .footer__a {
    font-size: 1.5em;
  }

  .footer__links-row {
    flex-direction: column;
  }
}

/* ------------------------- Reveals ------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(2em);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .loading-container {
    display: none;
  }

  .hero__line-inner,
  .hero__eyebrow,
  .hero__meta {
    opacity: 1 !important;
    transform: none !important;
  }
}
