/* ============================================================
   A TU MEMORIA — Hoja de estilos de la tienda
   Paleta: navy profundo + dorado · Montserrat
   ============================================================ */

:root {
  --navy-950: #060f1d;
  --navy-900: #0c1a2e;
  --navy-800: #12233c;
  --navy-700: #1a3050;
  --navy-600: #24406a;
  --gold: #c9a24b;
  --gold-soft: #e8d5a8;
  --card: #ffffff;
  --card-navy: rgba(255,255,255,.04);
  --text: #d9e2ec;
  --text-dark: #1c2b3a;
  --muted: #8fa3b8;
  --border: rgba(255,255,255,.1);
  --border-light: #dde4ec;
  --shadow: 0 4px 16px rgba(0,0,0,.25);
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-950);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; }

/* ============ HEADER ============ */
.store-header {
  background: rgba(6,15,29,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.2px; }
.brand span { color: var(--gold); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: #b9c6d6; padding: 6px 2px; border-bottom: 2px solid transparent; transition: all .15s; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.cart-widget { position: relative; font-size: 22px; cursor: pointer; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--gold); color: #241a05; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ============ 1. HERO ============ */
.hero-block {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(6,15,29,.94) 0%,
    rgba(6,15,29,.78) 38%,
    rgba(6,15,29,.3) 72%,
    rgba(6,15,29,.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 70px 24px 70px 6%;
}
.hero-eyebrow-block {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #c7d3e0;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #b8912f);
  color: #241a05;
  font-weight: 700;
  padding: 16px 38px;
  border-radius: 12px;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(201,162,75,.35);
  transition: transform .18s, box-shadow .18s;
}
.btn-hero-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(201,162,75,.5); }
.btn-hero-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
  transition: all .18s;
}
.btn-hero-ghost:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(201,162,75,.08); }

/* ============ 2. RESEÑAS ============ */
.reviews-block {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 40px auto 0;
}
.review-card {
  background: var(--card-navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
}
.review-stars { color: var(--gold); font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.review-text {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 18px;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: var(--gold);
  border: 1.5px solid rgba(201,162,75,.35);
}
.review-name { color: #fff; font-size: 13.5px; font-weight: 600; }
.review-role { color: var(--muted); font-size: 12px; }

/* ============ 3. CARRUSEL — ¿Qué es un memorial? ============ */
.how-block {
  padding: 80px 24px;
  background: var(--navy-950);
}
.how-carousel {
  position: relative;
  max-width: 720px;
  margin: 48px auto 0;
}
.how-slide {
  display: none;
  animation: slideFade .45s ease;
}
.how-slide.active { display: block; }
@keyframes slideFade {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.how-slide img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  display: block;
}
.how-slide-caption {
  text-align: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-top: 22px;
  line-height: 1.6;
  padding: 0 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(6,15,29,.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  z-index: 5;
}
.how-nav:hover { background: rgba(201,162,75,.35); border-color: var(--gold); }
.how-prev { left: -27px; }
.how-next { right: -27px; }
.how-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.how-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .18s;
  padding: 0;
}
.how-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(201,162,75,.5);
}
.how-counter {
  text-align: center;
  color: #5a6b7d;
  font-size: 12.5px;
  margin-top: 14px;
  letter-spacing: 1px;
}

/* ============ 4. DESTACADOS ============ */
.featured-block {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-950));
}
.featured-block .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 260px));
  place-content: center;
  max-width: 1080px;
  margin: 44px auto 0;
}

/* ---- Tarjetas de producto (navy) ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card {
  background: var(--card-navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: block;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  border-color: rgba(201,162,75,.4);
}
.card-img { position: relative; aspect-ratio: 1/1; background: var(--navy-900); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-img { display: flex; align-items: center; justify-content: center; font-size: 44px; width: 100%; height: 100%; opacity: .5; }
.no-img.big { font-size: 90px; }
.discount-badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #241a05; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 15.5px; line-height: 1.35; margin-bottom: 8px; color: #fff; }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.price-now { font-weight: 800; color: var(--gold); font-size: 17px; }
.price-now.big { font-size: 26px; }
.empty-store { color: var(--muted); text-align: center; padding: 40px 0; font-size: 15px; }

/* ============ 5. ALIANZAS ============ */
.partners-block {
  padding: 70px 24px;
  background: var(--navy-950);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 36px auto 0;
  align-items: center;
}
.partner-logo {
  filter: grayscale(1) brightness(1.6) opacity(.55);
  max-height: 64px;
  max-width: 170px;
  object-fit: contain;
  transition: all .2s;
}
.partner-logo:hover { filter: none; opacity: 1; }

