@import url('tokens.css');

/* ============================================
   CATÁLOGO PÚBLICO — IAMDRIPPING STORE
   Arquitectura: MOBILE-FIRST (Correcciones Anti-Desbordamiento)
   ============================================ */

/* ---------- RESETEO GLOBAL ANTI-DESBORDAMIENTO ---------- */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--paper);
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------- BASE & LAYOUT (Mobile Default) ---------- */
.wrap { 
  max-width: 1240px; 
  margin: 0 auto; 
  padding: 0 16px; 
  width: 100%;
}
@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
}

.eyebrow {
  font-family: var(--font-mono); 
  font-size: 12px; 
  letter-spacing: .14em;
  text-transform: uppercase; 
  font-weight: 600;
}
section { scroll-margin-top: 88px; max-width: 100vw; overflow: hidden; }

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .03em;
  padding: 10px 16px;
  animation: slideDown .5s ease both;
  width: 100%;
}
@media (min-width: 768px) {
  .announcement-bar { font-size: 0.8rem; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; height: 64px;
  background: rgba(10,14,23,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  width: 100%;
}
.nav-brand { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(36,82,255,.35); flex-shrink: 0; }
.nav-brand span {
  font-family: var(--font-display); 
  letter-spacing: .01em; 
  font-size: clamp(13px, 3.5vw, 1rem);
  color: var(--white);
  white-space: nowrap;
}

.nav-links { display: none; } 
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 12px;
  padding: 8px 12px; border-radius: 100px; flex-shrink: 0;
  transition: background .18s ease, transform .18s ease;
}
.nav-cta:hover { background: #3C64FF; transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

@media (min-width: 768px) {
  .nav { padding: 0 5vw; height: 76px; }
  .nav-brand { gap: 10px; }
  .nav-brand img { width: 40px; height: 40px; border-radius: 10px; }
  .nav-brand span { font-size: 1.1rem; }
  .nav-links { display: flex; align-items: center; gap: 34px; }
  .nav-links a { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.78); transition: color .18s ease; }
  .nav-links a:hover { color: var(--white); }
  .nav-cta { font-size: 14px; padding: 11px 18px; gap: 9px; }
  .nav-cta svg { width: 17px; height: 17px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: 50px 0 70px; width: 100%;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(36,82,255,.28), transparent 60%),
    linear-gradient(180deg, rgba(10,14,23,.72) 0%, rgba(11,26,86,.94) 130%);
}
.hero-content { position: relative; z-index: 2; max-width: 100%; animation: riseIn .9s ease both; text-align: center; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { color: var(--blue-pale); opacity: .9; margin-bottom: 16px; display: block; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 10vw, 88px); line-height: .98; letter-spacing: .01em;
  margin: 0 0 16px; text-transform: uppercase;
}
.hero-title em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.8); max-width: 46ch; margin: 0 auto 24px; }

.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: 100px;
  border: 1px solid transparent; width: 100%;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--blue); color: var(--white); text-decoration: none; }
