/* ===================== TOKENS ===================== */
:root {
  --navy:       #1a2744;
  --navy-light: #243258;
  --gold:       #b8952a;
  --gold-light: #d4aa3f;
  --sand:       #f0e8d8;
  --cream:      #faf6ef;
  --linen:      #e8dece;
  --white:      #ffffff;
  --text:       #1a2744;
  --muted:      #6b7280;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;
  --radius: 2px;
  --shadow:    0 4px 24px rgba(26,39,68,0.10);
  --shadow-lg: 0 12px 48px rgba(26,39,68,0.18);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===================== UTILITY ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.1; color: var(--navy);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: var(--transition); border-radius: var(--radius);
}
.btn-primary   { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold      { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline   { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ===================== COLOR SELECTOR (PDP) ===================== */
.pdp-colors { margin: 18px 0 4px; }
.pdp-colors-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.pdp-colors-label span.selected-color-name {
  color: var(--gold); font-weight: 400; text-transform: none; letter-spacing: 0;
}
.pdp-color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  /* Área táctil mínima de 44x44px sin cambiar el tamaño visual */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.color-swatch::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--navy);
}
.color-swatch[data-color="multicolor"] {
  background: conic-gradient(red,orange,yellow,green,blue,purple,red) !important;
}
/* Badge de cantidad de fotos en card */
.photo-count-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(26,39,68,0.72); backdrop-filter: blur(4px);
  color: white; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.05em; padding: 3px 8px; border-radius: 2px;
  display: flex; align-items: center; gap: 4px; pointer-events: none;
}

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* ===================== TOAST ===================== */
#toast {
  position: fixed; bottom: max(24px, env(safe-area-inset-bottom, 24px)); right: 24px;
  background: var(--navy); color: var(--white);
  padding: 14px 24px; border-radius: 4px;
  font-size: 0.85rem; z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: var(--transition); pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,39,68,0.7); backdrop-filter: blur(6px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition); padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--cream); border-radius: 4px;
  padding: 48px; max-width: 560px; width: 100%;
  transform: translateY(24px) scale(0.97); transition: var(--transition);
  position: relative; max-height: 90vh; overflow-y: auto;
  will-change: transform;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 1.5rem; color: var(--muted); transition: color var(--transition); }
.modal-close:hover { color: var(--navy); }
.modal h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--navy); margin-bottom: 8px; }
.modal p { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--linen);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 0.9rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(250,246,239,0.97); backdrop-filter: blur(14px);
  padding: 12px 0; box-shadow: 0 2px 20px rgba(26,39,68,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy); letter-spacing: 0.05em; cursor: pointer; transition: opacity var(--transition); }
.nav-logo:hover { opacity: 0.75; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-link { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); position: relative; transition: color var(--transition); cursor: pointer; }
.nav-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--transition); }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-cart { position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--linen); border-radius: 50%; transition: var(--transition); }
.nav-cart:hover { border-color: var(--navy); background: var(--sand); transform: scale(1.05); }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--gold); color: white; font-size: 0.6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform var(--transition); }
.cart-badge.visible { transform: scale(1); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { position: fixed; top: 0; right: -100%; width: min(320px, 100%); height: 100vh; background: var(--cream); z-index: 200; padding: 80px 40px 40px; display: flex; flex-direction: column; gap: 24px; box-shadow: -8px 0 40px rgba(26,39,68,0.15); transition: right var(--transition); }
.mobile-nav.open { right: 0; }
.mobile-nav .nav-link { font-size: 1.1rem; padding: 8px 0; border-bottom: 1px solid var(--linen); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(26,39,68,0.5); z-index: 150; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ===================== HERO ===================== */
#hero { min-height: 100vh; background: var(--navy); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(184,149,42,0.12) 0%, transparent 60%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184,149,42,0.08) 0%, transparent 50%); }
.hero-texture { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 6V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.3s forwards; }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; color: var(--white); line-height: 1.0; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s 0.5s forwards; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 480px; margin-bottom: 44px; opacity: 0; animation: fadeUp 0.8s 0.7s forwards; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.9s forwards; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.4); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; animation: bounce 2s infinite; }
.hero-scroll svg { width: 20px; height: 20px; }
.hero-deco { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(500px, 50vw); opacity: 0.06; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===================== FEATURES STRIP ===================== */
.features-strip { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; }
.features-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); font-size: 0.78rem; letter-spacing: 0.05em; }
.feature-item svg { color: var(--gold); flex-shrink: 0; }

/* ===================== CATEGORY FILTER TABS ===================== */
#products { padding: 100px 0 60px; }
.products-header { text-align: center; margin-bottom: 48px; }
.products-header .section-label { display: block; margin-bottom: 12px; }

