/* ============================================
   COLOR VARIABLES — swap palette here only
   ============================================ */
:root {
  --primary: #0D1F3C;
  --primary-mid: #1a3a6a;
  --accent: #D4A017;
  --accent-light: #FAC775;
  --white: #FFFFFF;
  --bg-alt: #F7F5F0;
  --text-dark: #0D1F3C;
  --text-muted: #5C5C5C;
  --text-blue: #85B7EB;
  --whatsapp: #1DAA61;
  --border: #E0DDD8;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--white);
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 56px; }

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,31,60,0.35);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
header.scrolled {
  background: rgba(13,31,60,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* hamburger */
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ham span { width: 22px; height: 2px; background: var(--white); display: block; transition: transform .25s, opacity .2s; }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 98; }
.drawer-overlay.open { display: block; }
.mobile-drawer { position: fixed; top: 54px; right: 0; width: 260px; height: calc(100vh - 54px); background: var(--primary); border-left: 1px solid var(--primary-mid); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; z-index: 99; }
.mobile-drawer.open { transform: none; }
.mobile-drawer a { padding: 18px 24px; border-bottom: 1px solid var(--primary-mid); color: var(--text-blue); font-size: 16px; font-weight: 600; }
.site-logo {
  display: inline-flex;
  align-items: center;
  width: 260px;
  flex-shrink: 0;
}
.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.header-nav { display: none; } /* hidden mobile, shown desktop */
.header-nav a {
  color: var(--text-blue);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent-light); }
.header-nav a, .header-btns a { white-space: nowrap; }
/* con el link "Catálogo" el menú necesita un poco más de espacio en pantallas medianas */
@media (min-width: 768px) and (max-width: 1180px) {
  .site-logo { width: 190px; }
  .header-inner { gap: 10px; }
  .header-nav a { font-size: 14px; padding: 6px 6px; }
  .btn-call, .btn-wa { padding: 9px 12px; }
}
@media (min-width: 1181px) {
  .site-logo { width: 210px; }
  .header-nav a { padding: 6px 7px; font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 940px) {
  .header-nav a[href="/dona-tu-colchon/"] { display: none; }
}

.header-btns { display: none; } /* hidden mobile — sticky bar handles it */
.btn-call {
  background: var(--accent);
  color: #2a1700;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 6px;
}
.btn-wa {
  background: var(--whatsapp);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 6px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.webp');
  background-size: cover;
  background-position: center center;
  opacity: 0.75;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary) 40%, rgba(13,31,60,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.hero-headline {
  color: var(--white);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 560px;
}
.hero-headline span { color: var(--accent); }
.hero-sub {
  color: var(--text-blue);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 460px;
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: #2a1700;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-align: center;
  min-width: 160px;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-light);
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-align: center;
  min-width: 130px;
}

/* ============================================
   ALMACÉN — image slider
   ============================================ */
.storage-section {
  background: var(--primary);
  padding: 20px 0 28px;
  border-top: 0.5px solid var(--primary-mid);
}
.section-label {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.slider {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  height: 220px;
  background: linear-gradient(135deg, #06152b 0%, #0b2342 100%);
  margin-bottom: 12px;
}
@media (min-width: 641px) {
  .slider { overflow: hidden; }
}
.slide {
  position: absolute;
  inset: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: opacity 0.6s ease;
}
.slide.active { opacity: 1; }
.img-placeholder {
  color: var(--text-blue);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}
.slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-mid);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active { background: var(--accent); }
.storage-caption { color: var(--text-blue); font-size: 12px; text-align: center; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.3s;
  z-index: 10;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.5); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
@media (max-width: 640px) {
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .slider-arrow.prev { left: -8px; }
  .slider-arrow.next { right: -8px; }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar { background: var(--primary); padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
  width: 50%;
  box-sizing: border-box;
}
.trust-icon { width: 40px; height: 40px; margin-bottom: 10px; }
.trust-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) saturate(100%) invert(67%) sepia(61%) saturate(600%) hue-rotate(4deg) brightness(97%); }
.trust-icon svg { width: 100%; height: 100%; }
.trust-val { color: var(--accent); font-size: 15px; font-weight: 800; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.trust-desc { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }

/* ============================================
   SECTIONS SHARED
   ============================================ */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); padding: 40px 0; }