.btn-primary:hover { background: #3C64FF; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); text-decoration: none; }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-primary svg, .btn-ghost svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .hero { padding: 76px 0 96px; }
  .hero-content { max-width: 720px; text-align: left; }
  .hero .eyebrow { margin-bottom: 22px; }
  .hero-title { margin: 0 0 22px; }
  .hero-sub { font-size: 18px; margin: 0 0 34px 0; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .btn-primary, .btn-ghost { width: auto; }
}

.drip-row {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  display: flex; z-index: 3; padding: 0 6%; justify-content: space-between;
}
.drip { width: 12px; border-radius: 0 0 50% 50%; transform: translateY(2px); animation: dripFall 4.5s ease-in-out infinite; }
@keyframes dripFall { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }


/* ---------- SECTION HEADS ---------- */
.section-head { padding: 40px 0 24px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
  font-size: clamp(28px, 6vw, 40px); margin: 6px 0 0;
}
.section-head p { color: var(--gray); margin-top: 10px; font-size: .9rem; line-height: 1.5; }
@media (min-width: 768px) {
  .section-head { padding: 56px 0 34px; }
  .section-head p { margin-top: 12px; font-size: .95rem; }
}

/* ---------- 1. VENTAS (+35.000) ---------- */
.ventas-section { padding: 40px 16px; background: linear-gradient(135deg, var(--paper) 0%, rgba(36, 82, 255, 0.03) 100%); }
.ventas-stats {
  display: flex; flex-direction: column; gap: 16px; margin: 24px auto 32px; align-items: center; width: 100%; max-width: 800px;
}
.ventas-stat {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; width: 100%; text-align: center;
  box-shadow: 0 4px 12px rgba(10,14,23,.05);
}
.ventas-stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--blue); margin-bottom: 4px; }
.ventas-stat span { font-size: 0.85rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.ventas-evidence {
  max-width: 280px; margin: 0 auto 24px; border-radius: 16px; overflow: hidden; 
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10,14,23,.07);
}
.ventas-evidence img { width: 100%; display: block; }

.btn-instagram {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff !important; font-weight: 700; padding: 14px 28px; border-radius: 100px;
  font-size: 14px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
  width: 100%; max-width: 300px;
}
.btn-instagram:active { transform: scale(0.98); }

@media (min-width: 768px) {
  .ventas-section { padding: 60px 24px; }
  .ventas-stats { flex-direction: row; justify-content: center; gap: 24px; }
  .ventas-stat { width: auto; flex: 1; }
  .btn-instagram { width: auto; font-size: 15px; }
  .btn-instagram:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(221,42,123,.35); }
}

/* ---------- 2. MODELOS DESTACADOS ---------- */
.modelos-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px; width: 100%;
}
.modelo-card {
  cursor: pointer; padding: 10px; border-radius: 16px; background: var(--white);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.modelo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(36, 82, 255, 0.15);
  border-color: rgba(36, 82, 255, 0.35);
}
.modelo-card-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 12px;
  background: var(--white); margin-bottom: 8px;
}
.modelo-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s ease; }
.modelo-card:hover .modelo-card-img-wrap img { transform: scale(1.08); }
.modelo-card-name-wrap {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modelo-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) { 
  .modelos-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .modelo-card-name { font-size: 1.1rem; }
}
@media (min-width: 1024px) { .modelos-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 3. CATÁLOGO CONTROLES ---------- */
.catalogo { padding: 0 0 60px; }
.controls {
  position: sticky; top: 64px; z-index: 90;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(10,14,23,.05); padding: 12px 0; width: 100%;
}
.controls-inner { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--white); color: var(--gray);
  font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 100px;
  transition: all .16s ease; white-space: nowrap; cursor: pointer;
}
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search-box { position: relative; width: 100%; }
.search-box input {
  width: 100%; border: 1.5px solid var(--line); background: var(--white); border-radius: 100px;
  padding: 10px 16px 10px 38px; font-size: 14px; font-family: inherit; color: var(--ink);
}
.search-box input::placeholder { color: var(--gray-light); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--gray-light); }
.result-count { font-family: var(--font-mono); font-size: 12px; color: var(--gray); white-space: nowrap; text-align: center; }

@media (min-width: 640px) {
  .controls { top: 76px; padding: 16px 0; }
  .controls-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
  .filters { flex: 1; scrollbar-width: thin; padding-bottom: 2px; }
  .filters::-webkit-scrollbar { display: block; height: 5px; }
  .filters::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 10px; }
  .search-box { width: 260px; order: 0; }
  .result-count { text-align: left; }
}

/* ---------- 4, 5, 6. GRILLA DE PRODUCTOS ---------- */
.grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px; padding: 16px 0 0; 
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 0 0; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.empty-state { grid-column: 1/-1; text-align: center; color: var(--gray); font-family: var(--font-mono); font-size: .85rem; padding: 70px 20px; }

