/* ===================== VARIABLES ===================== */
:root {
  --gold: #b89247;
  --gold-soft: #d8c79e;
  --ink: #141414;
  --body: #2b2b2b;
  --muted: #8a8378;
  --line: #e8e3d9;
  --bg: #ffffff;
  --cream: #faf7f0;
  --wa: #25d366;

  --container: 1240px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(92%, var(--container)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 2.1rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: all .3s ease;
  cursor: pointer;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); }
.btn--whatsapp { background: var(--ink); color: #fff; }
.btn--whatsapp:hover { background: var(--gold); }
.btn--full { width: 100%; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--ink);
  color: #f3eee3;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  font-weight: 300;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}
.header__left, .header__right {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.header__left { justify-content: flex-start; gap: 1.6rem; }
.header__right { justify-content: flex-end; gap: 1.6rem; }
.nav { display: flex; gap: 1.6rem; }
.nav a {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--body);
  transition: color .25s ease;
  position: relative;
}
.nav a:hover { color: var(--gold); }

.brand { flex: 0 0 auto; }
.brand__logo {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: contain;
}

.cart-btn {
  flex: 0 0 auto;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-btn:hover { color: var(--gold); }

.menu-toggle { display: none; font-size: 1.5rem; }

.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-mobile a {
  padding: .9rem 6%;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.nav-mobile.is-open { display: flex; }

/* ===================== CARRUSEL / PORTADA ===================== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #16110d;
  /* Proporción de los banners: 1920 x 760 (se respeta siempre, nunca recorta) */
  aspect-ratio: 1920 / 760;
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.carousel__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Flechas */
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1; color: #fff;
  background: rgba(20, 16, 12, .35);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background .25s ease, transform .25s ease;
}
.carousel__arrow:hover { background: rgba(199, 154, 59, .85); }
.carousel__arrow--prev { left: 18px; }
.carousel__arrow--next { right: 18px; }
.carousel__arrow:hover { transform: translateY(-50%) scale(1.06); }
/* Puntos */
.carousel__dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px; z-index: 3;
}
.carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: none; cursor: pointer;
  transition: all .25s ease;
}
.carousel__dot.is-active { background: var(--gold); width: 26px; border-radius: 6px; }

