:root {
  --teal:     #0e6b6b;
  --teal-deep:#094f4f;
  --teal-glow:#1ac0c0;
  --violet:   #5b2d82;
  --violet-lt:#7c3fad;
  --gold:     #c9a84c;
  --gold-lt:  #e8c96a;
  --cream:    #f5f0e8;
  --dark:     #080f0f;
  --dark2:    #0d1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px),
    repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(14,107,107,0.04) 40px, rgba(14,107,107,0.04) 41px);
  pointer-events: none; z-index: 0;
}

/* ── HEADER ── */
header {
  position: relative; z-index: 10;
  text-align: center; padding: 4rem 2rem 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  background: linear-gradient(180deg, rgba(9,79,79,0.6) 0%, transparent 100%);
}
.logo-deco {
  display: flex; justify-content: center; align-items: center;
  gap: 1.5rem; margin-bottom: 1rem;
}
.deco-line { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.deco-line.right { background: linear-gradient(90deg, var(--gold), transparent); }
.deco-diamond { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 400; letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold), var(--teal-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
}
.tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem); color: rgba(245,240,232,0.65);
  margin-top: 0.75rem; letter-spacing: 0.05em;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: center; gap: 2.5rem; padding: 1rem 2rem;
  background: rgba(8,15,15,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
nav a {
  color: rgba(245,240,232,0.7); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s;
}
nav a:hover { color: var(--gold-lt); }

/* ── HERO ── */
.hero-band {
  position: relative; z-index: 1; text-align: center; padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(91,45,130,0.2) 0%, rgba(14,107,107,0.15) 100%);
}
.hero-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; line-height: 1.3;
  max-width: 700px; margin: 0 auto 2rem;
}
.hero-band h2 em { font-style: italic; color: var(--gold-lt); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.9rem 2.2rem;
  background: transparent; border: 1px solid var(--gold); color: var(--gold-lt);
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.3s;
}
.hero-cta:hover { background: rgba(201,168,76,0.1); border-color: var(--gold-lt); }

/* ── SECTION TITLE ── */
.section-title {
  text-align: center; padding: 4rem 2rem 2rem; position: relative; z-index: 1;
}
.section-title h2 {
  font-family: 'Cinzel Decorative', serif; font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400; letter-spacing: 0.2em; color: var(--gold);
}
.section-title .deco-row {
  display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 0.75rem;
}
.section-title .deco-row span {
  width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal-glow));
}
.section-title .deco-row span:last-child { background: linear-gradient(90deg, var(--teal-glow), transparent); }

/* ── PRODUCTS GRID ── */
.products {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px; padding: 0 2px 2px; max-width: 1400px; margin: 0 auto;
}
.product-card { position: relative; background: var(--dark2); overflow: hidden; }

.product-img-wrap {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-deep), var(--violet));
  cursor: pointer; display: block; text-decoration: none;
}
.product-img-wrap img,
.product-img-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease; filter: saturate(0.9);
}
.product-card:hover .product-img-wrap img,
.product-card:hover .product-img-wrap video { transform: scale(1.05); filter: saturate(1.1); }

.thumb-strip { display: flex; gap: 4px; padding: 4px; background: var(--dark2); }
.thumb-strip img {
  width: 56px; height: 56px; object-fit: cover; cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s; border: 1px solid transparent;
}
.thumb-strip img:hover, .thumb-strip img.active { opacity: 1; border-color: var(--gold); }

.thumb-vid {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; background: rgba(14,107,107,0.2); cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s; border: 1px solid transparent;
  font-size: 0.65rem; letter-spacing: 0.05em; color: var(--teal-glow); text-transform: uppercase;
}
.thumb-vid:hover, .thumb-vid.active { opacity: 1; border-color: var(--gold); }

.product-info { padding: 1.5rem; border-top: 1px solid rgba(201,168,76,0.1); }
.product-category {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal-glow); margin-bottom: 0.4rem;
  font-weight: 500; text-shadow: 0 0 6px rgba(255,255,255,0.2);
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400; line-height: 1.3; margin-bottom: 0.5rem;
  color: var(--cream); text-decoration: none; display: block;
}
a.product-name:hover { color: var(--gold-lt); }
.product-price { font-size: 0.9rem; color: var(--gold-lt); letter-spacing: 0.05em; }

.card-detail-link {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,232,0.65); text-decoration: none; font-weight: 500; transition: color 0.3s;
}
.card-detail-link:hover { color: var(--gold-lt); }