/* Tarjeta Producto */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; width: 100%;
  box-shadow: var(--shadow-card); transition: transform .25s ease;
}
.card-media { position: relative; aspect-ratio: 1/1; background: var(--white); padding: 10px; }
.card-image-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 14px; }
.card-image-frame img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }

/* Badges de Producto */
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; }
.badge {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 100px; background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; gap: 4px;
}
.badge-oferta { background: var(--blue); color: var(--white); animation: pulseGlow 2.4s ease-in-out infinite; }
.badge-stock { background: var(--ink); color: var(--white); }
.badge-remate { background-color: #ff9800; color: #fff; }
.badge-megaremate { background-color: #e53935; color: #fff; animation: latido 1.5s infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 rgba(36,82,255,0); } 50% { box-shadow: 0 0 12px rgba(36,82,255,.55); } }
@keyframes latido { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.card.card-remate { border: 2px solid #ff9800; }
.card.card-megaremate { border: 2px solid #e53935; }

/* Cuerpo de Tarjeta Producto */
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 13px; font-weight: 700; margin: 0; line-height: 1.2; }
.card-sizes { display: none; } 
.card-price { font-family: var(--font-mono); font-weight: 700; font-size: 13px; margin-top: auto;}
.price-now { color: var(--ink); }
.price-old { color: var(--gray-light); text-decoration: line-through; margin-right: 6px; font-size: .8rem; }
.card-cta {
  background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none;
  font-size: 11px; padding: 8px 0; border-radius: 100px; width: 100%; text-align: center; margin-top: 4px;
}

@media (min-width: 768px) {
  .card-media { padding: 20px; }
  .badges { top: 14px; left: 14px; gap: 6px; }
  .badge { font-size: 10.5px; padding: 5px 10px; }
  .card-body { padding: 20px; gap: 10px; }
  .card-name { font-size: 16px; }
  .card-sizes { display: flex; flex-wrap: wrap; gap: 5px; }
  .size-chip { font-family: var(--font-mono); font-size: .65rem; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; color: var(--gray); cursor:pointer; }
  .card-price { font-size: 15px; }
  .card-cta { font-size: 13px; padding: 12px 0; }
  .card-cta:hover { background: var(--blue); transform: translateY(-1px); }
}

/* ---------- 7. CUIDADO ESPECIALIZADO ---------- */
.special-care-section { padding-top: 40px; padding-bottom: 40px; }
.special-care-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding: 10px 0 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: flex-start; 
}
.special-care-scroll::-webkit-scrollbar { display: none; }

.special-card {
  width: 85%; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; flex-shrink: 0; scroll-snap-align: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 14, 23, 0.05); display: flex; flex-direction: column;
}
.special-card-img-wrap {
  width: 100%; height: 200px; background: linear-gradient(135deg, #f8f9fa 0%, #e2e5f1 100%);
  padding: 20px; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--line);
}
.special-card-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; z-index: 2; }
.special-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.special-card-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; line-height: 1.2; color: var(--ink); }
.special-card-price { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.special-card-btn {
  margin-top: auto; background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 700; text-align: center;
}
@media (min-width: 768px) {
  .special-care-section { padding-top: 60px; padding-bottom: 60px; }
  .special-care-scroll { gap: 24px; padding: 10px 0 40px; justify-content: center; }
  .special-card { width: 350px; border-radius: 24px; }
  .special-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(36, 82, 255, 0.15); border-color: rgba(36, 82, 255, 0.3); }
  .special-card-img-wrap { height: 260px; padding: 30px; }
  .special-card-content { padding: 24px; }
  .special-card-title { font-size: 1.4rem; }
}

/* ---------- 8. TESTIMONIOS (MÓVIL HORIZONTAL) ---------- */
.testimonials-section { padding: 40px 0; overflow: hidden; }
.testimonials-grid { 
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none; 
}
.testimonials-grid::-webkit-scrollbar { display: none; }
.test-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; text-align: center; box-shadow: 0 4px 12px rgba(10, 14, 23, 0.05);
  width: 80%; min-width: 260px; flex-shrink: 0; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.test-card-img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; margin-bottom: 12px; transition: transform .2s ease; }
