/* ============ TOKENS ============ */
:root {
  --bg: #f0f0f0;
  --bg-alt: #111111;
  --fg: #979191fd;
  --muted: #aaa2a296;
  --gold: #6b550dfa;
  --line: rgba(92, 84, 58, 0.349);

  --display: "Fraunces", serif;
  --body: "Inter", sans-serif;

  --nav-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}

.section-index {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  z-index: 50;
  mix-blend-mode: difference;
}

.nav__logo {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -6px;
  touch-action: manipulation;
}

.menu-line {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.menu-line:nth-child(1) {
  transform: translateY(-5px);
}
.menu-line:nth-child(3) {
  transform: translateY(5px);
}

.nav__badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 600;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ MENU OVERLAY ============ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.menu-overlay.is-open {
  transform: translateY(0);
}

.menu-overlay__close {
  position: absolute;
  top: 1.6rem;
  right: 1.75rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
}

.menu-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-link {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s ease;
}
.menu-link:hover {
  color: var(--fg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  background: radial-gradient(ellipse at 50% 30%, #1b2417 0%, #0b0d0b 70%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(11, 13, 11, 0.75) 100%
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.75rem calc(4.5rem + env(safe-area-inset-bottom, 0px));
  max-width: 640px;
}

.hero__eyebrow {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 2;
  width: 1px;
  height: 44px;
  background: rgba(243, 241, 234, 0.35);
}
.hero__scroll span {
  position: absolute;
  top: 0;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% {
    top: 0;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn--outline {
  border: 1px solid rgba(243, 241, 234, 0.5);
  color: var(--fg);
}
.btn--outline:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn--gold {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  font-weight: 600;
}
.btn--gold:hover {
  background: #d8b25f;
  border-color: #d8b25f;
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============ CARRITO ============ */
.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.cart-overlay.is-visible,
.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  z-index: 151;
  display: flex;
  flex-direction: column;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem
    calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}
.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cart-drawer__head h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}
.cart-drawer__close {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.cart-item__thumb {
  width: 64px;
  height: 80px;
  background: linear-gradient(160deg, #1a1d16 0%, #0e100c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(243, 241, 234, 0.18);
}
.cart-item__name {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.cart-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.cart-item__qty button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.cart-item__price {
  font-size: 0.85rem;
}
.cart-item__remove {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-item__remove:hover {
  color: var(--fg);
}

.cart-drawer__empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.cart-drawer__footer {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 1.2rem;
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.cart-drawer__total span:last-child {
  color: var(--gold);
  font-family: var(--display);
}

/* ============ MODAL DE PRODUCTO ============ */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(760px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  z-index: 152;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 1.8rem;
  font-weight: 300;
  z-index: 2;
  line-height: 1;
}

.modal__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal__image {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1a1d16 0%, #0e100c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__image .product__mark {
  position: static;
  font-size: 1.3rem;
}

.modal__info {
  padding: 1.75rem;
}
.modal__info h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.modal__price {
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.modal__label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.size-options {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.size-btn {
  min-width: 42px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  touch-action: manipulation;
}
.size-btn:hover {
  border-color: var(--muted);
}
.size-btn.is-selected {
  border-color: var(--gold);
  color: var(--gold);
}

.modal__add {
  width: 100%;
  margin-bottom: 0.5rem;
}
.modal__hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.accordion__item {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
  font-size: 0.85rem;
}
.accordion__item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--fg);
}
.accordion__item p {
  color: var(--muted);
  margin-top: 0.7rem;
  line-height: 1.6;
}

/* ============ PÁGINA DE PRODUCTO ============ */
.product-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 1.75rem 5rem;
}

.product-page__back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.product-page__back:hover {
  color: var(--fg);
}

.product-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .product-page__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.product-page__image {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1a1d16 0%, #0e100c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-page__image .product__mark {
  position: static;
  font-size: 1.4rem;
}

.product-page__info h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.product-page__price {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}
.product-page__sizes {
  margin-bottom: 0.2rem;
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg-alt);
  padding: 9rem 1.75rem;
}

.about__grid {
  max-width: 1224px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about__heading h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.about__text {
  font-size: 1.15rem; /* antes 1.05rem */
  color: var(--muted);
  max-width: none; /* antes 60ch */
  margin-bottom: 2.5rem;
}

.about__stats {
  display: flex;
  gap: 2.75rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat__num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
}
.stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

@media (min-width: 820px) {
  .about__grid {
    grid-template-columns: 1fr 1.6fr; /* antes 0.9fr 1.1fr */
    gap: 4rem;
  }
}

/* ============ STORE ============ */
.store {
  padding: 7rem 1.75rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.store__header {
  margin-bottom: 3rem;
}
.store__header h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  margin-bottom: 0.6rem;
}
.store__subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.store__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.product {
  background: var(--bg);
  padding-bottom: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product__frame {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1d16 0%, #0e100c 100%);
  cursor: pointer;
}

.product__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: rgba(243, 241, 234, 0.18);
}

.product__add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: rgba(11, 13, 11, 0.72);
  backdrop-filter: blur(2px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  touch-action: manipulation;
}
.product__frame:hover .product__add {
  transform: translateY(0);
}

/* En pantallas táctiles (móvil/tablet) no hay :hover, así que el botón
   queda visible siempre en vez de aparecer al pasar el mouse */
@media (hover: none) {
  .product__add {
    transform: translateY(0);
  }
}

.product__info {
  padding: 1rem 0.2rem 0;
}
.product__name {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.product__price {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .store__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 980px) {
  .store__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.75rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.footer__logo {
  font-family: var(--display);
  letter-spacing: 0.1em;
  font-size: 1rem;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--fg);
}

.footer__social {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 2rem;
  color: var(--muted);
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.footer__social a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 2px;
}



.product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.thumb {
  width: 64px;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  opacity: 0.6;
  overflow: hidden;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover {
  opacity: 1;
}
.thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

/* Animación: sube 24px mientras aparece */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cada elemento arranca invisible y la animación lo muestra */
.hero__eyebrow,
.hero__title,
.hero .btn {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* delay = espera antes de empezar, así entran uno tras otro */
.hero__eyebrow {
  animation-delay: 0.3s;
}
.hero__title {
  animation-delay: 0.5s;
}
.hero .btn {
  animation-delay: 0.8s;
}

/* Estado inicial: invisible y un poco más abajo */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
/* Cuando entra en pantalla, JS le agrega esta clase */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* Zoom en cuadrito sobre la foto del producto */
.product-page__image{ position:relative; }

.zoom-lens{
  display:none;               /* oculto hasta que el mouse entra a la foto */
  position:absolute;
  width:150px; height:150px;  /* tamaño del cuadrito, cámbialo si quieres */
  pointer-events:none;        /* para que el mouse "atraviese" la lupa */
  outline:1px solid var(--gold);
  background-repeat:no-repeat;
  box-shadow:0 8px 24px rgba(0,0,0,.45);
}

/* El cursor en cruz solo en computador (en celular no hay mouse) */
@media (hover:hover){
  .product-page__image{ cursor:crosshair; }
}

/* Foto del producto dentro del carrito */
.cart-item__thumb{ overflow:hidden; }
.cart-item__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;   /* recorta para llenar el recuadro sin deformar */
  display:block;
}