/*
 * pdp.css — Estilos transversales para todas las páginas de producto Svetlana
 * Master template: grifo-cocina-pro-360 (GSF4-PRO)
 * Importar en cada PDP antes del <style> de página específica.
 */

/* ── Fuentes self-hosted (PDPs) ──────────────────────────────────────────── */
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:700; font-display:swap; src:url('/assets/fonts/jetbrains-mono-700.woff2') format('woff2'); }

/* ── Reset base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  background: #050505;
  color: #CCCCCC;
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --gold:       #D4AF37;
  --gold-light: #E8C84A;
  --gold-dim:   rgba(212,175,55,0.18);
  --red-urg:    #F87171;
  --bg-0:       #050505;
  --bg-1:       #080808;
  --bg-2:       #0D0D0D;
  --border-dim: rgba(255,255,255,0.06);
}

/* ════════════════════════════════════════════════════════════════════════════
   URGENCY BAR — barra fija top:0
════════════════════════════════════════════════════════════════════════════ */
#urgency-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 102;
  background: #1A0800;
  border-bottom: 1px solid rgba(248, 113, 113, 0.25);
  padding: 10px 20px;
}

/* Ciudad — se oculta en móvil muy pequeño para evitar wrap */
.ub-city { display: none; }
@media (min-width: 480px) { .ub-city { display: inline; } }

/* ════════════════════════════════════════════════════════════════════════════
   HEADER GLASSMORPHISM — siempre debajo de la urgency bar
════════════════════════════════════════════════════════════════════════════ */
#glassheader {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.4s, border-color 0.4s;
}
#glassheader.scrolled {
  background: rgba(0, 0, 0, 0.96);
  border-color: rgba(212, 175, 55, 0.18);
}

/* Breadcrumb responsive */
.breadcrumb-nav { display: none; }
@media (min-width: 640px) {
  .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #555;
  }
}
.header-price { display: none; }
@media (min-width: 480px) { .header-price { display: block; } }

