:root {
  --navy: #0B1E4A;
  --navy-dark: #071330;
  --navy-light: #162E6E;
  --red: #E10600;
  --red-hover: #BF0500;
  --red-d: #A80000;
  --red-light: #FFECEB;
  --ink: #101828;
  --slate-700: #344054;
  --slate-600: #475467;
  --slate-400: #98A2B3;
  --bg: #F8F9FC;
  --white: #FFFFFF;
  --line: #E4E7EC;
  --wa: #25D366;
  --wa-hover: #1aab52;
  --shadow-xs: 0 1px 2px rgba(16,24,40,0.05);
  --shadow-sm: 0 2px 8px rgba(16,24,40,0.07);
  --shadow-md: 0 8px 24px rgba(16,24,40,0.10);
  --radius: 10px;
  --radius-lg: 16px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
button, input, textarea{ font: inherit; }
:focus-visible{ outline: 3px solid var(--red); outline-offset: 2px; }

/* ---- HEADER ---- */
.top{
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  height: 88px;
}
.top-inner{
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; justify-content: space-between; align-items: center;
}
.brand{ display: flex; align-items: center; text-decoration: none; }
.brand img{ height: 80px; }

.top-actions{ display: flex; align-items: center; gap: 12px; }
.top-social{ display: flex; align-items: center; gap: 8px; }
.top-social-link{
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--navy);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  text-decoration: none;
}
.top-social-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.top-social-link.fb:hover{ background: #1877F2; color: #fff; border-color: #1877F2; }
.top-social-link.ig:hover{ background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); color: #fff; border-color: transparent; }
.top-social-link.wa{
  width: auto; padding: 0 12px; height: 36px; border-radius: 999px;
  background: #E8F8EE; color: #128C7E; border-color: #C8E6C9;
  font-weight: 700; font-size: 0.8rem; gap: 6px;
}
.top-social-link.wa:hover{ background: #25D366; color: #fff; border-color: #25D366; }
@media (max-width: 650px){
  .top-social .top-wa-text{ display: none; }
  .top-social-link.wa{ width: 36px; padding: 0; }
}
@media (max-width: 480px){
  .top-social{ display: none; }
}

.cart-btn{
  background: var(--navy); color: #fff; border: 0;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  display: flex; gap: 10px; align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.cart-btn:hover{ background: var(--navy-dark); box-shadow: 0 4px 12px rgba(11,30,74,0.3); }
.cart-btn .count{
  background: var(--red); border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}

/* ---- HERO ---- */
.hero{
  background:
    radial-gradient(circle at 86% 18%, rgba(225,6,0,0.22) 0%, transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(30,64,175,0.42) 0%, transparent 48%),
    linear-gradient(135deg, #061029 0%, #0B1E4A 58%, #0A173B 100%);
  background-color: #071330;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 28px 24px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

/* Subtle modern grid overlay */
.hero-bg-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 65% 45%, black 25%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 65% 45%, black 25%, transparent 82%);
  pointer-events: none;
}

.hero-glow{
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,6,0,0.22) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-inner{
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
}

/* Hero Left: Tag / Beacon */
.hero-tag{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #E0E8F7;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  letter-spacing: 0.2px;
}

.hero-beacon{
  position: relative;
  display: inline-flex;
  width: 9px;
  height: 9px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.beacon-dot{
  width: 7px;
  height: 7px;
  background: #FF3B30;
  border-radius: 50%;
  box-shadow: 0 0 8px #FF3B30;
}
.beacon-pulse{
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255,59,48,0.65);
  animation: beacon-wave 2s infinite ease-out;
}
@keyframes beacon-wave{
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Hero Typography */
.hero-text h1{
  font-weight: 800;
  font-size: clamp(1.65rem, 2.75vw, 2.3rem);
  line-height: 1.14;
  margin-bottom: 10px;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  max-width: 580px;
}
.hero-text h1 span{
  color: #FF5C57;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 24px rgba(225,6,0,0.35);
}
.hero-desc{
  max-width: 530px;
  color: #CBD5E8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Hero Actions */
.hero-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero-primary{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red) 0%, #B80500 100%);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(225,6,0,0.38), 0 0 0 1px rgba(255,255,255,0.16) inset;
}
.btn-hero-primary:hover{
  background: linear-gradient(135deg, #FF1A14 0%, #D80600 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(225,6,0,0.5);
  color: #fff;
}

.btn-hero-wa{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,211,102,0.12);
  color: #38E37E;
  border: 1px solid rgba(37,211,102,0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.22s ease;
}
.btn-hero-wa:hover{
  background: #25D366;
  color: #071330;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

.hero-quick-meta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #9FB2D4;
  padding-left: 4px;
}
.hero-quick-meta svg{ color: #FF6B6B; flex-shrink: 0; }

/* Hero Right: Compact Bento Panel */
.hero-visual{
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.hero-card{
  width: 100%;
  max-width: 470px;
  background: rgba(10,25,64,0.68);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.hero-card-topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.hero-card-title{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero-card-title .hero-card-heading,
.hero-card-title h3{
  font-size: 0.94rem;
  font-weight: 800;
  color: #FFFFFF;
}
.hero-card-title span{
  font-size: 0.7rem;
  color: #9FB2D4;
}

.live-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38E37E;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.28);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-dot{
  width: 6px;
  height: 6px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 6px #25D366;
}

/* 2x2 Bento Category Grid */
.hero-cat-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.hero-cat-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px;
  padding: 9px 10px;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  min-width: 0;
}
.hero-cat-btn:hover{
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.cat-pill-icon{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.hero-cat-btn:hover .cat-pill-icon{
  transform: scale(1.07);
}
.cat-pill-icon.red{ background: rgba(225,6,0,0.2); color: #FF6B6B; }
.cat-pill-icon.blue{ background: rgba(59,130,246,0.22); color: #7CA1FF; }
.cat-pill-icon.orange{ background: rgba(245,158,11,0.2); color: #FBBF24; }
.cat-pill-icon.amber{ background: rgba(239,68,68,0.2); color: #FCA5A5; }

.hero-cat-text{
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  line-height: 1.25;
}
.hero-cat-text strong{
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-cat-text span{
  font-size: 0.67rem;
  color: #9FB2D4;
}
.cat-arrow{
  color: #6B7C9E;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.hero-cat-btn:hover .cat-arrow{
  color: #FFFFFF;
  transform: translateX(2px);
}

/* Compact Card Footer */
.hero-card-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.24);
  border-radius: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-corp-note{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #CBD5E8;
  min-width: 0;
}
.hero-corp-note svg{ color: #FF6B6B; flex-shrink: 0; }
.hero-total-badge{
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-red{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  text-decoration: none; padding: 14px 28px;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(225,6,0,0.4);
}
.btn-red:hover{
  background: var(--red-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225,6,0,0.5);
}

/* ---- TRUST BAR ---- */
.trust-bar{
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}
.trust-inner{
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  gap: 24px 40px; flex-wrap: wrap;
}
.trust-item{
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--slate-700);
}
.trust-item svg{ color: var(--red); flex-shrink: 0; }

/* ---- CATÁLOGO ---- */
.wrap{
  max-width: 1100px; margin: 0 auto;
  padding: 42px 24px 70px;
}

.section-label{
  display: inline-block;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 6px;
}
.section-title{
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--navy); letter-spacing: -0.02em; margin-bottom: 28px;
}

.tools{ margin-bottom: 28px; display: grid; gap: 16px; }
#q{
  width: 100%; padding: 13px 16px 13px 44px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font-size: 0.95rem; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#q:focus{ border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,30,74,0.1); }

.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  border: 1px solid var(--line); background: var(--white);
  color: var(--slate-700); padding: 7px 16px;
  border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.84rem;
  transition: all 0.2s;
}
.chip:hover{ border-color: var(--navy); color: var(--navy); }
.chip.on{ background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- GRID DE PRODUCTOS ---- */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 22px;
}

.card{
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: var(--shadow-xs);
}
.card[hidden]{
  display: none !important;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D0D5DD;
}

.thumb{
  aspect-ratio: 4/3; background: #EEF2F8;
  display: grid; place-items: center;
  overflow: hidden; position: relative;
}
.thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .thumb img{ transform: scale(1.04); }

.thumb-placeholder{
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: #B4BFCF; padding: 20px;
}
.thumb-placeholder svg{ width: 48px; height: 48px; }
.thumb-placeholder span{ font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

.body{
  padding: 18px; display: flex; flex-direction: column;
  gap: 6px; flex: 1;
}
.cat{
  font-size: 0.72rem; color: var(--red); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.body h3{
  margin: 0; font-size: 1rem; line-height: 1.35;
  color: var(--navy); font-weight: 700;
}
.body p{
  margin: 0; font-size: 0.85rem; color: var(--slate-600);
  flex: 1; line-height: 1.55;
}
.row{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; gap: 10px;
}
.price{
  font-size: 1.2rem; color: var(--navy); font-weight: 800;
  letter-spacing: -0.02em;
}

.add{
  background: var(--red); color: #fff; border: 0;
  padding: 9px 18px; border-radius: 7px;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.add:hover{ background: var(--red-hover); transform: scale(1.03); }
.add.ok{ background: var(--wa); }
.add.ok:hover{ background: var(--wa-hover); }

.empty{
  text-align: center; color: var(--slate-600);
  padding: 50px 0; font-size: 1rem;
  grid-column: 1 / -1;
}

/* ---- INFO STRIP ---- */
.info-strip{
  background: var(--navy); color: #fff;
  padding: 48px 24px;
}
.info-inner{
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-item svg{ margin: 0 auto 10px; color: #FF6B6B; }
.info-item h3,
.info-item h4{ font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.info-item p{ font-size: 0.85rem; color: #9EB3D4; }

/* ---- FAQ ---- */
.faq-section{
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}
.faq-inner{
  max-width: 1100px;
  margin: 0 auto;
}
.faq-head .section-title{
  margin-bottom: 20px;
}
.faq-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.faq-item{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open]{
  border-color: #CBD5E1;
  box-shadow: var(--shadow-xs);
}
.faq-item summary{
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after{
  content: "−";
}
.faq-item p{
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--slate-600);
}

/* ---- FOOTER ---- */
.foot{
  background: var(--navy-dark); color: #9EB3D4;
  padding: 32px 24px;
}
.foot-inner{
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 20px;
}
.foot-brand{ display: flex; align-items: center; gap: 12px; }
.foot-brand img{
  height: 56px; background: var(--white);
  padding: 6px 14px; border-radius: 8px;
}
.foot-info p{ font-size: 0.84rem; margin-bottom: 4px; }
.foot-info a{ color: #fff; text-decoration: none; }
.foot-info a:hover{ text-decoration: underline; }
.foot-copy{ font-size: 0.78rem; color: #5A7097; }

.foot-social{
  display: flex; flex-direction: column; gap: 8px;
}
.foot-social-title{
  font-size: 0.8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.6px;
}
.foot-social-links{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.foot-social-btn{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s ease;
}
.foot-social-btn:hover{
  transform: translateY(-2px);
  color: #fff;
}
.foot-social-btn.fb:hover{ background: #1877F2; border-color: #1877F2; }
.foot-social-btn.ig:hover{ background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); border-color: transparent; }
.foot-social-btn.wa:hover{ background: #25D366; border-color: #25D366; }

/* ---- FLOATING WHATSAPP BUTTON ---- */
.floating-wa{
  position: fixed; bottom: 24px; right: 24px;
  background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  z-index: 25; text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.floating-wa:hover{
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,211,102,0.6);
  color: #fff;
}
.floating-wa-label{
  display: none;
}
@media (min-width: 900px){
  .floating-wa{
    width: auto; height: 46px; border-radius: 999px;
    padding: 0 16px 0 12px; gap: 8px;
  }
  .floating-wa-label{
    display: inline; font-weight: 700; font-size: 0.85rem;
  }
}

.admin-link{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: #5A7097; text-decoration: none;
  transition: color 0.2s;
}
.admin-link:hover{ color: #9EB3D4; }

/* ---- DRAWER / CART ---- */
.overlay{
  position: fixed; inset: 0;
  background: rgba(11,30,74,0.65); backdrop-filter: blur(3px);
  z-index: 30;
}
.drawer{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 100%); background: var(--white); z-index: 40;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-md);
}
.drawer.open{ transform: none; }

.drawer-head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; background: var(--navy); color: #fff;
}
.drawer-head h2{ margin: 0; font-size: 1.1rem; font-weight: 700; }
.drawer-head button{
  background: none; border: 0; color: #fff;
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  opacity: 0.75;
}
.drawer-head button:hover{ opacity: 1; }

.items{ flex: 1; overflow: auto; padding: 8px 20px; }

.item{
  display: grid; grid-template-columns: 1fr auto;
  gap: 2px 10px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.item b{ font-size: 0.9rem; color: var(--navy); font-weight: 700; }
.item .sub{ font-size: 0.82rem; color: var(--slate-600); }

.qty{
  display: flex; align-items: center; gap: 8px;
  grid-column: 1 / -1; margin-top: 6px;
}
.qty button{
  width: 30px; height: 30px;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 6px; cursor: pointer; font-weight: 700;
  transition: border-color 0.15s;
}
.qty button:hover{ border-color: var(--navy); }
.qty .del{
  margin-left: auto; width: auto; padding: 0 12px;
  border-color: #FECDCA; color: var(--red); font-weight: 600; font-size: 0.8rem;
}
.qty .del:hover{ border-color: var(--red); background: var(--red-light); }
.none{ color: var(--slate-600); padding: 36px 0; text-align: center; font-size: 0.95rem; }

.drawer-foot{
  padding: 16px 20px; border-top: 1px solid var(--line);
  display: grid; gap: 10px; background: var(--bg);
}
.total{
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
}
.drawer-foot label{
  display: grid; gap: 4px;
  font-size: 0.8rem; font-weight: 600; color: var(--slate-700);
}
.drawer-foot input,
.drawer-foot textarea{
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px; resize: none;
  outline: none; transition: border-color 0.2s;
}
.drawer-foot input:focus,
.drawer-foot textarea:focus{ border-color: var(--navy); }

.btn-wa{
  background: var(--wa); color: #fff; border: 0;
  padding: 14px; border-radius: 8px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
.btn-wa:hover{ background: var(--wa-hover); }
.btn-wa:disabled{ opacity: 0.45; cursor: not-allowed; }

.link{ background: none; border: 0; color: var(--red); cursor: pointer; font-size: 0.84rem; text-decoration: underline; }
.err{ color: var(--red); font-size: 0.8rem; min-height: 1em; }

/* ---- RESPONSIVE ---- */

/* ---- Tablet ---- */
@media (max-width: 960px){
  .hero{ padding: 24px 20px 28px; }
  .hero-inner{ grid-template-columns: 1fr; gap: 20px; }
  .hero-text h1{ max-width: 100%; }
  .hero-desc{ max-width: 100%; }
  .hero-visual{ justify-content: flex-start; }
  .hero-card{ max-width: 100%; }
}

/* ---- Small tablet / large phone ---- */
@media (max-width: 700px){
  .info-inner{ grid-template-columns: 1fr 1fr; }
  .top{ padding: 0 12px; height: 68px; }
  .brand img{ height: 54px; }
  .wrap{ padding: 32px 16px 60px; }

  /* Footer stacks on smaller screens */
  .foot-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ---- Phone ---- */
@media (max-width: 580px){
  /* Global overflow guard */
  html, body{ overflow-x: hidden; }

  /* Header */
  .top{ height: 60px; padding: 0 10px; }
  .brand img{ height: 44px; }
  .cart-btn{
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .cart-btn svg{ width: 17px; height: 17px; }
  .cart-btn .count{ min-width: 20px; height: 20px; font-size: 0.7rem; }

  /* Hero */
  .hero{ padding: 20px 14px 22px; }
  .hero-text h1{ font-size: 1.42rem; line-height: 1.18; margin-bottom: 8px; }
  .hero-desc{ font-size: 0.86rem; line-height: 1.48; margin-bottom: 14px; }
  .hero-tag{ font-size: 0.7rem; padding: 4px 10px; gap: 7px; margin-bottom: 10px; }
  .hero-actions{ gap: 8px; }
  .btn-hero-primary, .btn-hero-wa{
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.84rem;
  }
  .hero-quick-meta{ width: 100%; padding-left: 0; font-size: 0.72rem; }
  .hero-card{ padding: 13px 12px; border-radius: 14px; }
  .hero-card-topbar{ margin-bottom: 10px; }
  .hero-card-title .hero-card-heading,
  .hero-card-title h3{ font-size: 0.88rem; }
  .hero-card-title span{ font-size: 0.66rem; }
  .live-pill{ font-size: 0.65rem; padding: 2px 8px; }
  .hero-cat-grid{ gap: 7px; }
  .hero-cat-btn{ padding: 8px 9px; gap: 8px; border-radius: 10px; }
  .cat-pill-icon{ width: 28px; height: 28px; border-radius: 7px; }
  .cat-pill-icon svg{ width: 14px; height: 14px; }
  .hero-cat-text strong{ font-size: 0.74rem; }
  .hero-cat-text span{ font-size: 0.64rem; }
  .cat-arrow{ display: none; }
  .hero-card-footer{ padding: 6px 9px; }
  .hero-corp-note{ font-size: 0.66rem; }
  .hero-total-badge{ font-size: 0.64rem; }

  /* Trust bar */
  .trust-bar{ padding: 12px 14px; }
  .trust-inner{ gap: 10px 20px; }
  .trust-item{ font-size: 0.75rem; gap: 5px; }
  .trust-item svg{ width: 13px; height: 13px; }

  /* Catálogo header */
  .section-title{ font-size: 1.35rem; margin-bottom: 20px; }
  .section-label{ font-size: 0.7rem; }

  /* Search */
  #q{ padding: 11px 14px 11px 40px; font-size: 0.88rem; }

  /* Chips - horizontal scroll on mobile */
  .chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
  }
  .chips::-webkit-scrollbar{ display: none; }
  .chip{
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  /* Product grid - single column on very small screens, 2 cols on wider phones */
  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .body{ padding: 12px; gap: 4px; }
  .body h3{ font-size: 0.88rem; }
  .body p{ font-size: 0.78rem; line-height: 1.45; }
  .cat{ font-size: 0.65rem; }
  .row{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
  }
  .price{ font-size: 1rem; }
  .add{
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Info strip */
  .info-strip{ padding: 32px 14px; }
  .info-inner{
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
  }
  .info-item svg{ margin: 0 0 8px; width: 28px; height: 28px; }
  .info-item h3,
  .info-item h4{ font-size: 0.9rem; }
  .info-item p{ font-size: 0.78rem; }

  /* FAQ */
  .faq-section{ padding: 28px 14px; }
  .faq-grid{ grid-template-columns: 1fr; gap: 10px; }
  .faq-item{ padding: 12px 14px; }
  .faq-item summary{ font-size: 0.84rem; }
  .faq-item p{ font-size: 0.78rem; }

  /* Footer */
  .foot{ padding: 24px 14px; }
  .foot-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .foot-brand img{ height: 44px; padding: 4px 10px; }
  .foot-info p{ font-size: 0.78rem; }
  .foot-copy{ font-size: 0.72rem; }
  .foot-social-btn{ font-size: 0.75rem; padding: 6px 10px; }

  /* Drawer / Cart */
  .drawer{ width: 100%; }
  .drawer-head{ padding: 14px 16px; }
  .drawer-head h2{ font-size: 1rem; }
  .items{ padding: 6px 16px; }
  .item b{ font-size: 0.84rem; }
  .item .sub{ font-size: 0.78rem; }
  .drawer-foot{ padding: 14px 16px; }
  .drawer-foot label{ font-size: 0.78rem; }
  .total{ font-size: 1rem; }
  .btn-wa{ padding: 12px; font-size: 0.88rem; }

  /* Floating WA button - avoid overlapping content */
  .floating-wa{ bottom: 18px; right: 14px; width: 50px; height: 50px; }
  .floating-wa svg{ width: 24px; height: 24px; }
}

/* ---- Very small phones (under 380px) ---- */
@media (max-width: 380px){
  .grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .row{
    flex-direction: row;
    align-items: center;
  }
  .add{ width: auto; }
  .hero-text h1{ font-size: 1.28rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-cat-grid{ grid-template-columns: 1fr; }
  .hero-card-footer{ flex-wrap: wrap; }
  .trust-inner{ flex-direction: column; gap: 8px; align-items: flex-start; }
  .info-inner{ grid-template-columns: 1fr; }
}

@media (min-width: 700px){
  .brand-name{ display: block; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