.section-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.about-copy { font-size: 22px; }
/* ============================================
   SERVICIOS
   ============================================ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.servicio-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   MEDIDAS
   ============================================ */
.medidas-eyebrow { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--accent); margin-bottom: 6px; }
.medidas-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }
.medidas-sub::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); flex-shrink: 0; }
.medidas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.medida-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.medida-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.14); }
.medida-img {
  aspect-ratio: 16/9;
  height: auto;
  background: var(--primary-mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.medida-info { background: var(--white); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--accent); }
.medida-name { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.medida-dims { font-size: 13px; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.06em; }
.medida-price { font-size: 20px; color: var(--accent); font-weight: 800; padding-left: 16px; border-left: 1px solid var(--border); }

/* ============================================
   CATÁLOGO (nuevo — se llena desde el panel)
   ============================================ */
.catalogo-section { background: var(--white); padding: 40px 0; }
.cat-filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-filtros::-webkit-scrollbar { display: none; }
.cat-chip { flex-shrink: 0; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-dark); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: var(--accent-light); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prod-card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.09); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.14); }
.prod-img { position: relative; aspect-ratio: 1/1; background: var(--bg-alt); cursor: pointer; overflow: hidden; border: none; padding: 0; display: block; width: 100%; }
.prod-img img { transition: transform .4s; }
.prod-card:hover .prod-img img { transform: scale(1.04); }
.prod-badge { position: absolute; top: 8px; left: 8px; background: var(--primary); color: var(--accent-light); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 4px; }
.prod-badge.nuevo { background: var(--accent); color: #2a1700; }
.prod-count { position: absolute; bottom: 8px; right: 8px; background: rgba(13,31,60,0.75); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.prod-info { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; border-top: 2px solid var(--accent); }
.prod-name { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: 4px; }
.prod-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.03em; }
.prod-price { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 10px; margin-top: auto; }
.prod-price s { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-left: 6px; }
.prod-wa { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--whatsapp); color: var(--white); font-size: 13px; font-weight: 700; padding: 10px 8px; border-radius: 8px; text-align: center; }
.prod-wa svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.cat-vacio { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 30px 0; }

/* modal de producto */
.pmodal { position: fixed; inset: 0; z-index: 300; background: rgba(7,21,42,0.85); display: flex; align-items: flex-end; justify-content: center; }
.pmodal[hidden] { display: none !important; }
.pmodal-box { background: var(--white); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; position: relative; }
.pmodal-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(13,31,60,0.7); color: #fff; font-size: 20px; cursor: pointer; }
.pgal { position: relative; aspect-ratio: 1/1; background: #0b2342; }
.pgal img { object-fit: contain; }
.pgal .slider-arrow.prev { left: 10px; }
.pgal .slider-arrow.next { right: 10px; }
.pgal-thumbs { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; }
.pgal-thumbs button { flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-alt); }
.pgal-thumbs button.active { border-color: var(--accent); }
.pmodal-body { padding: 16px 20px 24px; }
.pmodal-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.pmodal-body .prod-meta { font-size: 14px; }
.pmodal-body .prod-price { font-size: 26px; margin: 6px 0 12px; }
.pmodal-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; white-space: pre-line; margin-bottom: 18px; }
.pmodal-body .prod-wa { font-size: 16px; padding: 15px; }
@media (min-width: 700px) {
  .pmodal { align-items: center; }
  .pmodal-box { border-radius: 16px; }
}

/* ============================================
   MARCAS STRIP
   ============================================ */
.marcas-strip { background: var(--primary); padding: 32px 0; }
.marcas-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.marcas-line { flex: 1; height: 1px; background: var(--accent); opacity: 0.55; }
.marcas-title { color: var(--accent-light); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; white-space: nowrap; text-align: center; }
.marcas-logos { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px 16px; }
.brand-logo-item { display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 8px; padding: 8px 14px; width: 100px; height: 50px; }
.brand-logo-item img { max-height: 30px; max-width: 76px; width: auto; height: auto; object-fit: contain; display: block; }
/* brand typography approximations — replace with real logos via SWAP comments */
.bl-serta { font-size: 20px; font-style: italic; font-weight: 800; color: var(--primary); }
.bl-sealy { font-size: 20px; font-weight: 800; color: var(--primary); }
.bl-beautyrest { font-size: 20px; font-style: italic; font-weight: 300; color: var(--primary); letter-spacing: 0.04em; }
.bl-restonic { font-size: 17px; font-weight: 400; color: var(--primary); letter-spacing: 0.14em; text-transform: uppercase; }
.bl-mlily { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: 0.05em; }

