*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01" on, "cv11" on;
  background-color: #050a08;
  background-image:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(30, 92, 71, 0.35), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 100%, rgba(198, 161, 91, 0.08), transparent 45%);
  color: #f4f0e8;
}

.font-display {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.velvet-sheen {
  background-image:
    linear-gradient(180deg, rgba(198, 161, 91, 0.08), transparent 28%),
    linear-gradient(180deg, #0a1f19, #081510);
}

.catalogo-card {
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.14);
  background: #081510;
}

.catalogo-card:hover {
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.5);
}

.catalogo-card img {
  transform-origin: center;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  height: 4.75rem;
  max-height: 4.75rem;
  overflow: hidden;
  background: rgba(5, 10, 8, 0.94);
  backdrop-filter: blur(14px);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.is-compact {
  height: 3.6rem;
  max-height: 3.6rem;
  background: rgba(5, 10, 8, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-inner > a {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  min-width: 0;
  max-width: 3.25rem;
  overflow: hidden;
}

.header-inner > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  min-width: 0;
}

.site-header.is-compact .header-inner {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.site-logo-frame {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
  min-height: 0;
  max-height: 3.25rem;
  padding: 4px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: #f4f0e8;
}

.site-logo-frame img {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  max-width: 2.6rem;
  max-height: 2.6rem;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.site-header svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.site-header.is-compact .site-logo-frame {
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 12px;
}

.header-social-btn {
  width: 3rem;
  height: 3rem;
  transition: width 0.35s ease, height 0.35s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.header-social-btn:hover {
  transform: translateY(-2px);
}

.site-header.is-compact .header-social-btn {
  width: 2.4rem;
  height: 2.4rem;
}

.btn,
.btn-pedir,
.pieza-modal-cerrar,
.js-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.85rem 1.35rem;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-solid,
.btn-pedir {
  background: #f4f0e8;
  color: #081510;
  border-color: rgba(198, 161, 91, 0.55);
}

.btn-line,
.js-ver-mas,
.pieza-modal-cerrar {
  background: rgba(8, 21, 16, 0.55);
  color: #f4f0e8;
  border-color: rgba(244, 240, 232, 0.42);
  box-shadow: none;
}

.btn-wa,
.wa-flotante {
  background: #25d366;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:hover,
.btn-pedir:hover,
.js-ver-mas:hover,
.pieza-modal-cerrar:hover,
.wa-flotante:hover {
  transform: translateY(-2px);
}

.btn-solid:hover,
.btn-pedir:hover {
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.btn-line:hover,
.js-ver-mas:hover {
  border-color: #c6a15b;
  color: #c6a15b;
  background: rgba(244, 240, 232, 0.08);
}

.btn-wa:hover,
.wa-flotante:hover {
  background: #1ebe5d;
  box-shadow: 0 14px 28px rgba(18, 120, 60, 0.4);
}

.btn svg,
.social-btn svg,
.wa-flotante svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.btn-pedir {
  flex: none;
  padding: 0.7rem 1.05rem;
  font-size: 12px;
  transition: padding 0.35s ease, font-size 0.35s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-pedir:hover {
  transform: translateY(-2px);
}

.site-header.is-compact .btn-pedir {
  padding: 0.45rem 0.9rem;
  font-size: 11px;
}

.site-header nav {
  flex: 0 1 auto;
  min-width: 0;
}

footer img {
  display: block;
  height: 4rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.nav-link {
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #c6a15b;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #c6a15b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

main > section:first-child {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
}

.hero-shot {
  position: absolute;
  inset: 0;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 22s ease-in-out infinite alternate;
  transition: none;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88vh;
  max-width: 72rem;
  margin-inline: auto;
  padding: 4rem 1.25rem 6rem;
}

#mobileMenu.hidden,
.catalogo-extra.hidden {
  display: none;
}

.catalogo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalogo-card button > div:first-child {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.js-catalogo > div:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .site-header nav,
  .header-social,
  .site-header .btn-pedir {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .js-catalogo > div:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .js-catalogo > div:first-child {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-copy > * {
  animation: rise 0.9s ease both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.4s; }

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0;
  padding: 1.05rem 0 1.05rem 2.5rem;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.72);
}

.marquee-item i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #c6a15b;
}

.lift {
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.lift:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 161, 91, 0.45);
  background: rgba(244, 240, 232, 0.08);
}

.catalogo-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.catalogo-card:hover {
  transform: translateY(-6px);
}

.catalogo-card button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.catalogo-card.card-in {
  animation: rise 0.55s ease both;
}

.taller {
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(30, 92, 71, 0.55), transparent 60%),
    linear-gradient(160deg, #0c241c, #081510 55%, #050a08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.taller-foto img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.taller-punto + .taller-punto {
  border-top: 1px solid rgba(198, 161, 91, 0.16);
}

@media (min-width: 1024px) {
  .taller-punto + .taller-punto {
    border-top: 0;
    box-shadow: inset 1px 0 0 rgba(198, 161, 91, 0.2);
  }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}

.btn-shine:hover::after {
  transform: translateX(130%);
}

.pieza-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pieza-modal[hidden] {
  display: none;
}

.pieza-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.pieza-modal-panel {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 1.6rem;
  border: 1px solid rgba(198, 161, 91, 0.35);
  background: #0c1814;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: rise 0.35s ease both;
}

.pieza-modal-foto {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #050a08;
}

.pieza-modal-foto img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.pieza-modal-info {
  padding: 1.5rem 1.4rem 1.6rem;
}

.pieza-modal-cerrar {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  padding: 0.55rem 0.95rem;
  font-size: 11px;
}

.wa-flotante {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.wa-flotante svg {
  width: 1.7rem;
  height: 1.7rem;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 161, 91, 0.45);
  background: rgba(244, 240, 232, 0.06);
  color: #f4f0e8;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #c6a15b;
  border-color: #c6a15b;
  background: rgba(198, 161, 91, 0.12);
}

.social-btn--wa:hover {
  color: #fff;
  border-color: #25d366;
  background: #25d366;
}

.js .reveal .cascade {
  opacity: 0;
  transform: translateY(26px);
}

.js .reveal.is-in .cascade {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0ms);
}

@media (min-width: 768px) {
  .pieza-modal-panel {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 560px;
  }

  .pieza-modal-foto {
    height: 100%;
    min-height: 100%;
  }

  .pieza-modal-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .pieza-modal-info {
    padding: 2.4rem 2rem 2rem;
  }
}

@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shot img,
  .hero-copy > *,
  .marquee-track,
  .catalogo-card.card-in,
  .pieza-modal-panel,
  .js .reveal.is-in .cascade {
    animation: none;
  }

  .js .reveal .cascade {
    opacity: 1;
    transform: none;
  }

  .marquee-set--clone {
    display: none;
  }

  .marquee-track {
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .wa-flotante {
    display: none;
  }
}