.test-card-img.has-photo { cursor: pointer; }
.test-card-img.has-photo:hover { transform: scale(1.05); }
.stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 8px; letter-spacing: 2px;}
.test-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.4; margin-bottom: 12px; flex: 1; }
.test-card span { font-weight: 700; color: var(--ink); font-size: 0.85rem; }

@media (min-width: 768px) {
  .testimonials-section { padding: 60px 0; }
  .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; overflow-x: visible; }
  .test-card { width: 100%; border-radius: 20px; }
  .test-card-img { width: 110px; height: 110px; margin-bottom: 15px; }
}

/* ---------- 9. GRUPO WHATSAPP ---------- */
.grupo-section { padding: 50px 16px; }

.grupo-box {
  background: var(--ink); /* Fondo oscuro */
  border-radius: 20px; 
  padding: 40px 20px; 
  text-align: center; 
  margin: 0 auto; 
  max-width: 800px; 
  color: var(--white);
}

.grupo-evidence {
  width: 100%; 
  max-width: 280px; /* Tamaño similar a la foto */
  border-radius: 12px; 
  margin: 0 auto 24px;
  display: block; 
  box-shadow: 0 14px 30px rgba(0,0,0,0.5); /* Sombra para resaltar la imagen */
}

.grupo-box h2 { 
  font-family: var(--font-display); 
  font-size: clamp(26px, 6vw, 40px); 
  margin: 0 0 12px; 
  color: var(--white); 
}

.grupo-tags { 
  font-family: var(--font-mono); 
  font-size: 0.85rem; 
  color: #a8b2d1; /* Color gris/azulado para las categorías */
  margin-bottom: 20px; 
  font-weight: 500; 
}

.grupo-desc { 
  color: rgba(255,255,255,0.8); 
  font-size: 15.5px; 
  line-height: 1.5; 
  margin: 0 auto 30px; 
  max-width: 45ch; 
}

.btn-grupo {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  background: var(--blue); /* Botón azul vibrante */
  color: var(--white);
  font-weight: 700; 
  font-size: 15px;
  padding: 14px 36px; 
  border-radius: 100px; 
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.btn-grupo:hover { 
  transform: translateY(-2px); 
  background: #3C64FF; 
}

@media (min-width: 768px) {
  .grupo-section { padding: 70px 24px; }
  .grupo-box { padding: 56px 40px; }
}

/* ---------- 10. PREGUNTAS FRECUENTES (FAQ NATIVO) ---------- */
.faq-section { padding: 40px 16px; background: var(--paper); }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; transition: border-color .2s;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--gray); font-size: 14px; line-height: 1.6; }

@media (min-width: 768px) {
  .faq-section { padding: 60px 24px; }
  .faq-item { padding: 20px 24px; border-radius: 16px; }
  .faq-item summary { font-size: 16px; }
  .faq-item:hover { border-color: var(--blue); }
}