/* ============================================
   TAMBIÉN VENDEMOS
   ============================================ */
.tambien-section { background: var(--bg-alt); padding: 40px 0; }
.tambien-label { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }
.tambien-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tambien-card { background: var(--white); border-radius: 14px; padding: 32px 28px; text-align: center; border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.tambien-card.linked { cursor: pointer; }
.tambien-card.linked:hover { border-color: var(--accent); transform: translateY(-3px); }
.tambien-ver { display: none; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.tambien-card.linked .tambien-ver { display: block; }
.tambien-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--accent); }
.tambien-icon svg { width: 100%; height: 100%; }
.tambien-name { font-size: 19px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.tambien-sub { font-size: 16px; color: var(--text-muted); }

/* ============================================
   SOBRE EL NEGOCIO
   ============================================ */
.sobre-text { margin-bottom: 28px; }
.sobre-text p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.sobre-text p.about-copy { font-size: 16px; }
.sobre-img {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--primary-mid);
}
.prioridad-text { flex: 1; }
.prioridad-text p { color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.06em; }
.prioridad-word { color: var(--accent) !important; font-size: 20px !important; }
.brands-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brand-tag {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  border: 0.5px solid var(--border);
}

/* ============================================
   OWNER QUOTE
   ============================================ */
.quote-section {
  background: var(--white);
  padding: 28px 24px;
}
.quote-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 24px 48px 20px;
  position: relative;
}
.quote-mark {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  color: var(--accent);
}
.quote-text {
  color: var(--text-dark);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}