.product-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 0.5rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer; transition: all 0.3s;
  font-family: 'Jost', sans-serif; font-weight: 500; text-shadow: 0 0 6px rgba(255,255,255,0.2);
}
.btn-ml { background: rgba(14,107,107,0.2); border: 1px solid var(--teal); color: var(--teal-glow); }
.btn-ml:hover { background: rgba(14,107,107,0.4); border-color: var(--teal-glow); }
.btn-wa { background: rgba(91,45,130,0.2); border: 1px solid var(--violet-lt); color: #b084dc; }
.btn-wa:hover { background: rgba(91,45,130,0.4); }

/* ── VIDEO TOGGLE BUTTON ── */
.video-toggle-btn {
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(8,15,15,0.65); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-lt); font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  opacity: 0.65; transition: opacity 0.2s, background 0.2s;
}
.product-card:hover .video-toggle-btn,
.video-toggle-btn:focus { opacity: 1; background: rgba(8,15,15,0.85); }

/* ── STOCK TAGS ── */
.stock-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  padding: 0.25rem 0.75rem; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: 'Jost', sans-serif; font-weight: 500; text-shadow: 0 0 6px rgba(255,255,255,0.25);
  z-index: 2;
}
.tag-stock { background: rgba(14,107,107,0.95); color: #ffffff; border: 1px solid var(--teal-glow); }
.tag-pedido { background: rgba(91,45,130,0.95); color: #f0e4ff; border: 1px solid var(--violet-lt); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border: 1px solid rgba(201,168,76,0.2); }
.lightbox video { max-width: 90vw; max-height: 90vh; border: 1px solid rgba(201,168,76,0.2); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: var(--gold); font-size: 2rem; cursor: pointer; background: none; border: none;
}

/* ── SOBRE MÍ ── */
.about {
  position: relative; z-index: 1; max-width: 800px; margin: 4rem auto;
  padding: 3rem 2rem; text-align: center; border: 1px solid rgba(201,168,76,0.15);
  background: linear-gradient(135deg, rgba(9,79,79,0.1), rgba(91,45,130,0.1));
}
.about::before, .about::after { content: '✦'; position: absolute; color: var(--gold); font-size: 1.2rem; }
.about::before { top: -0.7rem; left: 50%; transform: translateX(-50%); background: var(--dark); padding: 0 1rem; }
.about::after  { bottom: -0.7rem; left: 50%; transform: translateX(-50%); background: var(--dark); padding: 0 1rem; }
.about p {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8; color: rgba(245,240,232,0.85);
}
.about p + p { margin-top: 1rem; }

.about-inner {
  display: flex; align-items: flex-start; gap: 2rem;
  flex-wrap: wrap; justify-content: center; text-align: left;
}
.about-photo-wrap {
  flex-shrink: 0; width: 140px; height: 180px;
  overflow: hidden; border: 1px solid rgba(201,168,76,0.3);
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.about-text { flex: 1; min-width: 220px; }
.about-title {
  font-family: 'Cinzel Decorative', serif; font-size: 0.9rem;
  letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1rem;
}
.wip-section { margin-top: 2.5rem; border-top: 1px solid rgba(201,168,76,0.1); padding-top: 2rem; }
.wip-label {
  font-family: 'Cinzel Decorative', serif; font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1rem; text-align: center;
}
.wip-section img {
  width: 100%; max-height: 420px; object-fit: cover;
  border: 1px solid rgba(201,168,76,0.15); filter: saturate(0.85); display: block;
}

/* ── CONTACT ── */
.contact-band {
  position: relative; z-index: 1; text-align: center; padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(91,45,130,0.25), rgba(14,107,107,0.2));
  border-top: 1px solid rgba(201,168,76,0.15); border-bottom: 1px solid rgba(201,168,76,0.15);
}
.contact-band h2 {
  font-family: 'Cinzel Decorative', serif; font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--gold); margin-bottom: 1rem;
}
.contact-band p {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.1rem; color: rgba(245,240,232,0.7); margin-bottom: 2rem;
}
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.5rem; text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; transition: all 0.3s;
}
.contact-btn-wa { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.4); color: #5de88a; }
.contact-btn-wa:hover { background: rgba(37,211,102,0.2); border-color: rgba(37,211,102,0.7); }
.contact-btn-ml { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.55); color: var(--gold-lt); }
.contact-btn-ml:hover { background: rgba(201,168,76,0.2); }

