:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --text: #e8e8e8;
  --text-dim: #888;
  --gold: #C9A84C;
  --gold-hover: #b8963e;
  --white: #fff;
  --border: #222;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --transition: .3s ease;
}

.luxury-0 {
  background: #1a1a1a
}

.luxury-1 {
  background: #1c1a18
}

.luxury-2 {
  background: #181a1c
}

.luxury-3 {
  background: #1a1818
}

.luxury-4 {
  background: #1c1b19
}

.luxury-5 {
  background: #191a1c
}

.luxury-6 {
  background: #1b1a18
}

.luxury-7 {
  background: #1a191b
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

a {
  text-decoration: none;
  color: inherit
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit
}

input {
  font-family: inherit
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .9rem;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent
}

.btn--gold {
  border-color: var(--gold);
  color: var(--gold)
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--bg)
}

.btn--full {
  width: 100%
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 2px
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border)
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px
}

.header__nav {
  display: none;
  align-items: center;
  gap: 40px
}

.header__nav-link {
  font-size: .85rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: color var(--transition);
  letter-spacing: 1px;
  text-transform: uppercase
}

.header__nav-link:hover {
  color: var(--gold)
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: all var(--transition)
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px)
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px)
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.header__cart {
  position: relative;
  padding: 6px;
  color: var(--text);
  transition: color var(--transition)
}

.header__cart:hover {
  color: var(--gold)
}

.header__cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--bg);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition)
}

.header__cart-badge.visible {
  opacity: 1;
  transform: scale(1)
}

/* ===== Menú mobile (CORREGIDO) ===== */
@media(max-width:768px) {
  .header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--bg2);
    flex-direction: column;
    display: flex;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition)
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all
  }

  .header__nav-link {
    font-size: 1.05rem;
    padding: 8px 0
  }

  .header__hamburger {
    position: relative;
    z-index: 1600
  }

  .section__title {
    font-size: 1.5rem;
    margin-bottom: 24px
  }
}

@media(min-width:769px) {
  .header__nav {
    display: flex
  }

  .header__hamburger {
    display: none
  }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition)
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg2);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .5);
  border-left: 1px solid var(--border)
}

.cart.active {
  transform: translateX(0)
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border)
}

.cart__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 2px
}

.cart__close {
  font-size: 1.8rem;
  color: var(--text-dim);
  line-height: 1;
  transition: color var(--transition)
}

.cart__close:hover {
  color: var(--gold)
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px
}

.cart__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .3s ease
}

.cart-item__color {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.cart-item__color-name {
  font-size: .55rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  opacity: .65
}

.cart-item__info {
  flex: 1;
  min-width: 0
}

.cart-item__name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cart-item__price {
  font-size: .85rem;
  font-weight: 500;
  color: var(--gold)
}

.cart-item__remove {
  align-self: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  padding: 4px;
  transition: color var(--transition)
}

.cart-item__remove:hover {
  color: #e04444
}

.cart__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  display: none
}

.cart__footer.visible {
  display: block
}

.cart__total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--white)
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden
}

.hero__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .15
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 20px
}

.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeUp .8s ease
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeUp .8s ease .15s both
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  animation: fadeUp .8s ease .3s both
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  animation: fadeUp .8s ease .4s both
}

.hero .btn {
  animation: fadeUp .8s ease .5s both
}

.catalog {
  padding: 100px 20px;
  background: var(--bg2)
}

.catalog__container {
  max-width: 1200px;
  margin: 0 auto
}

.catalog__controls {
  margin-bottom: 40px
}

.catalog__search {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
  display: block;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  background: var(--bg3);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition)
}

.catalog__search:focus {
  border-color: var(--gold)
}

.catalog__filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center
}

/* Categorías como tarjetas verticales con imagen */
.filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  border: 2px solid var(--border);
  transition: all var(--transition)
}

.filter-btn img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  opacity: .85
}

.filter-btn span {
  padding: 12px 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text)
}

.filter-btn:hover {
  border-color: var(--gold);
  transform: translateY(-3px)
}

.filter-btn:hover img {
  opacity: 1
}

.filter-btn.active {
  border-color: var(--gold);
  background: var(--bg2)
}

.filter-btn.active span {
  color: var(--gold)
}