/* Wrapper para el efecto de fade lateral */
.category-tabs-wrap {
  position: relative;
  margin-bottom: 72px;
}
@media (max-width: 900px) {
  .category-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 56px; height: 100%;
    background: linear-gradient(to right, transparent, var(--cream));
    pointer-events: none;
    z-index: 1;
  }
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 10px 24px; border: 2px solid var(--linen);
  border-radius: 2px; font-family: var(--font-body);
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  cursor: pointer; transition: var(--transition); background: transparent;
  white-space: nowrap; flex-shrink: 0;
}
.cat-tab:hover { border-color: var(--navy); color: var(--navy); background: var(--sand); }
.cat-tab.active { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ===================== CATEGORY SECTION ===================== */
.cat-section { margin-bottom: 80px; }
.cat-section-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px; padding-bottom: 20px;
  border-bottom: 1px solid var(--linen);
}
.cat-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300; color: var(--navy);
}
.cat-section-count {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  padding: 4px 12px; border: 1px solid var(--gold); border-radius: 2px;
}
.cat-section-line { flex: 1; height: 1px; background: var(--linen); }

/* ===================== PRODUCT GRID & CARD ===================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition);
  cursor: pointer;
}
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-img-wrap {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  background: var(--sand); cursor: pointer;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 5rem; background: var(--sand);
}
.product-badge { position: absolute; top: 16px; left: 16px; background: var(--gold); color: white; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.product-badge.sold { background: var(--navy); }
.product-actions-hover { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; gap: 8px; transform: translateY(60px); opacity: 0; transition: var(--transition); }
.product-card:hover .product-actions-hover { transform: translateY(0); opacity: 1; }
.product-actions-hover button { flex: 1; padding: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; transition: var(--transition); }
.btn-quick { background: white; color: var(--navy); }
.btn-quick:hover { background: var(--sand); }
.product-info { padding: 20px 24px 24px; }
.product-category { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--navy); margin-bottom: 8px; cursor: pointer; transition: color var(--transition); }
.product-name:hover { color: var(--gold); }
.product-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--navy); }
.btn-buy { padding: 10px 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--navy); color: white; border-radius: 2px; transition: var(--transition); }
.btn-buy:hover { background: var(--gold); transform: translateY(-2px); }
.btn-buy:disabled { background: var(--linen); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-buy--sold { padding: 6px 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--linen); color: var(--muted); border-radius: 2px; pointer-events: none; }
.loading-products { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 80px 0; grid-column: 1/-1; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--linen); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dots de colores disponibles en tarjeta */
.product-color-dots {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px;
}
.product-color-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.10);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* ===================== BANNER ===================== */
#banner { padding: 100px 0; background: var(--navy); position: relative; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(184,149,42,0.15), transparent); }
.banner-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.banner-content .section-label { color: rgba(255,255,255,0.5); margin-bottom: 16px; display: block; }
.banner-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: white; line-height: 1.15; margin-bottom: 24px; }
.banner-title em { color: var(--gold); font-style: italic; }
.banner-text { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.banner-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--gold); display: block; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.banner-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.banner-circle {
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(184,149,42,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.banner-circle::before { content: ''; position: absolute; inset: 16px; border-radius: 50%; border: 1px solid rgba(184,149,42,0.15); }
.banner-icon { font-size: 6rem; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===================== ABOUT ===================== */
#about { padding: 100px 0; background: var(--sand); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img-frame { aspect-ratio: 3/4; background: var(--linen); border-radius: 4px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; font-size: 8rem; }
.about-deco { position: absolute; bottom: -24px; right: -24px; width: 200px; height: 200px; background: var(--gold); border-radius: 4px; z-index: -1; opacity: 0.3; }
.about-content .section-label { display: block; margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 28px; }
.about-text { font-size: 0.95rem; line-height: 1.9; color: var(--muted); margin-bottom: 20px; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  background: white; border-radius: 4px; border-left: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-feature:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.about-feature-icon { font-size: 1.3rem; flex-shrink: 0; }
.about-feature strong { display: block; font-size: 0.85rem; color: var(--navy); margin-bottom: 2px; }
.about-feature span { font-size: 0.8rem; color: var(--muted); }

/* ===================== CONTACT ===================== */
#contact { padding: 100px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-inner--single { display: block; max-width: 600px; }
.contact-info .section-label { display: block; margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 24px; }
.contact-text { font-size: 0.95rem; line-height: 1.8; color: var(--muted); margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--sand); border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none; color: inherit;
}
.contact-item--link { cursor: pointer; }
.contact-item--link:hover { transform: translateX(4px); box-shadow: var(--shadow); background: var(--linen); }
.contact-item:not(.contact-item--link):hover { transform: translateX(4px); box-shadow: var(--shadow); }
.contact-item-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 2px; }
.contact-item span { font-size: 0.85rem; color: var(--muted); }
.contact-form { background: var(--sand); padding: 40px; border-radius: 4px; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--navy); margin-bottom: 24px; }

/* ===================== FOOTER ===================== */
footer { background: var(--navy); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { display: block; margin-bottom: 16px; color: white; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-social { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-social:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--transition); cursor: pointer; }
.footer-link:hover { color: var(--white); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===================== PRODUCT PAGE ===================== */
#product-page { display: none; }
.btn-back { 
  margin-bottom: 20px; 
  font-size: 0.9rem; 
  font-weight: 500; 
  color: var(--navy); 
  transition: var(--transition); 
}
.btn-back:hover { color: var(--gold); transform: translateX(-4px); }

/* ===================== PRODUCT DETAIL PAGE (PDP) ===================== */
#product-page { display: none; min-height: 100vh; background: var(--cream); padding: 120px 0 80px; }
.pdp-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; transition: var(--transition); cursor: pointer; }
.pdp-back-link:hover { color: var(--gold); gap: 12px; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.pdp-gallery { 
  display: flex; flex-direction: row; gap: 16px; 
  max-width: 500px; width: 100%; justify-self: center; align-items: flex-start;
}
.pdp-thumbnails { 
  display: flex; flex-direction: column; gap: 12px; 
  overflow-y: auto; padding-right: 4px; max-height: calc(100% - 10px);
}
.pdp-thumbnails::-webkit-scrollbar { width: 4px; }
.pdp-thumbnails::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.pdp-thumb {
  width: 60px; height: 60px; background: var(--sand); border-radius: 4px;
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); flex-shrink: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--navy); }

.pdp-main-img {
  flex: 1; aspect-ratio: 4/5; background: var(--sand); border-radius: 4px;
  overflow: hidden; position: relative; box-shadow: var(--shadow-lg); min-width: 0;
  cursor: crosshair;
}
.pdp-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.4s ease, transform 0.2s ease-out;
}
.pdp-main-img img.changing { opacity: 0; }
.pdp-main-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 6rem; background: var(--sand);
}