.quote-author {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   OPINIONES — FB Marketplace social proof
   ============================================ */
.fb-proof { text-align: center; padding: 8px 0 40px; }
.fb-stars { color: #2c72e8; font-size: 22px; letter-spacing: 3px; margin-bottom: 6px; }
.fb-score { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fb-score b { color: var(--text-dark); }
.fb-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #1877F2; flex-shrink: 0; transition: transform .15s; }
.fb-btn:hover { transform: scale(1.1); }
.fb-btn svg { width: 15px; height: 15px; fill: #fff; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.fb-chip { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-dark); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.fb-quotes { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 720px; margin: 0 auto; }
.fb-quote { background: var(--bg-alt); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--text-muted); font-style: italic; line-height: 1.6; }
.fb-quote span { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
@media (min-width: 768px) { .fb-quotes { grid-template-columns: 1fr 1fr; } }
.fb-cta {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 20px;
  background: #1877F2; color: var(--white);
  font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 8px;
}
.fb-cta svg { width: 16px; height: 16px; fill: #fff; }

/* ============================================
   ZONA DE SERVICIO
   ============================================ */
.zona-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; justify-content: center; }
.zona-chip {
  background: var(--primary);
  color: var(--accent-light);
  font-size: 16px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
}
.zona-note { color: var(--text-muted); font-size: 16px; line-height: 1.6; text-align: center; }

/* ============================================
   CONTACTO
   ============================================ */
.contacto-section { background: var(--primary); padding: 60px 0; }
.contacto-inner { max-width: 500px; margin: 0 auto; padding: 0 24px; text-align: center; }
.contacto-title { color: var(--accent-light); font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.contacto-btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.btn-block-gold {
  display: block;
  background: var(--accent);
  color: #2a1700;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.btn-block-wa {
  display: block;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.contacto-details {
  border-top: 0.5px solid var(--primary-mid);
  padding-top: 20px;
  color: var(--text-blue);
  font-size: 16px;
  line-height: 2.2;
}
.pay-strip { background: var(--bg-alt); padding: 28px 24px; }
.pay-inner { max-width: 560px; margin: 0 auto; text-align: center; background: var(--white); border-radius: 12px; padding: 22px 40px; border: 1px solid var(--border); }
.pay-strip-label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted); margin-bottom: 0; padding-bottom: 14px; display: block; }
.pay-strip-label::after { content: ''; display: block; width: 120px; height: 2px; background: var(--accent); margin: 10px auto 0; }
.pay-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.pay-item { display: flex; align-items: center; gap: 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 16px; }
.pay-item img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0); }
.pay-item.zelle img { filter: none; }
.pay-item span { color: var(--text-dark); font-size: 15px; font-weight: 700; }

/* ============================================
   FOOTER
   ============================================ */
footer { background: #07152A; padding: 14px 24px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer span { color: var(--text-blue); font-size: 14px; }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}
.footer-fb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.sticky-cta { display: none; }

/* hero offset for fixed header */
.hero { padding-top: 54px; }

/* ============================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================ */
@media (max-width: 767px) {
  /* sticky bar — mobile only */
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--primary);
    border-top: 1px solid var(--primary-mid);
    padding: 10px 12px;
    gap: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
  }
  .sticky-cta a {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 8px;
    border-radius: 8px;
  }
  .sticky-cta .s-call { background: var(--accent); color: #2a1700; }
  .sticky-cta .s-wa { background: var(--whatsapp); color: var(--white); }
  /* push footer up so sticky bar doesn't overlap */
  body { padding-bottom: 70px; }
  /* hide contacto buttons on mobile — sticky bar covers it */
  .contacto-btns { display: none; }
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
  .footer-contact { gap: 28px; }
  .marcas-header {
    justify-content: center;
    gap: 0;
    margin-bottom: 22px;
  }
  .marcas-line { display: none; }
  .marcas-title {
    max-width: 280px;
    white-space: normal;
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 1.35px;
  }
  /* show hamburger on mobile */
  .site-logo { width: 205px; }
  .ham { display: flex; margin-left: auto; }
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .mobile-drawer { display: none; }
  .header-nav { display: flex; gap: 4px; }
  .header-btns { display: flex; gap: 8px; }
  .trust-grid { flex-wrap: nowrap; }
  .trust-card { width: auto; flex: 1; border-right: 1px solid rgba(255,255,255,0.08); }
  .trust-card:last-child { border-right: none; }
  .servicios-grid { grid-template-columns: repeat(6, 1fr); }
  .medidas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tambien-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .brand-logo-item { width: 150px; height: 72px; padding: 12px 20px; }
  .brand-logo-item img { max-height: 44px; max-width: 110px; }
  .slider { height: 300px; }
  .quote-text { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .prod-info { padding: 14px 16px 16px; }
  .prod-name { font-size: 17px; }
  .prod-wa { font-size: 14px; }
}

/* ============================================
   HERO PILL + CITY ROTATOR
   ============================================ */
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; margin-bottom: 20px; }
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill-text { font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.cr { display: inline; transition: opacity .35s; }
.cr.out { opacity: 0; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.r { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.r.in { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero { min-height: 560px; }
  .hero-headline { font-size: 52px; }
  .hero-sub { font-size: 18px; }
  .section-title { font-size: 28px; }
  .medida-img { aspect-ratio: 16/9; }
  .medida-info { padding: 18px 24px; }
  .medida-name { font-size: 20px; }
  .medida-price { font-size: 22px; }
  .slider { height: 420px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   TIENDA — catálogo, producto, carrito (agregado)
   ===================================================================== */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: var(--white); flex-shrink: 0; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn:hover { color: var(--accent-light); }
.cart-n { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #2a1700; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-n.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
@media (max-width: 767px) { .cart-btn { margin-left: auto; } .ham { margin-left: 0 !important; } }

/* medidas como enlace al catálogo */
a.medida-card { display: block; color: inherit; }
.medida-ver { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; background: var(--primary); color: var(--accent-light); font-size: 14px; font-weight: 700; }
.medida-ver small { color: var(--text-blue); font-weight: 600; font-size: 12px; }

.ver-todo { display: flex; justify-content: center; margin-top: 22px; }
.btn-ver-todo { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--accent-light); font-size: 15px; font-weight: 700; padding: 14px 26px; border-radius: 8px; }

/* páginas internas */
.pagina { padding-top: 54px; min-height: 70vh; }
header.solido { background: rgba(13,31,60,0.97); border-bottom-color: rgba(255,255,255,0.07); }
.pag-head { background: var(--primary); padding: 26px 0 22px; }
.pag-head h1 { color: var(--white); font-size: 28px; font-weight: 800; line-height: 1.15; }
.pag-head h1 span { color: var(--accent); }
.pag-head p { color: var(--text-blue); font-size: 14px; margin-top: 6px; }
.migas { font-size: 13px; color: var(--text-blue); margin-bottom: 8px; }
.migas a:hover { color: var(--accent-light); }
@media (min-width: 1024px) { .pag-head h1 { font-size: 36px; } }

/* barra de filtros del catálogo */
.filtros-bar { position: sticky; top: 54px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.filtros-in { padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.fila-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fila-chips::-webkit-scrollbar { display: none; }
.f-lbl { flex-shrink: 0; align-self: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-right: 2px; }
.f-row2 { display: flex; gap: 8px; }
.f-buscar, .f-orden { font-family: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text-dark); min-width: 0; }
.f-buscar { flex: 1; }
.f-orden { flex-shrink: 0; max-width: 46%; }
.cat-res { font-size: 14px; color: var(--text-muted); margin: 18px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cat-res b { color: var(--text-dark); }
.limpiar { background: none; border: none; color: #9a7300; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }

/* tarjeta de producto (enlace) */
a.prod-card { color: inherit; }
a.prod-name { display: block; color: var(--text-dark); }
a.prod-name:hover { color: #9a7300; }
.prod-img { display: block; }
.prod-agotado { position: absolute; inset: 0; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); }
.prod-acciones { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.btn-add { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #2a1700; border: none; font-family: inherit; font-size: 13px; font-weight: 800; padding: 10px 8px; border-radius: 8px; cursor: pointer; }
.btn-add:disabled { opacity: .6; cursor: default; }
.btn-wa-ico { display: flex; align-items: center; justify-content: center; width: 40px; background: var(--whatsapp); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 800; }
.btn-wa-ico svg { width: 18px; height: 18px; fill: currentColor; }

.vacio-box { grid-column: 1 / -1; text-align: center; background: var(--bg-alt); border-radius: 14px; padding: 34px 20px; }
.vacio-box h3 { font-size: 18px; margin-bottom: 8px; }
.vacio-box p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.vacio-box .btn-block-wa { display: inline-block; padding: 13px 24px; }

/* página de producto */
.prod-layout { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 18px 0 40px; }
@media (min-width: 900px) { .prod-layout { grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 28px; } }
.galeria { position: relative; }
.gal-main { position: relative; aspect-ratio: 1/1; background: var(--bg-alt); border-radius: 14px; overflow: hidden; touch-action: pan-y; }
.gal-main img { object-fit: contain; background: var(--bg-alt); }
.gal-main .slider-arrow.prev { left: 10px; }
.gal-main .slider-arrow.next { right: 10px; }
.gal-main .slider-arrow { background: rgba(13,31,60,0.55); }
.gal-count { position: absolute; bottom: 10px; right: 10px; background: rgba(13,31,60,0.75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex-shrink: 0; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-alt); cursor: pointer; }
.gal-thumbs button.active { border-color: var(--accent); }
.p-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.p-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 4px 9px; border-radius: 4px; background: var(--bg-alt); color: var(--text-dark); border: 1px solid var(--border); }
.p-badge.nuevo { background: var(--accent); border-color: var(--accent); color: #2a1700; }
.p-badge.ok { background: #E5F4EA; border-color: #c9e8d3; color: #157a45; }
.p-badge.poco { background: #FFF4D6; border-color: #f2dd9b; color: #8a6500; }
.p-nombre { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.p-meta { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.p-precio { font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.p-precio s { font-size: 18px; color: var(--text-muted); font-weight: 600; margin-left: 8px; }
.p-ahorro { display: inline-block; font-size: 13px; font-weight: 800; color: #157a45; margin-bottom: 14px; }
.p-cant { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font-size: 14px; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: none; background: var(--bg-alt); font-size: 20px; cursor: pointer; color: var(--text-dark); font-family: inherit; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 42px; text-align: center; font-weight: 800; font-size: 16px; }
.p-botones { display: flex; flex-direction: column; gap: 10px; }
.p-botones .btn-add { font-size: 16px; padding: 15px; }
.btn-comprar { display: block; text-align: center; background: var(--primary); color: var(--accent-light); font-size: 16px; font-weight: 800; padding: 15px; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; }
.p-botones .prod-wa { font-size: 15px; padding: 13px; }
.p-garantias { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.p-garantias div { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.p-garantias b { display: block; color: var(--text-dark); font-size: 13px; }
.p-sec { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 20px; }
.p-sec h2 { font-size: 17px; margin-bottom: 10px; }
.p-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; white-space: pre-line; }
.p-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-specs td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.p-specs td:first-child { color: var(--text-muted); width: 40%; }
.p-specs td:last-child { font-weight: 600; }
.relacionados { background: var(--bg-alt); padding: 32px 0 40px; }
.relacionados h2 { font-size: 20px; margin-bottom: 16px; }
.barra-compra { display: none; }
@media (max-width: 767px) {
  .barra-compra { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; background: var(--white); border-top: 1px solid var(--border); padding: 10px 12px; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,0.12); }
  .barra-compra .bc-precio { font-size: 20px; font-weight: 800; color: var(--accent); white-space: nowrap; }
  .barra-compra .btn-add { flex: 1; font-size: 15px; padding: 13px; }
  body.con-barra .sticky-cta { display: none; }
}

/* carrito */
.carrito-layout { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 22px 0 44px; }
@media (min-width: 900px) { .carrito-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.c-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.c-img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.c-nombre { font-weight: 700; font-size: 15px; line-height: 1.3; }
.c-meta { font-size: 13px; color: var(--text-muted); margin: 2px 0 8px; }
.c-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-fila .stepper button { width: 34px; height: 34px; font-size: 17px; }
.c-fila .stepper span { min-width: 32px; font-size: 14px; }
.c-precio { font-weight: 800; font-size: 16px; }
.c-quitar { background: none; border: none; color: #C0392B; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 0; font-family: inherit; }
.caja { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.caja h2 { font-size: 18px; margin-bottom: 14px; }
.caja + .caja { margin-top: 14px; }
.tot { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; color: var(--text-muted); }
.tot.grande { font-size: 20px; font-weight: 800; color: var(--text-dark); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }
.form-c { display: flex; flex-direction: column; gap: 12px; }
.form-c label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.form-c input, .form-c textarea, .form-c select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; font-family: inherit; color: var(--text-dark); background: var(--white); }
.form-c input:focus, .form-c textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,160,23,0.18); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opciones { display: flex; flex-direction: column; gap: 8px; }
.opcion { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 14px; cursor: pointer; font-weight: 400 !important; }
.opcion input { width: 20px !important; height: 20px; margin-top: 1px; accent-color: var(--primary); flex-shrink: 0; }
.opcion b { display: block; font-size: 15px; }
.opcion small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.opcion:has(input:checked) { border-color: var(--primary); background: #f3f6fb; }
.btn-pedido { width: 100%; background: var(--accent); color: #2a1700; border: none; font-family: inherit; font-size: 17px; font-weight: 800; padding: 16px; border-radius: 8px; cursor: pointer; }
.btn-pedido:disabled { opacity: .6; cursor: default; }
.aviso { font-size: 13px; color: var(--text-muted); line-height: 1.5; text-align: center; }
.error-box { background: #FBEAEA; color: #8f2318; border-radius: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.ok-box { text-align: center; padding: 40px 0 50px; max-width: 560px; margin: 0 auto; }
.ok-check { width: 76px; height: 76px; border-radius: 50%; background: var(--whatsapp); color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.ok-box h1 { font-size: 26px; margin-bottom: 8px; }
.ok-box .num { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-weight: 800; letter-spacing: .05em; margin: 6px 0 16px; }
.ok-box p { color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

/* aviso flotante */
.toast-t { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 400; background: var(--primary); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 24px); }
.toast-t a { color: var(--accent-light); font-weight: 800; white-space: nowrap; }
@media (min-width: 768px) { .toast-t { bottom: 28px; } }
a.c-nombre { display: block; color: inherit; }

/* Footer pegado abajo en páginas internas cortas (catálogo vacío, carrito…) */
body:has(> main.pagina) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body:has(> main.pagina) > main.pagina {
  flex: 1 0 auto;
}

/* Tablet (768–1023): menú en hamburguesa para que quepan logo, botones y carrito */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-nav { display: none !important; }
  .ham { display: flex; }
  .mobile-drawer { display: flex; }
  .header-btns { margin-left: auto; }
}