.catalog__scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg3)
}

.catalog__scroll::-webkit-scrollbar {
  height: 4px
}

.catalog__scroll::-webkit-scrollbar-track {
  background: var(--bg3)
}

.catalog__scroll::-webkit-scrollbar-thumb {
  background: var(--gold)
}

.luxury-card {
  scroll-snap-align: start;
  min-width: 260px;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition)
}

.luxury-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold)
}

.luxury-card__placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center
}

.luxury-card__placeholder span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(201, 168, 76, .25);
  padding: 20px;
  text-align: center
}

.luxury-card__info {
  padding: 16px
}

.luxury-card__cat {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block
}

.luxury-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 10px
}

.luxury-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.luxury-card__price {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gold)
}

.luxury-card__add {
  padding: 8px 14px;
  font-size: .68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold)
}

.luxury-card__add:hover {
  background: var(--gold);
  color: var(--bg)
}

.luxury-card__add.added {
  background: transparent;
  border-color: #25D366;
  color: #25D366
}

.luxury-card__add.added:hover {
  background: transparent;
  color: #25D366
}

.catalog__no-results {
  display: none;
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease
}

.detail-panel.active {
  opacity: 1;
  pointer-events: all
}

.detail-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8)
}

.detail-panel__content {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 700px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column
}

.detail-panel__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: var(--gold);
  z-index: 2;
  transition: opacity var(--transition)
}

.detail-panel__close:hover {
  opacity: .6
}

.detail-panel__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center
}

.detail-panel__placeholder span {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(201, 168, 76, .25)
}

.detail-panel__info {
  padding: 32px
}

.detail-panel__category {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: block
}

.detail-panel__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 12px
}

.detail-panel__price {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px
}

.detail-panel__desc {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px
}

.detail-panel__add {
  border: 1px solid var(--gold);
  color: var(--gold)
}

.detail-panel__add:hover {
  background: var(--gold);
  color: var(--bg)
}

.detail-panel__add.in-cart {
  border-color: #25D366;
  color: #25D366;
  background: transparent
}

.detail-panel__add.in-cart:hover {
  background: transparent;
  color: #25D366
}

/* ===== UBICACIÓN con mapa ===== */
.ubicacion {
  padding: 80px 20px;
  background: var(--bg2)
}

.ubicacion__container {
  max-width: 1200px;
  margin: 0 auto
}

.ubicacion__map {
  max-width: 1000px;
  margin: 0 auto
}

.ubicacion__map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4)
}

/* ===== FOOTER (Contacto + marca) ===== */
.footer {
  padding: 0;
  background: var(--bg);
  color: var(--text-dim);
  border-top: 1px solid var(--border)
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto
}

.footer__sections {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 64px 20px 40px;
  border-bottom: 1px solid var(--border)
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 2px
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 560px;
  text-align: center
}

.footer__contact-item h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px
}

.footer__contact-item p,
.footer__contact-item a {
  font-size: .95rem;
  color: var(--text-dim);
  transition: color var(--transition)
}

.footer__contact-item a:hover {
  color: var(--gold)
}

.footer__socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 6px
}

.footer__socials a {
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition)
}

.footer__socials a:hover {
  color: var(--gold);
  transform: translateY(-2px)
}

.footer__bottom {
  padding: 24px 20px;
  text-align: center
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px
}

.footer__copy {
  font-size: .8rem;
  color: var(--text-dim)
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2s infinite
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5)
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4)
  }

  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, .6)
  }
}

@media(min-width:768px) {
  .luxury-card {
    min-width: 320px
  }
}

/* IMÁGENES DE PRODUCTOS */
.luxury-card__placeholder {
  position: relative;
  overflow: hidden
}

.luxury-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.detail-panel__placeholder {
  position: relative;
  overflow: hidden
}

.detail-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius)
}

/* MOBILE — ajustes */
@media(max-width:768px) {
  .filter-btn {
    width: 100px
  }

  .filter-btn img {
    height: 70px
  }

  .ubicacion {
    padding: 48px 16px
  }

  .ubicacion__map iframe {
    height: 280px
  }

  .footer__sections {
    gap: 36px;
    padding: 48px 20px 32px
  }

  .footer__contact {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
  }
}