/* ===================== COLECCIONES ===================== */
.colecciones { padding: 4rem 0 1rem; }
.coleccion__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.coleccion {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}
.coleccion img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.coleccion::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 45%, transparent 70%);
  transition: background .3s ease;
}
.coleccion:hover img { transform: scale(1.06); }
.coleccion:hover::after { background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.05) 100%); }
.coleccion__info {
  position: absolute; left: 0; right: 0; bottom: 1.8rem;
  z-index: 2; text-align: center; padding: 0 1rem;
}
.coleccion__kicker {
  display: block;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.coleccion__title {
  font-size: 1.8rem; color: #fff;
}

/* ===================== SECTION HEAD ===================== */
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-kicker {
  display: block;
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ===================== CATALOGO ===================== */
.catalog { padding: 5.5rem 0; }
.filters { display: flex; gap: 2rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.filter {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-bottom: .3rem;
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-bottom-color: var(--gold); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 1.6rem 2.2rem;
  display: flex; flex-direction: column;
  background: #fff;
  transition: background .3s ease;
  position: relative;
}
.card:hover { background: var(--cream); }
.card__tag {
  position: absolute; top: 1.1rem; left: 1.1rem;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: .28rem .55rem;
}
.card__media {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
}
.card__media svg { width: 72%; height: auto; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }

.card__cat {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.card__name { font-size: 1.4rem; margin-bottom: .3rem; }
.card__desc { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; flex: 1; }
.card__price { font-family: var(--sans); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; }
.card__add {
  border: 1px solid var(--ink);
  padding: .7rem 1rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  transition: all .3s ease;
}
.card__add:hover { background: var(--ink); color: #fff; }

/* ===================== ABOUT ===================== */
.about { padding: 5.5rem 0; background: var(--cream); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__media { display: grid; place-items: center; }
.about__media img {
  width: 280px; height: 280px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  padding: 14px; background: #fff;
}
.about__text p { color: var(--muted); margin-top: 1.1rem; }
.about__text strong { color: var(--body); font-weight: 400; }
.about__text .section-title { margin-bottom: .4rem; }

/* ===================== CONTACTO ===================== */
.contact { padding: 6rem 0; text-align: center; }
.contact__inner p { color: var(--muted); margin: .4rem 0 2rem; }
.contact__phone { margin-top: 1.8rem !important; font-size: 1.1rem; letter-spacing: .1em; color: var(--ink) !important; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #e9e2d4; padding: 3.5rem 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.footer__logo { width: 72px; height: 72px; border-radius: 50%; object-fit: contain; background: #fff; }
.footer__nav { display: flex; gap: 2rem; }
.footer__nav a { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.footer__nav a:hover { color: var(--gold); opacity: 1; }
.footer__copy { font-size: .74rem; letter-spacing: .08em; opacity: .55; }

/* ===================== WHATSAPP FLOTANTE ===================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  background: var(--wa); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  z-index: 60; transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===================== CARRITO ===================== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,.45);
  opacity: 0; visibility: hidden; transition: .3s ease; z-index: 70;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0;
  width: min(400px, 92%); height: 100%;
  background: #fff; z-index: 80;
  transform: translateX(100%); transition: transform .35s ease;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.cart.is-open { transform: translateX(0); }
.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.6rem; border-bottom: 1px solid var(--line);
}
.cart__head h3 { font-size: 1.5rem; }
.cart__close { font-size: 1.1rem; }
.cart__close:hover { color: var(--gold); }
.cart__items { flex: 1; overflow-y: auto; padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.cart__empty { color: var(--muted); text-align: center; margin-top: 2rem; font-size: .95rem; }

.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item__media { width: 56px; height: 70px; display: grid; place-items: center; background: var(--cream); flex-shrink: 0; }
.cart-item__media svg { width: 70%; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.cart-item__price { color: var(--gold); font-size: .9rem; }
.cart-item__qty { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--line); font-size: .9rem; display: grid; place-items: center; transition: all .2s ease; }
.qty-btn:hover { border-color: var(--ink); }
.cart-item__remove { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-left: .3rem; }
.cart-item__remove:hover { color: var(--gold); }

.cart__foot { padding: 1.6rem; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; }
.cart__total strong { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; letter-spacing: 0; color: var(--ink); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .coleccion__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 95px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .brand__logo { width: 72px; height: 72px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .coleccion__grid { grid-template-columns: repeat(2, 1fr); }
  /* mantiene la proporción vertical de las fotos (no recorta) */
  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about__media { order: -1; }
  /* En móvil mantiene la misma proporción del banner (no recorta) */
  .carousel__arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .carousel__arrow--prev { left: 10px; }
  .carousel__arrow--next { right: 10px; }
}
@media (max-width: 480px) {
  .card__media svg { width: 80%; }
  .card__name { font-size: 1.25rem; }
}

/* ===================== TARJETA COMO ENLACE ===================== */
.card__link {
  display: flex; flex-direction: column; flex: 1;
  color: inherit; text-decoration: none;
}
.card__link .card__name { transition: color .2s ease; }
.card__link:hover .card__name { color: var(--gold); }

/* ===================== CONFIANZA ===================== */
.trust { border-top: 1px solid var(--line); background: var(--cream); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  padding: 2.6rem 1.6rem; text-align: center;
  border-right: 1px solid var(--line);
}
.trust__item:last-child { border-right: 0; }
.trust__icon { font-size: 1.6rem; display: block; margin-bottom: .7rem; }
.trust__item h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.trust__item p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ===================== FICHA DE PRODUCTO (PDP) ===================== */
.pdp { padding: 2.4rem 0 3rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }

.pdp__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.pdp__media {
  position: relative; background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  padding: 1.5rem;
}
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__media svg { width: 60%; }

.pdp__cat {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem;
}
.pdp__name { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.pdp__price { font-family: var(--sans); font-weight: 600; font-size: 1.6rem; margin-bottom: 1rem; }

.pdp__badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.badge {
  font-size: .72rem; letter-spacing: .04em;
  background: var(--cream); border: 1px solid var(--line);
  padding: .4rem .7rem; color: var(--body);
}

.pdp__buy { display: flex; gap: .8rem; align-items: stretch; margin-bottom: 1.8rem; }
.qtybox {
  display: flex; align-items: center; border: 1px solid var(--ink);
}
.qtybox button {
  width: 42px; height: 100%; font-size: 1.2rem; background: #fff;
  transition: all .2s ease;
}
.qtybox button:hover { background: var(--ink); color: #fff; }
.qtybox span { min-width: 36px; text-align: center; font-family: var(--sans); }

.specs { border-top: 1px solid var(--line); }
.spec {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.spec__k { color: var(--muted); }
.spec__v { color: var(--ink); text-align: right; font-weight: 500; }

.pdp__detail {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--line);
}
.pdp__block .section-title { font-size: 1.7rem; margin-bottom: 1rem; }
.pdp__desc { color: var(--body); line-height: 1.75; font-size: 1.02rem; }
.pdp__note { color: var(--muted); font-size: .78rem; margin-top: 1rem; }

.meters { display: flex; flex-direction: column; gap: 1.1rem; }
.meter__top {
  display: flex; justify-content: space-between;
  font-size: .85rem; margin-bottom: .35rem; color: var(--body);
}
.meter__track { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter__fill { height: 100%; background: var(--gold); border-radius: 4px; }

/* ----- Productos relacionados (carrusel) ----- */
.related { margin-top: 3.5rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.related__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.related__head .section-title { font-size: 1.7rem; }
.related__hint { font-size: .8rem; color: var(--muted); }
.related__row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1.2rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.related__row::-webkit-scrollbar { height: 6px; }
.related__row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.minicard {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: #fff;
  padding: 1.2rem 1.2rem 1.4rem;
  color: inherit; text-decoration: none;
  transition: background .25s ease;
}
.minicard:hover { background: var(--cream); }
.minicard__media {
  position: relative; aspect-ratio: 1 / 1;
  display: grid; place-items: center; margin-bottom: .9rem;
}
.minicard__media img { width: 100%; height: 100%; object-fit: contain; }
.minicard__media svg { width: 70%; }
.minicard__cat {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .3rem;
}
.minicard__name {
  font-size: 1.1rem; margin-bottom: .4rem; line-height: 1.25; flex: 1;
}
.minicard:hover .minicard__name { color: var(--gold); }
.minicard__price { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--ink); }

.pdp__notfound { text-align: center; padding: 4rem 0; }
.pdp__notfound h1 { font-size: 2.2rem; margin-bottom: .6rem; }
.pdp__notfound p { color: var(--muted); margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .pdp__detail { grid-template-columns: 1fr; gap: 2rem; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(1), .trust__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .pdp__buy { flex-direction: column; }
  .qtybox { align-self: flex-start; }
}