/* ---------- PRODUCT MODAL ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,14,23,.72);
  display: flex; align-items: flex-end; justify-content: center; padding: 0; 
  animation: fadeIn .2s ease both;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.modal-box {
  background: var(--white); border-radius: 24px 24px 0 0; width: 100vw; max-width: 920px; height: 90vh; 
  display: flex; flex-direction: column; position: relative; box-shadow: 0 -10px 40px rgba(10,14,23,.2);
  animation: modalRiseMobile .3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes modalRiseMobile { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }

.modal-media { 
  position: relative; background: var(--white); display: flex; flex-direction: column; overflow: hidden; 
  height: 40vh; min-height: 300px; flex-shrink: 0; border-radius: 24px 24px 0 0;
}
.modal-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; flex: 1; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-category { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-info h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin: 0; }
.modal-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 8px; }
.modal-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.modal-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.4rem; }
.modal-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--white); font-weight: 700; text-align: center; text-decoration: none;
  font-size: 14px; padding: 14px 0; border-radius: 100px; width: 100%; transition: background .18s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10; width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(10,14,23,.6); color: var(--white); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

@media (min-width: 768px) {
  .modal-overlay { padding: 24px; align-items: center; }
  .modal-box {
    border-radius: var(--radius-lg); height: auto; max-height: 90vh; width: 100%;
    display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; box-shadow: 0 30px 70px rgba(10,14,23,.35);
    animation: modalRise .25s ease both;
  }
  @keyframes modalRise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .modal-media { height: auto; min-height: 0; border-radius: 0; } 
  .modal-info { padding: 40px; gap: 20px; }
  .modal-info h3 { font-size: 1.85rem; }
  .modal-sizes { gap: 8px; }
  .modal-price { font-size: 1.55rem; }
  .modal-cta { font-size: 15px; padding: 15px 0; }
  .modal-cta:hover { background: var(--blue); }
  .modal-close { top: 14px; right: 14px; width: 34px; height: 34px; transition: background .18s ease; }
  .modal-close:hover { background: var(--ink); }
}
body.modal-open { overflow: hidden; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  padding: 50px 16px 26px; position: relative; width: 100vw; overflow: hidden;
}
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
  max-width: 1240px; margin: 0 auto;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer-brand span.brand-name { font-family: var(--font-display); letter-spacing: .04em; color: var(--white); font-size: 1.05rem; }
.footer-brand p { max-width: 100%; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin: 0 0 12px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col a, .footer-col p { font-size: 14.5px; color: rgba(255,255,255,.8); line-height: 1.5; text-decoration: none;}
.footer-wa {
  display: inline-flex; align-items: center; gap: 9px; background: var(--blue); color: var(--white) !important;
  font-weight: 700; padding: 12px 20px; border-radius: 100px; margin-top: 6px; width: 100%; justify-content: center;
}
.footer-wa svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding-top: 22px; font-size: 12px; color: rgba(255,255,255,.4); font-family: var(--font-mono);
  max-width: 1240px; margin: 0 auto;
}

@media (min-width: 768px) {
  footer { padding: 64px 5vw 26px; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-brand p { max-width: 38ch; }
  .footer-col h4 { margin: 0 0 16px; }
  .footer-col a:hover { color: var(--blue-pale); }
  .footer-wa { width: auto; transition: background .18s ease, transform .18s ease; }
  .footer-wa:hover { background: #3C64FF; transform: translateY(-1px); }
  .footer-bottom { flex-direction: row; justify-content: space-between; font-size: 12.5px; text-align: left; }
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--success); color: var(--white); text-decoration: none;
  padding: 14px; border-radius: 50%; box-shadow: 0 10px 26px rgba(10,14,23,.28);
  font-weight: 700; font-size: 14px;
}
.wa-float span { display: none; } 
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }

@media (min-width: 768px) {
  .wa-float { right: 22px; bottom: 22px; padding: 14px 20px 14px 16px; border-radius: 100px; transition: transform .18s ease; }
  .wa-float span { display: inline; }
  .wa-float svg { width: 22px; height: 22px; }
  .wa-float:hover { transform: translateY(-2px) scale(1.02); }
}

/* ====================================================
   FIX DEFINITIVO: IMÁGENES CORTADAS EN CELULAR
   ==================================================== */

/* 1. Forzar proporción y aire en las imágenes de la grilla (Catálogo, Bestsellers, Ofertas) */
.slider-track img, 
.card-image-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  padding: 18px !important; /* 👈 Este es el secreto: obliga a la foto a encogerse hacia el centro */
}

/* 2. Limpiar el padding del contenedor para que la imagen se centre perfecto */
.card-media {
  padding: 0 !important; 
  align-items: center;
  justify-content: center;
}

/* 3. Evitar el mismo problema dentro de la ventana de detalles (Modal) */
#modalMainImg,
.modal-thumb {
  box-sizing: border-box !important;
  padding: 10px !important;
  object-fit: contain !important;
}