.pdp-info { padding-top: 10px; }
.pdp-category { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.pdp-title { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--navy); margin-bottom: 16px; line-height: 1.1; }
.pdp-price { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); margin-bottom: 24px; }
.pdp-desc { font-size: 1.05rem; line-height: 1.8; color: var(--muted); margin-bottom: 32px; }
.pdp-actions { display: flex; gap: 16px; margin-bottom: 32px; }
.pdp-features { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; border-top: 1px solid var(--linen); }
.pdp-feature { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--navy); }
.pdp-feature span { font-size: 1.2rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .banner-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .banner-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1/-1; }
  /* PDP móvil: galería arriba, info abajo */
  .pdp-grid { 
    grid-template-columns: 1fr; 
    gap: 0;
    display: flex;
    flex-direction: column;
  }
  .pdp-gallery { 
    order: 1;
    flex-direction: column; 
    max-width: 100%; 
    margin-bottom: 0;
  }
  .pdp-thumbnails { 
    order: 2;
    flex-direction: row; 
    overflow-x: auto; 
    overflow-y: hidden; 
    padding-bottom: 8px;
    padding-top: 8px;
  }
  .pdp-main-img {
    order: 1;
    aspect-ratio: 4/5;
    max-height: 70vw;
  }
  /* Color mobile slot: el order real se gestiona en el segundo bloque 900px */
  .pdp-info {
    order: 3;
    padding-top: 20px;
  }
  /* Color swatches: siempre visibles y más grandes en móvil */
  .pdp-color-swatches {
    gap: 14px;
    flex-wrap: wrap;
  }
  .color-swatch {
    width: 40px;
    height: 40px;
    -webkit-tap-highlight-color: transparent;
  }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .banner-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .pdp-actions { flex-direction: column; }
  /* Fix: modal no queda oculto por el teclado virtual en iOS/Android */
  .modal-overlay { align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
  .modal { max-height: calc(100dvh - 32px); }
}

/* Slot de colores en móvil (debajo de la foto) */
.pdp-color-mobile {
  display: none;
}

/* Fix: thumbnails PDP con área táctil suficiente en móvil */
@media (max-width: 900px) {
  .pdp-thumb { min-width: 64px; min-height: 64px; }

  /* Tabs móvil: chips píldora con scroll horizontal */
  .category-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    gap: 8px;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab {
    padding: 8px 20px;
    font-size: 0.7rem;
    border-radius: 20px;
  }

  /* Slot de colores debajo de foto: visible en móvil */
  .pdp-color-mobile {
    display: block;
    order: 2;
    width: 100%;
  }
  .pdp-color-mobile .pdp-colors {
    margin: 0;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--linen);
    border-top: 1px solid var(--linen);
    background: none;
  }
  .pdp-color-mobile .pdp-color-swatches {
    gap: 14px;
  }
  .pdp-color-mobile .color-swatch {
    width: 40px;
    height: 40px;
  }
  /* Ocultar selector dentro de pdp-info en móvil (ya está arriba) */
  .pdp-info > #pdp-color-selector {
    display: none !important;
  }
}