.web-offer {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.1);
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1rem; color: rgba(245,240,232,0.65);
  letter-spacing: 0.02em;
}
.web-offer a {
  color: var(--gold-lt); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.5); transition: color 0.3s, border-color 0.3s;
}
.web-offer a:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1; text-align: center; padding: 2rem;
  font-size: 0.7rem; letter-spacing: 0.15em; color: rgba(245,240,232,0.75);
  border-top: 1px solid rgba(201,168,76,0.08);
}
footer .footer-logo {
  font-family: 'Cinzel Decorative', serif; font-size: 1rem;
  color: rgba(201,168,76,0.65); margin-bottom: 0.5rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
header .fade-up:nth-child(1) { animation-delay: 0.1s; }
header .fade-up:nth-child(2) { animation-delay: 0.3s; }
header .fade-up:nth-child(3) { animation-delay: 0.5s; }
.product-card { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }

/* ────────────────────────────────────────
   PÁGINA DE PRODUCTO
───────────────────────────────────────── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem 5rem;
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2.5rem;
  color: rgba(245,240,232,0.45); text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.3s;
}
.back-link:hover { color: var(--gold-lt); }

.product-layout {
  display: grid; grid-template-columns: 55% 1fr;
  gap: 3.5rem; align-items: start;
}

/* Carousel */
.carousel-main {
  aspect-ratio: 4/5; overflow: hidden; background: var(--dark2);
  cursor: zoom-in; position: relative; border: 1px solid rgba(201,168,76,0.08);
}
.carousel-main img,
.carousel-main video { width: 100%; height: 100%; object-fit: cover; }

.carousel-thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

.thumb-item {
  width: 72px; height: 72px; overflow: hidden; cursor: pointer;
  border: 1px solid transparent; opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s; background: var(--dark2); flex-shrink: 0;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.video-thumb {
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-glow); font-size: 1.4rem;
}
.thumb-item:hover, .thumb-item.active { opacity: 1; border-color: var(--gold); }

/* Detail panel */
.product-detail .detail-tags { margin-bottom: 1.25rem; }
.product-detail .stock-tag { position: static; display: inline-block; }

.detail-name {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 0.6rem;
}

.detail-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.detail-meta span {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-glow); font-weight: 500; text-shadow: 0 0 6px rgba(255,255,255,0.2);
}

.detail-price {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem;
  color: var(--gold-lt); letter-spacing: 0.05em; margin-bottom: 2rem;
}

.detail-section { padding: 1.25rem 0; border-top: 1px solid rgba(201,168,76,0.1); }
.detail-section h3 {
  font-family: 'Cinzel Decorative', serif; font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.detail-section p, .detail-section ul {
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  line-height: 1.75; color: rgba(245,240,232,0.8);
}
.detail-section ul { padding-left: 1.2rem; }
.detail-section li { margin-bottom: 0.25rem; }

/* ── ACCORDION ── */
.detail-section h3 {
  cursor: pointer; user-select: none; margin-bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.detail-section h3::after {
  content: '+'; font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 1.1rem; color: rgba(201,168,76,0.45);
  flex-shrink: 0; margin-left: 1rem;
}
.detail-section.open h3::after { content: '−'; }
.detail-section-body {
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}
.detail-section.open .detail-section-body { max-height: 500px; opacity: 1; }
.detail-section-body > *:first-child { margin-top: 0.6rem; }

.detail-price-note {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,240,232,0.38); font-family: 'Jost', sans-serif;
  margin-top: -1.5rem; margin-bottom: 2rem;
}

/* ── YA TIENEN DUEÑA ── */
.sold-caption {
  text-align: center; padding: 0 2rem 2rem;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1rem; color: rgba(245,240,232,0.62);
  position: relative; z-index: 1;
}
.sold-wrap {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 3rem 4rem;
}
.sold-viewport { overflow: hidden; }
.sold-strip {
  display: flex; transition: transform 0.4s ease;
}
.sold-strip img {
  flex-shrink: 0; width: 25%; aspect-ratio: 4/5; object-fit: cover;
  filter: saturate(0.75) brightness(0.88); transition: filter 0.35s;
}
.sold-strip img:hover { filter: saturate(1) brightness(1); }
.sold-arrow {
  position: absolute; top: calc(50% - 2rem); transform: translateY(-50%);
  z-index: 10; background: rgba(8,15,15,0.7); border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold-lt); font-size: 1.8rem; width: 40px; height: 70px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; padding: 0; line-height: 1;
}
.sold-arrow-prev { left: 0; }
.sold-arrow-next { right: 0; }
.sold-arrow:hover { background: rgba(8,15,15,0.95); border-color: rgba(201,168,76,0.5); }
@media (max-width: 600px) {
  .sold-strip img { width: 50%; }
  .sold-wrap { padding: 0 2.5rem 3rem; }
}

.pricing-note {
  text-align: center; padding: 0 2rem 1.5rem;
  font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,232,0.62); font-family: 'Jost', sans-serif;
  position: relative; z-index: 1;
}
.pricing-note span { color: var(--teal-glow); }

.detail-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.detail-actions .btn { padding: 0.9rem 1.8rem; font-size: 0.75rem; flex: unset; }

/* ── MEDIA QUERIES ── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr 1fr; gap: 1px; }
  nav { gap: 1.2rem; }
  nav a { font-size: 0.65rem; }
}