/* 4. Asegurar que las tarjetas de "Modelos Destacados" tampoco se corten */
.modelo-card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  padding: 15px !important;
}

/* ====================================================
   DISEÑO PROMO SHIELDS (GLOBAL Y MODAL)
   ==================================================== */

/* 1. Banner Global (Sobre el catálogo) */
.shield-global-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(10, 14, 23, 0.1);
  position: relative;
  overflow: hidden;
}

/* Efecto de luz azul de fondo */
.shield-global-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: var(--blue);
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.4;
  z-index: 0;
}

.sgb-icon {
  font-size: 26px;
  background: rgba(255,255,255,0.1);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
}

.sgb-text {
  display: flex; flex-direction: column; z-index: 1;
}
.sgb-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.sgb-text span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  line-height: 1.4;
}

/* 2. Banner dinámico dentro del Modal */
.shield-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(36, 82, 255, 0.08) 0%, rgba(36, 82, 255, 0.02) 100%);
  border: 1px solid rgba(36, 82, 255, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 10px 0 15px;
}

.shield-promo[hidden] {
  display: none;
}

.shield-promo-icon {
  font-size: 20px;
  background: var(--white);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(36, 82, 255, 0.15);
  flex-shrink: 0;
}

.shield-promo-text { display: flex; flex-direction: column; }
.shield-promo-text strong {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 800;
}
.shield-promo-text span {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* Ajustes responsivos */
@media (max-width: 640px) {
  .shield-global-banner { padding: 16px; flex-direction: column; text-align: center; gap: 12px; }
  .shield-global-banner::before { right: 50%; transform: translateX(50%); top: -80px; }
}

/* ====================================================
   BANNER DESPLEGABLE CALIDAD PK
   ==================================================== */
.pk-section {
  padding: 10px 16px 30px;
  max-width: 850px; /* Lo mantiene centrado y fácil de leer */
  margin: 32px auto 0;
}

.pk-box {
  background: linear-gradient(135deg, var(--ink) 0%, #172033 100%);
  border: 1px solid rgba(36, 82, 255, 0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(10, 14, 23, 0.15);
  transition: all 0.3s ease;
}

.pk-box:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(36, 82, 255, 0.2);
}

.pk-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--white);
  outline: none;
}

.pk-summary::-webkit-details-marker {
  display: none;
}

.pk-badge {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(36, 82, 255, 0.3);
}

.pk-summary strong {
  font-family: var(--font-display);
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 400;
  flex: 1;
  letter-spacing: 0.02em;
}

.pk-icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Rota la flecha cuando se abre */
.pk-box[open] .pk-icon {
  transform: rotate(180deg);
  color: var(--white);
}

.pk-content {
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  padding-top: 18px;
}

.pk-content strong {
  color: var(--white);
}

@media (min-width: 768px) {
  .pk-section { padding: 20px 24px 40px; margin-top: 48px; }
  .pk-summary { padding: 22px 28px; }
  .pk-content { font-size: 15px; padding: 0 28px 24px; }
}

.special-card--plain .special-card-img-wrap{
  background: var(--white);
}
.special-card--plain .special-card-img-wrap::after{
  display: none;
}

/* ---------- LIGHTBOX DE FOTO DE TESTIMONIO ---------- */
.testimonial-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,14,23,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease both;
}
.testimonial-lightbox[hidden] { display: none; }
.testimonial-lightbox img {
  max-width: 100%; max-height: 90vh; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.testimonial-lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- LIGHTBOX DE FOTO DE PRODUCTO ---------- */
.product-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,14,23,.94);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease both;
  touch-action: pan-y;
}
.product-lightbox[hidden] { display: none; }
.product-lightbox img {
  max-width: 100%; max-height: 100vh; object-fit: contain;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.product-lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.product-lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12); padding: 5px 14px; border-radius: 100px;
}
#modalMainImg { cursor: zoom-in; }