/* Fix: zoom con mouse solo en dispositivos que tienen cursor (no touch) */
@media (hover: none) {
  .pdp-main-img { cursor: default; }
}

/* Fix: botones hover de producto siempre visibles en touch */
@media (hover: none) {
  .product-actions-hover {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(transparent, rgba(26,39,68,0.65));
    padding-bottom: 12px;
  }
  .product-card:hover { transform: none; box-shadow: var(--shadow); }
}

/* ===================== SKELETON LOADERS ===================== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--linen) 25%, var(--sand) 50%, var(--linen) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 4px;
}
.skeleton-card {
  background: var(--white); border-radius: 4px;
  overflow: hidden; box-shadow: var(--shadow);
}
.skeleton-img  { aspect-ratio: 3/4; width: 100%; }
.skeleton-info { padding: 20px 24px 24px; }
.skeleton-line { height: 12px; margin-bottom: 10px; border-radius: 3px; }
.skeleton-line.short  { width: 45%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long   { width: 90%; }
.skeleton-line.price  { width: 55%; height: 18px; margin-top: 16px; }

/* ===================== PRODUCT CARD — HOVER CTA ===================== */
.product-card { position: relative; }
.product-card-cta {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,39,68,0.82) 0%, transparent 100%);
  padding: 32px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.product-card:hover .product-card-cta { transform: translateY(0); pointer-events: auto; }
.product-card-cta-btn {
  width: 100%; padding: 10px 0; background: var(--gold); color: white;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px;
  border: none; cursor: pointer;
  transition: background var(--transition);
}
.product-card-cta-btn:hover { background: var(--gold-light); }
/* touch devices — always show subtle gradient */
@media (hover: none) {
  .product-card-cta { transform: translateY(0); pointer-events: auto; background: linear-gradient(to top, rgba(26,39,68,0.70) 0%, transparent 100%); }
  .product-card:hover { transform: none; box-shadow: var(--shadow); }
}

/* ===================== STOCK LOW BADGE ===================== */
.badge-stock-low {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(239,68,68,0.92); backdrop-filter: blur(4px);
  color: white; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  pointer-events: none;
}

/* ===================== RIPPLE EFFECT ===================== */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0); animation: ripple-anim 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ===================== CART BADGE BOUNCE ===================== */
@keyframes badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.55); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.cart-badge.pop { animation: badge-pop 0.38s cubic-bezier(0.4,0,0.2,1); }

/* ===================== SCROLL TO TOP ===================== */
#scroll-top {
  position: fixed; bottom: max(28px, env(safe-area-inset-bottom, 28px)); right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(26,39,68,0.28);
  z-index: 90; border: none; cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
#scroll-top:hover { background: var(--gold); transform: translateY(-2px) scale(1.05); }

/* ===================== STAT COUNTER ANIMATION ===================== */
.stat-num { display: block; }
@keyframes stat-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-num.counted { animation: stat-fade-up 0.5s ease forwards; }

/* ===================== PAGE TRANSITION ===================== */
#main-site, #product-page {
  transition: opacity 0.28s ease;
}

/* ===================== IMAGE SKELETON IN CARD ===================== */
.product-img-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--linen) 25%, var(--sand) 50%, var(--linen) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease infinite;
  z-index: 0;
}
.product-img-wrap img, .product-img-wrap .product-img-placeholder {
  position: relative; z-index: 1;
}
.product-img-wrap img.loaded { }
/* Once image loads, hide shimmer */
.product-img-wrap.img-loaded::before { display: none; }


.modal-confirm {
  text-align: center;
  padding: 48px 40px 40px;
}
.confirm-wave {
  font-size: 2.8rem;
  margin-bottom: 4px;
  animation: sway 3s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
.confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(184,149,42,0.35);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 300;
  color: var(--navy); margin-bottom: 6px;
}
.confirm-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--gold); margin-bottom: 16px;
}
.confirm-msg {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--muted); margin-bottom: 0;
}
.confirm-divider {
  width: 48px; height: 1px;
  background: var(--linen);
  margin: 20px auto;
}
.confirm-sub {
  font-size: 0.82rem; line-height: 1.7;
  color: var(--muted); margin-bottom: 20px;
}
@media (max-width: 600px) {
  .modal-confirm { padding: 36px 20px 28px; }
  .confirm-title { font-size: 1.8rem; }
}