/* ---- Títulos de bloque ---- */
.block-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -.3px;
}
.block-sub { color: var(--muted); text-align: center; font-size: 15px; margin-top: 10px; }
.block-title .gold { color: var(--gold); }

/* ============ SECCIONES INTERNAS (catálogo, ficha) ============ */
.section { padding: 36px 20px 10px; }
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title::before, .section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,.4), transparent);
}
.page-title { font-size: 30px; margin: 12px 0 16px; color: #fff; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-top: 18px; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { margin: 0 6px; }

/* ---- Chips de categorías ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cat-chip {
  background: var(--card-navy);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all .15s;
}
.cat-chip:hover { border-color: var(--gold); }
.cat-chip.active { background: var(--gold); color: #241a05; border-color: var(--gold); font-weight: 700; }
.chip-count { background: rgba(255,255,255,.12); border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

/* ============ FICHA DE PRODUCTO ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 14px 0 30px; }
.main-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy-900);
  aspect-ratio: 1/1;
  cursor: zoom-in;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-item { width: 66px; height: 66px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: .75; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-item.active, .thumb-item:hover { border-color: var(--gold); opacity: 1; }
.detail-info h1 { font-size: 28px; margin-bottom: 14px; color: #fff; }
.detail-price { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-desc { color: var(--text); font-size: 15px; margin-bottom: 16px; white-space: pre-line; }
.detail-meta p { font-size: 14px; margin-bottom: 6px; }

.color-picker { margin: 18px 0; }
.color-picker label, .qty-row label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin-bottom: 8px;
}
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt {
  border: 1.5px solid var(--border);
  background: var(--card-navy);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.color-opt:hover { border-color: var(--gold); }
.color-opt.active { background: var(--gold); color: #241a05; border-color: var(--gold); font-weight: 700; }

.qty-row { margin: 18px 0; }
.qty-row input {
  width: 90px; padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px;
  background: var(--card-navy); color: #fff;
}

.btn-add {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), #b8912f);
  color: #241a05;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-add:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,162,75,.4); }
.btn-add.added { background: #1e8e5a; color: #fff; }
.detail-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ============ LIGHTBOX ============ */
#store-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,15,29,.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
  backdrop-filter: blur(4px);
}
#store-lightbox.open { display: flex; }
#store-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
#store-lightbox #store-lb-close {
  position: absolute;
  top: 18px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s;
}
#store-lightbox #store-lb-close:hover { background: rgba(201,162,75,.3); border-color: var(--gold); }
#store-lightbox #store-lb-prev,
#store-lightbox #store-lb-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%);
  right: auto !important;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}
#store-lightbox #store-lb-prev { left: 26px !important; }
#store-lightbox #store-lb-next { right: 26px !important; }
#store-lightbox #store-lb-prev:hover,
#store-lightbox #store-lb-next:hover {
  background: rgba(201,162,75,.35);
  border-color: var(--gold);
}
#store-lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  color: var(--text);
  margin-top: 50px;
  padding: 40px 0 30px;
  text-align: center;
}
.footer-brand { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-brand span { color: var(--gold); }
.footer-slogan { color: var(--gold); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-contact { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; margin-bottom: 14px; }
.footer-copy { font-size: 12px; color: #5a6b7d; }

/* ============ 404 ============ */
.notfound { text-align: center; padding: 80px 20px; }
.nf-emoji { font-size: 60px; margin-bottom: 16px; }
.notfound h1 { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .main-nav { order: 3; width: 100%; justify-content: center; padding-bottom: 4px; }
}
@media (max-width: 640px) {
  .hero-block { min-height: 74vh; }
  .hero-content { padding: 40px 22px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; }
  .how-prev { left: 8px; }
  .how-next { right: 8px; }
  .how-nav { width: 44px; height: 44px; }
  .how-slide-caption { font-size: 14.5px; min-height: 70px; }
}