/* ════════════════════════════════════════════════════════════════════════════
   HERO WRAP — padding para urgency bar + header (40 + 58 ≈ 98px)
════════════════════════════════════════════════════════════════════════════ */
.hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  padding-top: 98px;
}
.hero-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    transparent 28%,
    rgba(0,0,0,0.5) 65%,
    rgba(5,5,5,1) 100%
  );
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════════════════════════ */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.sr.on { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILS
════════════════════════════════════════════════════════════════════════════ */
.gold-text {
  background: linear-gradient(135deg, #D4AF37 0%, #F0D060 45%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.white-headline { color: #FFFFFF; }

.sec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   NOISE GRAIN TEXTURE
════════════════════════════════════════════════════════════════════════════ */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ════════════════════════════════════════════════════════════════════════════
   PRIMARY CTA BUTTON
════════════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(
    90deg,
    #C9A227 0%, #E8C84A 40%, #F0D060 55%, #E8C84A 70%, #C9A227 100%
  );
  background-size: 200% auto;
  color: #050505;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  animation: shimmer-btn 3s linear infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.45);
  animation-play-state: paused;
}
@keyframes shimmer-btn {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@media (max-width: 520px) {
  .btn-primary { width: 100%; padding: 16px 20px; font-size: 0.82rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   WA STICKY BUTTON — flotante dorado (master: GSF4-PRO)
════════════════════════════════════════════════════════════════════════════ */
.wa-sticky {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #D4AF37 0%, #E8C84A 100%);
  color: #050505;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 16px 28px;
  min-height: 52px;         /* touch target mínimo 48px WCAG */
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
  animation: wa-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.wa-sticky:hover {
  transform: translateX(-50%) scale(1.05);
  filter: brightness(1.08);
  animation-play-state: paused;
}
@keyframes wa-pulse {
  0%,  100% { box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45); }
  50%        { box-shadow: 0 8px 56px rgba(212, 175, 55, 0.75); }
}
/* Texto corto/largo responsive */
.wa-long { display: none; }
.wa-short { display: inline; }
@media (min-width: 430px) {
  .wa-long  { display: inline; }
  .wa-short { display: none; }
}
/* Más espacio del borde inferior en mobile */
@media (max-width: 639px) {
  .wa-sticky {
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
  }
}
/* Hero product image — visible en mobile */
@media (max-width: 639px) {
  .sv-hero-product-img {
    display: block !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    opacity: 0.38 !important;
    object-position: center top !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   VIDEO REAL — marco dorado (sv-video-frame)
════════════════════════════════════════════════════════════════════════════ */
.sv-video-frame {
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(212,175,55,0.08),
    rgba(212,175,55,0.03),
    rgba(212,175,55,0.08)
  );
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 28px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.06);
}
.sv-video-frame video {
  width: 100%;
  border-radius: 20px;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
/* Badge de activar sonido */
.sv-video-sound-hint {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.65rem;
  color: #CCC;
  letter-spacing: 0.08em;
}
/* Badges superpuestos en video — ocultos en móvil */
.video-badge-hide { display: block; }
@media (max-width: 600px) { .video-badge-hide { display: none; } }

/* ════════════════════════════════════════════════════════════════════════════
   GALERÍA INTERACTIVA — viewer principal + thumbnails
════════════════════════════════════════════════════════════════════════════ */
.sv-gallery-viewer {
  position: relative;
  max-width: 520px;
  margin: 0 auto 20px;
}
.sv-gallery-viewer img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  border: 1px solid #1E1E1E;
}
.sv-gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
/* Placeholder para fotos pendientes */
.gthumb-ph {
  width: 80px;
  height: 107px;
  border-radius: 8px;
  border: 1px dashed #1A1A1A;
  background: #080808;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   MEDIA PLACEHOLDER (para fotos pendientes)
════════════════════════════════════════════════════════════════════════════ */
.media-box {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0D0D0D;
  border: 2px dashed #1E1E1E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 32px 24px;
  color: #444;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════════════════
   LAYOUT HELPERS
════════════════════════════════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .two-col.reverse .col-media { order: 2; }
  .two-col.reverse .col-copy  { order: 1; }
}
.dual-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .dual-cards { grid-template-columns: 1fr 1fr; } }

/* Stats strip */
.stats-inner { display: grid; grid-template-columns: 1fr 1fr; }
.stat-cell {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid #181818;
  border-bottom: 1px solid #181818;
}
.stat-cell:nth-child(2),
.stat-cell:nth-child(4) { border-right: none; }
.stat-cell:nth-child(3),
.stat-cell:nth-child(4) { border-bottom: none; }
@media (min-width: 500px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
  .stat-cell { border-bottom: none; }
  .stat-cell:nth-child(2),
  .stat-cell:nth-child(3) { border-right: 1px solid #181818; }
  .stat-cell:last-child { border-right: none; }
}
.stat-num {
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  color: #D4AF37;
}

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #0A0A0A;
  border: 1px solid #181818;
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  min-width: 140px;
  flex: 1;
}

/* Feature card */
.feat-card {
  background: linear-gradient(160deg, #0E0E0E, #0A0A0A);
  border: 1px solid #1A1A1A;
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feat-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(212, 175, 55, 0.06);
}

/* Icon circle */
.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Spec row */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #141414;
}
.spec-row:last-child { border-bottom: none; }
@media (max-width: 380px) {
  .spec-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .spec-row span:last-child { text-align: left !important; font-size: 0.75rem; }
}

/* Real talk cards */
.real-card { border-radius: 20px; padding: 36px 32px; }
.real-card.bad  { background: linear-gradient(145deg,#120808,#0D0505); border: 1px solid #2A1010; }
.real-card.good { background: linear-gradient(145deg,#070A07,#050805); border: 1px solid #0F2010; }
.real-talk-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .real-talk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .real-card { padding: 24px 20px; } }

/* Editorial quote */
.editorial-quote {
  font-size: clamp(1.4rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Badge dark */
.badge-black {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px; padding: 5px 14px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #E0E0E0;
}

/* ════════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
════════════════════════════════════════════════════════════════════════════ */
.faq-section { border-top: 1px solid #111; background: #050505; }
.faq-inner { max-width: 800px; margin: 0 auto; padding: clamp(60px,8vw,100px) clamp(16px,4vw,40px); }
.faq-list  { display: flex; flex-direction: column; }
.faq-item  { border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.faq-trigger {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  padding: 20px 0; background: transparent; border: none;
  cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.faq-q {
  font-size: clamp(0.9rem, 2.5vw, 1.02rem);
  font-weight: 700; color: #AAAAAA; line-height: 1.45;
  transition: color 0.2s; flex: 1;
}
.faq-trigger:hover .faq-q, .faq-item.open .faq-q { color: #FFFFFF; }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px;
  border: 1px solid rgba(212,175,55,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.25rem; line-height: 1; font-weight: 300;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s, border-color 0.3s;
  user-select: none;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.5);
}
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1); }
.faq-item.open .faq-panel { max-height: 400px; }
.faq-body {
  font-size: 0.93rem; line-height: 1.85; color: #777;
  padding: 4px 0 24px; margin: 0;
}
.faq-body strong { color: var(--gold); font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE VIDEO — ocultar video adicional en móvil para ahorrar datos
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) { .sv-video-mobile-hide { display: none !important; } }

/* ════════════════════════════════════════════════════════════════════════════
   GALERÍA — thumbnail real (imagen cargada, no placeholder)
════════════════════════════════════════════════════════════════════════════ */
.gthumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #1E1E1E;
  transition: border-color .2s;
  flex-shrink: 0;
}
.gthumb:hover { border-color: #888; }

/* ════════════════════════════════════════════════════════════════════════════
   PRICE ROW — fila de tabla comparativa de precios
════════════════════════════════════════════════════════════════════════════ */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #141414;
  gap: 12px;
  flex-wrap: wrap;
}
.price-row:last-child { border-bottom: none; }
.price-row.highlight {
  background: rgba(212,175,55,0.05);
  border-left: 3px solid #D4AF37;
}
