/**
 * TuttyCosas Kids — bundle-critical.css
 * CSS crítico — carga en <head> · base + components + layout + social-proof + cart-trust + consent
 * Sprint 6.2 — 2026-06-11
 *
 * IMPORTANTE: No editar directamente.
 * Editar el archivo fuente en public/css/ y regenerar.
 */

/* ================================================================
   base.css
   ================================================================ */
/**
 * TuttyCosas Kids — base.css
 * Tokens · Reset · Tipografía · Animaciones
 * Sprint 2 — Arquitectura modular
 */

/* ── TOKENS ── */
:root {
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE1;
  --cream-deep:   #E8DFD0;
  --sage:         #5C7A5F;
  --sage-light:   #7A9E7E;
  --sage-pale:    #E8F0E9;
  --sage-dark:    #3D5440;
  --terra:        #C17D5E;
  --terra-light:  #F5E6DC;
  --terra-dark:   #9A5F43;
  --bark:         #2C2416;
  --bark-mid:     #5A4E3C;
  --stone:        #8C8070;
  --stone-light:  #C8C0B4;
  --white:        #FFFFFF;
  --whatsapp:     #25D366;
  --whatsapp-dark:#128C48;

  --shadow-xs:  0 1px 4px rgba(44,36,22,0.06);
  --shadow-sm:  0 4px 16px rgba(44,36,22,0.08);
  --shadow-md:  0 8px 32px rgba(44,36,22,0.12);
  --shadow-lg:  0 20px 60px rgba(44,36,22,0.16);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:100px;

  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--cream); color: var(--bark); overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 3px; }

/* ── ANIMACIONES ── */
@keyframes fadeUp    { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes float     { 0%,100% { transform:translateY(0px); } 50% { transform:translateY(-8px); } }
@keyframes leafSway  { 0%,100% { transform:rotate(-4deg) scale(1); } 50% { transform:rotate(4deg) scale(1.05); } }
@keyframes shimmer   { from { background-position:-400% center; } to { background-position:400% center; } }
@keyframes scaleIn   { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
@keyframes waPulse   { 0%,100% { transform:scale(1); } 50% { transform:scale(1.08); } }
@keyframes typingBounce { 0%,80%,100% { transform:translateY(0); } 40% { transform:translateY(-5px); } }

.fade-up { animation: fadeUp 0.7s var(--ease-out) both; }
.fade-in { animation: fadeIn 0.5s ease both; }
.d1 { animation-delay:.1s; } .d2 { animation-delay:.2s; } .d3 { animation-delay:.3s; }
.d4 { animation-delay:.4s; } .d5 { animation-delay:.5s; }

/* ================================================================
   components.css
   ================================================================ */
/**
 * TuttyCosas Kids — components.css
 * Cards · Botones · Modales · Chat · Toast · Carrito · WhatsApp
 * Sprint 2 — Arquitectura modular
 */

/* ── ANNOUNCEMENT BAR ── */
.ann-bar {
  background: var(--sage-dark); color: var(--cream);
  text-align: center; padding: 9px 20px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.6px;
  position: relative;
}
.ann-bar strong { color: #C8E6CA; font-weight: 600; }
.ann-bar-close {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(250,247,242,0.6); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.ann-bar-close:hover { color: var(--cream); }

/* ── BOTONES BASE ── */
.btn-primary {
  background: var(--sage); color: var(--white);
  padding: 13px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px; border: none;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-secondary {
  background: transparent; color: var(--bark-mid);
  padding: 13px 22px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.88rem;
  border: 1.5px solid var(--cream-deep);
  transition: all 0.25s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--sage); color: var(--sage-dark); }

.btn-sage {
  background: var(--sage); color: var(--white);
  padding: 13px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.88rem; border: none;
  cursor: pointer; transition: all 0.25s var(--ease-out);
}
.btn-sage:hover { background: var(--sage-dark); transform: scale(1.03); }

/* ── PRODUCT CARDS ── */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--cream-deep);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream-dark); }
.product-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-img { transform: scale(1.06); }

.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream-deep) 50%, var(--cream-dark) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-sale { background: var(--terra); color: var(--white); }
.badge-new  { background: var(--sage); color: var(--white); }

.product-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px);
  transition: all 0.25s var(--ease-out);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all 0.2s; border: none; cursor: pointer;
}
.action-btn:hover, .action-btn.active { background: var(--terra-light); transform: scale(1.1); }

.product-info { padding: 16px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.product-cat  { font-size: 0.68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--sage); }
.product-rating { font-size: 0.75rem; color: var(--stone); display: flex; align-items: center; gap: 3px; }
.stars { color: var(--terra); }
.product-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--bark); margin-bottom: 10px; line-height: 1.3; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-wrap { display: flex; flex-direction: column; }
.price-current { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--sage-dark); }
.price-original { font-size: 0.75rem; color: var(--stone-light); text-decoration: line-through; }
.btn-add {
  background: var(--sage-pale); color: var(--sage-dark);
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-add:hover { background: var(--sage); color: var(--white); transform: scale(1.05); }

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(44,36,22,0.45); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  backdrop-filter: blur(3px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream); z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.38s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header { padding: 22px 24px; border-bottom: 1px solid var(--cream-deep); display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--bark); }
.cart-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--bark-mid); transition: all 0.2s;
}
.cart-close:hover { background: var(--sage); color: var(--white); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; color: var(--stone); text-align: center; }
.cart-empty-icon { font-size: 2.8rem; opacity: 0.5; }
.cart-empty p    { font-weight: 500; font-size: 0.9rem; color: var(--bark-mid); }
.cart-item  { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-deep); align-items: flex-start; }
.cart-item-img   { width: 68px; height: 68px; border-radius: var(--radius-sm); object-fit: cover; background: var(--cream-dark); flex-shrink: 0; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-weight: 600; font-size: 0.85rem; color: var(--bark); margin-bottom: 3px; }
.cart-item-price { color: var(--sage); font-weight: 700; font-size: 0.9rem; }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; font-size: 0.85rem;
  transition: all 0.2s; border: none; color: var(--bark);
}
.qty-btn:hover { background: var(--sage); color: var(--white); }
.cart-item-remove { color: var(--stone-light); cursor: pointer; padding: 4px; font-size: 0.75rem; transition: color 0.2s; }
.cart-item-remove:hover { color: var(--terra); }
.cart-footer      { padding: 20px 24px; border-top: 1px solid var(--cream-deep); }
.cart-subtotal    { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; color: var(--bark); }
.cart-subtotal .price { color: var(--sage-dark); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.cart-free-shipping {
  background: var(--sage-pale); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.78rem; font-weight: 500; color: var(--sage-dark);
  margin-bottom: 14px; text-align: center;
}
.cart-whatsapp {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--whatsapp); color: var(--white);
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.85rem;
  transition: all 0.25s; border: none; cursor: pointer;
  margin-bottom: 8px; text-decoration: none;
}
.cart-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn-checkout {
  width: 100%; display: block;
  background: var(--sage-dark); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s; border: none; cursor: pointer;
  text-align: center; margin-bottom: 10px;
}
.btn-checkout:hover { background: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cart-note { text-align: center; font-size: 0.72rem; color: var(--stone); font-weight: 400; }

/* ── PRODUCT MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44,36,22,0.55); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(5px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--cream); border-radius: var(--radius-xl);
  max-width: 820px; width: 100%; max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92); transition: transform 0.35s var(--ease-spring);
  position: relative;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-inner    { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img-col  { background: var(--cream-dark); border-radius: var(--radius-xl) 0 0 var(--radius-xl); overflow: hidden; }
.modal-img      { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.modal-info-col { padding: 36px 32px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--white); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  font-size: 0.9rem; color: var(--bark); z-index: 1; transition: all 0.2s;
}
.modal-close:hover { background: var(--sage); color: var(--white); }

/* ── NUBI IA CHAT ── */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 150; }
.chat-fab-btn {
  width: 58px; height: 58px; background: var(--sage);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow-lg);
  cursor: pointer; transition: all 0.25s var(--ease-spring); border: none;
  animation: float 3.5s ease-in-out infinite;
}
.chat-fab-btn:hover { background: var(--sage-dark); transform: scale(1.1); }
.chat-fab-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--terra); color: var(--white); border-radius: 50%;
  width: 20px; height: 20px; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.chat-window {
  position: fixed; bottom: 94px; right: 24px;
  width: min(380px, calc(100vw - 48px)); height: 520px;
  background: var(--cream); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); z-index: 151;
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.88) translateY(16px);
  opacity: 0; pointer-events: none; transform-origin: bottom right;
  transition: all 0.3s var(--ease-spring);
  border: 1px solid var(--cream-deep);
}
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chat-win-header { background: var(--sage-dark); padding: 16px 20px; color: var(--cream); display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 38px; height: 38px; background: rgba(250,247,242,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-win-info h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.chat-win-info p  { font-size: 0.72rem; opacity: 0.75; margin-top: 1px; }
.chat-online { display: inline-block; width: 7px; height: 7px; background: #6BCB77; border-radius: 50%; margin-right: 4px; }
.chat-close-btn {
  margin-left: auto; background: rgba(250,247,242,0.12); border: none;
  color: var(--cream); width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; font-size: 0.9rem;
}
.chat-close-btn:hover { background: rgba(250,247,242,0.25); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream-dark); }
.msg       { display: flex; gap: 7px; max-width: 90%; }
.msg.user  { margin-left: auto; flex-direction: row-reverse; }
.msg-bubble { padding: 9px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.55; font-weight: 400; }
.msg.bot .msg-bubble  { background: var(--white); color: var(--bark); border-bottom-left-radius: 4px; box-shadow: var(--shadow-xs); }
.msg.user .msg-bubble { background: var(--sage); color: var(--white); border-bottom-right-radius: 4px; }
.msg-time  { font-size: 0.65rem; color: var(--stone); margin-top: 3px; padding: 0 4px; }
.chat-suggestions { display: flex; gap: 5px; flex-wrap: wrap; padding: 8px 14px; background: var(--cream-dark); }
.chat-suggestion-btn {
  background: var(--white); border: 1px solid var(--cream-deep);
  color: var(--sage-dark); padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.chat-suggestion-btn:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 9px 13px; }
.typing-dot {
  width: 6px; height: 6px; background: var(--stone-light); border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
.chat-input-wrap { padding: 11px 14px; border-top: 1px solid var(--cream-deep); display: flex; gap: 8px; background: var(--cream); }
.chat-input {
  flex: 1; padding: 9px 14px;
  border: 1.5px solid var(--cream-deep); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.85rem;
  outline: none; background: var(--cream-dark); color: var(--bark);
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--sage); background: var(--white); }
.chat-send-btn {
  width: 38px; height: 38px; background: var(--sage); border: none;
  border-radius: 50%; color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--sage-dark); transform: scale(1.08); }
.chat-rate-warn { font-size: 0.72rem; color: var(--terra); text-align: center; padding: 4px 14px; }

/* ── WHATSAPP FLOTANTE ── */
.wa-fab { position: fixed; bottom: 96px; right: 24px; z-index: 148; }
.wa-fab-btn {
  width: 48px; height: 48px;
  background: var(--whatsapp); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  cursor: pointer; transition: all 0.25s var(--ease-spring);
  border: none; font-size: 1.4rem;
  animation: waPulse 3s ease-in-out infinite;
  text-decoration: none;
}
.wa-fab-btn:hover { background: var(--whatsapp-dark); transform: scale(1.12); box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
.wa-tooltip {
  position: absolute; bottom: 0; right: 58px;
  background: var(--bark); color: var(--cream);
  padding: 6px 12px; border-radius: var(--radius-md);
  font-size: 0.75rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all 0.2s;
  transform: translateX(4px);
}
.wa-fab:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.wa-tooltip::after {
  content: '';
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--bark);
}

/* ── TOAST ── */
.toast {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--bark); color: var(--cream);
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.85rem; z-index: 300;
  opacity: 0; transition: all 0.3s var(--ease-out);
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--cream-deep); padding: 18px 28px; }
.trust-bar-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { font-size: 1.4rem; flex-shrink: 0; }
.trust-text strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--bark); }
.trust-text span   { font-size: 0.72rem; color: var(--stone); }

/* ── TESTIMONIOS ── */
.testimonios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testi-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--cream-deep); }
.testi-stars  { color: var(--terra); font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text   { font-size: 0.88rem; color: var(--bark-mid); line-height: 1.75; margin-bottom: 18px; font-style: italic; font-family: var(--font-display); font-weight: 400; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.testi-name   { font-size: 0.85rem; font-weight: 600; color: var(--bark); }
.testi-loc    { font-size: 0.72rem; color: var(--stone); margin-top: 1px; }

/* ── NEWSLETTER ── */
.newsletter       { background: var(--cream-dark); border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep); padding: 64px 28px; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2    { font-family: var(--font-display); font-size: clamp(1.6rem,3.5vw,2.2rem); font-weight: 700; color: var(--bark); margin-bottom: 8px; }
.newsletter p     { color: var(--stone); font-size: 0.9rem; margin-bottom: 28px; }
.newsletter-form  { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 13px 20px;
  border: 1.5px solid var(--cream-deep); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.9rem;
  background: var(--white); color: var(--bark);
  outline: none; transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--sage); }

/* ── TRACKING ENVÍO ── */
.tracking-section { background: var(--cream); padding: 48px 28px; }
.tracking-inner   { max-width: 560px; margin: 0 auto; text-align: center; }
.tracking-form    { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; justify-content: center; }
.tracking-input {
  flex: 1; min-width: 200px;
  padding: 12px 20px; border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-pill); font-family: var(--font-body);
  font-size: 0.9rem; background: var(--white); color: var(--bark);
  outline: none; transition: border-color 0.2s;
}
.tracking-input:focus { border-color: var(--sage); }
.tracking-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.tracking-link {
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.tracking-link.chilexpress { background: var(--terra-light); color: var(--terra-dark); }
.tracking-link.starken     { background: var(--sage-pale); color: var(--sage-dark); }
.tracking-link.blueexpress { background: #E3F2FD; color: #1565C0; }
.tracking-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-xs); }

/* ── SECCIÓN GENÉRICA ── */
.section { padding: 72px 28px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 10px;
}
.section h2 { font-family: var(--font-display); font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 700; color: var(--bark); }
.section-sub { color: var(--stone); font-size: 0.9rem; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════
   STOCK BADGES — TuttyCosas Kids
   Agregar a: css/components.css
   Sprint 2d
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrapper posicionado sobre la imagen ── */
.badge-wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* ── Base badge ── */
.badge-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 11+ → no se muestra nada (silencio) */

/* 6–10: "Pocas unidades" — verde suave */
.badge-stock.suave {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* 3–5: "Solo X quedan" — naranja */
.badge-stock.medio {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

/* 1–2: "¡Último!" / "¡Quedan 2!" — rojo urgente */
.badge-stock.urgente {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  animation: pulse-badge 1.8s ease-in-out infinite;
}

/* 0: "Agotado" — gris neutro */
.badge-stock.agotado {
  background: #f5f5f5;
  color: #757575;
  border: 1px solid #e0e0e0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-radius: 10px;
  padding: 6px 10px;
}

/* Pulse animation */
@keyframes pulse-badge {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.82; transform: scale(1.03); }
}

/* ── Botón "Avísame →" dentro del badge agotado ── */
.btn-avisame {
  background: #616161;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-avisame:hover { background: #424242; }

/* ── Tarjeta agotada — visual atenuado ── */
.product-card.product-agotado {
  opacity: 0.72;
  filter: grayscale(20%);
  transition: opacity 0.2s;
}
.product-card.product-agotado:hover { opacity: 0.85; }

/* ── Botón carrito deshabilitado ── */
.btn-add-cart.btn-disabled {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   MODAL RESTOCK — "Avísame cuando esté disponible"
   ═══════════════════════════════════════════════════════════════ */

#restockModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#restockModal.active { display: flex; }

.restock-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: slide-up 0.25s ease;
}
@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.restock-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a2e;
}
.restock-card p {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 20px;
}
.restock-product-name {
  font-weight: 700;
  color: #e65100;
}

.restock-card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.restock-card input[type="email"]:focus { border-color: #ff6b35; }

#restockSubmitBtn {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
#restockSubmitBtn:hover    { background: #e55a25; }
#restockSubmitBtn:active   { transform: scale(0.98); }
#restockSubmitBtn:disabled { background: #ccc; cursor: not-allowed; }

.restock-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.restock-close:hover { color: #333; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .restock-card { padding: 24px 18px; }
}

/* ── Navegación al detalle desde tarjeta ── */
.card-image-link,
.card-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image-link:hover img {
  opacity: 0.93;
  transform: scale(1.02);
  transition: opacity 0.2s, transform 0.2s;
}

.card-title-link:hover .card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CART BADGE — bolita contador sobre ícono ── */
.btn-cart {
  position: relative;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--terracotta, #c0392b);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  margin-left: 4px;
  vertical-align: middle;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   CARD PEBBLE-STYLE — Sprint 4.8
   ═══════════════════════════════════════════════════════════════ */

.product-card {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}
.product-card:hover { transform: translateY(-4px); }

.card-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  display: block;
  background: var(--cream-dark);
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-out);
}
.product-card:hover .card-image-wrapper img { transform: scale(1.05); }

/* Badges apilados — merchandising arriba, stock abajo */
.badge-wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Ocultar elementos anteriores */
.card-body   { display: none; }
.card-footer { display: none; }
.card-desc   { display: none; }

/* ── Píldora flotante ── */
.card-pill {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.card-pill-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-pill-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.card-pill-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bark, #5C3D2E);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.card-pill-price {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-dark, #3d5c40);
  line-height: 1.2;
}

.card-pill-btn {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: none;
  background: var(--sage, #5C7A5F);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  min-width: 70px;
  transition: background 0.18s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-pill-btn:hover  { background: var(--sage-dark, #4a6349); }
.card-pill-btn:active { transform: scale(0.95); }
.card-pill-btn--agotado { background: #9e9e9e; cursor: default; }
.card-pill-btn--agotado:hover { background: #757575; }

/* ── Badges de merchandising — Pebble style ── */
.badge-merch {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.badge-merch--nuevo     { background: var(--sage, #5C7A5F);   color: #fff; }
.badge-merch--popular   { background: #7c3aed;                color: #fff; }
.badge-merch--destacado { background: #ea6c00;                color: #fff; }
.badge-merch--oferta    { background: #c0392b;                color: #fff; }

@media (max-width: 400px) {
  .card-pill       { bottom: 8px; left: 6px; right: 6px; }
  .card-pill-thumb { width: 28px; height: 28px; }
  .card-pill-btn   { padding: 7px 10px; font-size: 0.70rem; min-width: 60px; }
}

/* ================================================================
   layout.css
   ================================================================ */
/**
 * TuttyCosas Kids — layout.css
 * Navbar · Hero · Grid · Categorías · Footer · Responsive
 * Sprint 2 — Arquitectura modular
 */

/* ── NAVBAR ── */
.navbar {
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-deep);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: var(--sage-dark); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  word-spacing: normal;
}
.logo-leaf { margin-right: 2px; }
.logo-leaf { display: inline-block; font-size: 1.2rem; animation: leafSway 4s ease-in-out infinite; }
.logo em   { font-style: italic; color: var(--terra); letter-spacing: -0.01em; }

.nav-search { flex: 1; max-width: 360px; position: relative; }
.nav-search input {
  width: 100%; padding: 9px 16px 9px 38px;
  border: 1.5px solid var(--cream-deep); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.88rem;
  background: var(--cream-dark); color: var(--bark);
  outline: none; transition: all 0.2s;
}
.nav-search input:focus { border-color: var(--sage); background: var(--white); }
.nav-search input::placeholder { color: var(--stone); }
.nav-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--stone); pointer-events: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-cart {
  background: var(--sage); color: var(--white);
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.85rem;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.25s var(--ease-out);
}
.btn-cart:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cart-badge {
  background: var(--terra); color: var(--white);
  border-radius: 50%; width: 19px; height: 19px;
  font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── NAV CATEGORÍAS ── */
.nav-cats { border-bottom: 1px solid var(--cream-deep); background: var(--cream); }
.nav-cats-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.nav-cats-inner::-webkit-scrollbar { display: none; }
.nav-cat-link {
  padding: 11px 18px; font-size: 0.83rem; font-weight: 500;
  color: var(--stone); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.nav-cat-link:hover { color: var(--sage); }
.nav-cat-link.active { color: var(--sage-dark); border-bottom-color: var(--sage); font-weight: 600; }

/* ── HERO ── */
.hero {
  background: var(--cream-dark); min-height: 520px;
  display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
}
/* El slider ocupa la columna visual — misma posición que hero-visual */
.hero > .hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.hero-content {
  padding: 72px 56px 72px 48px;
  display: flex; flex-direction: column; justify-content: center; position: relative;
}
.hero-content::after {
  content: ''; position: absolute; top: 40px; left: 40px;
  width: 120px; height: 120px;
  border: 1.5px solid var(--cream-deep); border-radius: 50%; opacity: 0.6;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--sage); }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.4rem);
  font-weight: 700; line-height: 1.12; color: var(--bark); margin-bottom: 20px;
}
.hero h1 em   { font-style: italic; color: var(--sage); }
.hero h1 span { color: var(--terra); }
.hero-desc {
  font-size: 1rem; color: var(--bark-mid); line-height: 1.75;
  font-weight: 400; max-width: 380px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-trust-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--white); padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 500; color: var(--bark-mid);
  box-shadow: var(--shadow-xs);
}
.hero-visual {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--cream-deep) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge {
  position: absolute; background: var(--white); border-radius: var(--radius-lg);
  padding: 10px 16px; box-shadow: var(--shadow-md);
  font-size: 0.78rem; font-weight: 600; color: var(--bark);
  display: flex; align-items: center; gap: 6px;
  animation: float 4s ease-in-out infinite;
}
.hero-badge-1 { top: 24%; left: 8%; animation-delay: 0s; }
.hero-badge-2 { bottom: 28%; right: 6%; animation-delay: 1.5s; }
.hero-badge .badge-icon { font-size: 1.1rem; }

/* ── CATEGORÍAS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.cat-grid .cat-card:first-child { grid-row: span 2; }
.cat-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer;
  transition: all 0.35s var(--ease-out); aspect-ratio: 1;
}
.cat-card:first-child { aspect-ratio: auto; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.cat-card:hover img { transform: scale(1.07); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.65) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.cat-name  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.cat-count { font-size: 0.72rem; color: rgba(250,247,242,0.75); margin-top: 2px; }

/* ── PRODUCTOS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.recos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── PROMO BANNER ── */
.promo-banner { background: var(--sage-dark); padding: 48px 28px; }
.promo-inner  { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.promo-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-light); margin-bottom: 8px; }
.promo-title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.promo-title em { font-style: italic; color: #C8E6CA; }
.promo-desc { color: rgba(250,247,242,0.7); font-size: 0.9rem; line-height: 1.6; }
.promo-cta  { flex-shrink: 0; }
.btn-promo {
  background: var(--cream); color: var(--sage-dark);
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer;
  transition: all 0.25s var(--ease-out); white-space: nowrap;
}
.btn-promo:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── FOOTER ── */
footer { background: var(--bark); color: rgba(250,247,242,0.6); padding: 56px 28px 28px; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--cream); margin-bottom: 14px; }
.footer-brand .logo em { color: var(--terra-light); }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(250,247,242,0.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all 0.25s; cursor: pointer;
}
.social-btn:hover { background: var(--sage); transform: translateY(-3px); }
.footer-col h4  { color: var(--cream); font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; margin-bottom: 18px; }
.footer-col li  { margin-bottom: 9px; }
.footer-col a   { font-size: 0.83rem; color: rgba(250,247,242,0.55); transition: color 0.2s; font-weight: 400; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.78rem;
}
.payment-icons { display: flex; gap: 7px; }
.payment-icon  { background: rgba(250,247,242,0.08); border-radius: 5px; padding: 4px 10px; font-size: 0.7rem; color: rgba(250,247,242,0.6); font-weight: 600; letter-spacing: 0.5px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cat-grid .cat-card:first-child { grid-row: auto; }
  .trust-bar-inner { grid-template-columns: repeat(2,1fr); }
}
/* ── HERO SLIDER — sizing por breakpoint ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 520px;
}
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Flechas — visibles al hover en desktop, ocultas en mobile */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none; border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #3a3a3a; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  opacity: 0; transition: opacity .2s; z-index: 10;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow-prev { left: 12px; }
.hero-arrow-next { right: 12px; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  padding: 0; transition: background .2s, transform .2s;
}
.hero-dot-active { background: #fff; transform: scale(1.3); }

@media (max-width: 640px) {
  .hero-arrow { display: none !important; } /* swipe táctil en mobile */
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero-visual   { display: none; }
  .hero-content  { padding: 40px 24px 32px; order: 2; }
  .hero > .hero-slider { height: 240px; width: 100%; order: 1; }
  .hero-slider   { height: 240px; }
}

@media (max-width: 640px) {
  .hero-content  { padding: 28px 20px 24px; order: 2; }
  .hero > .hero-slider { height: 220px; order: 1; }
  .hero-slider   { height: 220px; }
  .trust-bar-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .modal-inner   { grid-template-columns: 1fr; }
  .modal-img-col { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal-img     { min-height: 220px; }
  .promo-inner   { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
  .nav-inner   { padding: 0 16px; height: 62px; }
  .nav-search  { display: none; }
  .hero-content { padding: 40px 20px; }
  .cat-grid    { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section     { padding: 48px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 400px) {
  .hero-actions  { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION BAR — mobile only — Sprint 3f
   ═══════════════════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  /* Espacio para que el contenido no quede tapado por el nav */
  body { padding-bottom: 64px; }

  /* FAB de WA y chat suben sobre el bottom nav — lados opuestos */
  .wa-fab      { bottom: 76px; right: auto; left: 16px; }
  .chat-fab    { bottom: 76px; right: 16px; }
  .chat-window { bottom: 76px; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(250,247,242,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--cream-deep);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 6px 2px;
    color: var(--stone);
    font-size: 0.60rem;
    font-weight: 500;
    font-family: var(--font-body);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item.active,
  .bottom-nav-item:active {
    color: var(--sage-dark);
  }

  .bottom-nav-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.2s;
  }

  /* Tutty IA — acento especial */
  .bottom-nav-tutty {
    color: var(--sage);
  }
  .bottom-nav-tutty.active,
  .bottom-nav-tutty:active {
    color: var(--sage-dark);
  }
  .bottom-nav-tutty .bottom-nav-icon {
    filter: drop-shadow(0 0 3px rgba(92,122,95,0.4));
  }

  /* Carrito — badge de cantidad */
  .bottom-nav-cart-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--terra);
    color: var(--white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--white);
  }
}

/* ================================================================
   social-proof.css
   ================================================================ */
/* ═══════════════════════════════════════════════════════════
   social-proof.css — TuttyCosas Kids · Sprint 2e · v2.8.0
   Componentes: viewers badge · product views · cart toast
═══════════════════════════════════════════════════════════ */

/* ─── Tokens (hereda del design system base.css) ─────────── */
:root {
  --sp-green      : #22c55e;
  --sp-green-glow : rgba(34, 197, 94, 0.35);
  --sp-bg         : rgba(255, 255, 255, 0.96);
  --sp-shadow     : 0 4px 24px rgba(0, 0, 0, 0.10);
  --sp-radius     : 12px;
  --sp-font-size  : 0.85rem;
  --sp-z-toast    : 9999;
}

/* ─── Dot animado ────────────────────────────────────────── */
.sp-dot {
  display      : inline-block;
  width        : 8px;
  height       : 8px;
  border-radius: 50%;
  background   : var(--sp-green);
  flex-shrink  : 0;
  position     : relative;
}

.sp-dot::after {
  content      : '';
  position     : absolute;
  inset        : -3px;
  border-radius: 50%;
  background   : var(--sp-green-glow);
  animation    : sp-pulse 1.8s ease-out infinite;
}

@keyframes sp-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(2.2); opacity: 0;   }
  100% { transform: scale(1);   opacity: 0;   }
}

/* ─── Viewers en vivo ────────────────────────────────────── */
.sp-viewers {
  display        : flex;
  align-items    : center;
  gap            : 8px;
  justify-content: center;
  padding        : 10px 20px;
  font-size      : var(--sp-font-size);
  color          : #374151;
  background     : #f0fdf4;           /* verde muy suave */
  border-bottom  : 1px solid #bbf7d0;
}

.sp-viewers strong {
  color      : #16a34a;
  font-weight: 700;
}

/* ─── Product views badge (dentro del modal) ─────────────── */
.sp-product-views {
  display    : inline-flex;
  align-items: center;
  gap        : 6px;
  font-size  : 0.82rem;
  color      : #6b7280;
  margin-top : 4px;
}

/* ─── Toast container ────────────────────────────────────── */
.sp-toasts {
  position      : fixed;
  bottom        : 24px;
  left          : 24px;
  z-index       : var(--sp-z-toast);
  display       : flex;
  flex-direction: column;
  gap           : 10px;
  pointer-events: none;   /* clicks pasan a través del gap */
  max-width     : min(340px, calc(100vw - 48px));
}

/* ─── Toast individual ───────────────────────────────────── */
.sp-toast {
  display          : flex;
  align-items      : flex-start;
  gap              : 12px;
  background       : var(--sp-bg);
  border-radius    : var(--sp-radius);
  box-shadow       : var(--sp-shadow);
  padding          : 14px 16px;
  pointer-events   : all;
  border-left      : 3px solid var(--sp-green);

  /* entrada: oculto → visible */
  opacity          : 0;
  transform        : translateY(12px);
  transition       : opacity 320ms ease, transform 320ms ease;
}

.sp-toast--visible {
  opacity  : 1;
  transform: translateY(0);
}

.sp-toast--exit {
  opacity  : 0;
  transform: translateY(8px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.sp-toast__icon {
  font-size  : 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top : 2px;
}

.sp-toast__body {
  flex     : 1;
  font-size: var(--sp-font-size);
  color    : #374151;
  line-height: 1.45;
}

.sp-toast__body strong { color: #111827; font-weight: 700; }
.sp-toast__body em     { font-style: normal; color: #4f46e5; font-weight: 600; }

.sp-toast__time {
  display   : block;
  font-size : 0.75rem;
  color     : #9ca3af;
  margin-top: 3px;
}

.sp-toast__close {
  background : none;
  border     : none;
  cursor     : pointer;
  color      : #9ca3af;
  font-size  : 0.8rem;
  padding    : 0;
  line-height: 1;
  flex-shrink: 0;
  transition : color 160ms;
}
.sp-toast__close:hover { color: #374151; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .sp-toasts {
    bottom: 80px;   /* sobre la barra de navegación mobile */
    left  : 12px;
    right : 12px;
    max-width: none;
  }
}

/* ================================================================
   cart-trust.css
   ================================================================ */
/* ═══════════════════════════════════════════════════════════
   cart-trust.css — TuttyCosas Kids · Sprint 2f · v2.9.0
   Trust bar del carrito — rompe barreras antes del pago
   Inspirado en: Parade, Lovevery, Cider (DTC clase mundial)
═══════════════════════════════════════════════════════════ */

/* ─── Trust bar container ────────────────────────────────── */
.cart-trust-bar {
  display       : flex;
  flex-direction: column;
  gap           : 0;
  margin        : 12px 0 16px;
  border        : 1px solid #e5e7eb;
  border-radius : 12px;
  overflow      : hidden;
  background    : #fafafa;
}

/* ─── Cada ítem ──────────────────────────────────────────── */
.trust-item {
  display    : flex;
  align-items: flex-start;
  gap        : 12px;
  padding    : 11px 14px;
  transition : background 160ms ease;
}

.trust-item + .trust-item {
  border-top: 1px solid #e5e7eb;
}

.trust-item:hover {
  background: #f0fdf4; /* verde suave al hover */
}

/* ─── Ícono ──────────────────────────────────────────────── */
.trust-icon {
  font-size  : 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top : 2px;
}

/* ─── Texto ──────────────────────────────────────────────── */
.trust-text {
  display       : flex;
  flex-direction: column;
  gap           : 2px;
}

.trust-text strong {
  font-size  : 0.8rem;
  font-weight: 600;
  color      : #111827;
  line-height: 1.3;
}

.trust-text span {
  font-size  : 0.74rem;
  color      : #6b7280;
  line-height: 1.4;
}

/* ─── Botón checkout mejorado ────────────────────────────── */
.btn-checkout {
  width          : 100%;
  padding        : 15px;
  background     : #16a34a;   /* verde confianza, no el rojo urgencia */
  color          : #fff;
  border         : none;
  border-radius  : 10px;
  font-size      : 1rem;
  font-weight    : 700;
  cursor         : pointer;
  letter-spacing : 0.01em;
  transition     : background 180ms ease, transform 100ms ease,
                   box-shadow 180ms ease;
  box-shadow     : 0 2px 8px rgba(22, 163, 74, 0.30);
  margin-bottom  : 10px;
}

.btn-checkout:hover {
  background: #15803d;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.38);
  transform : translateY(-1px);
}

.btn-checkout:active {
  transform : translateY(0);
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.25);
}

/* ─── Cart note mejorada ─────────────────────────────────── */
.cart-note {
  text-align : center;
  font-size  : 0.73rem;
  color      : #9ca3af;
  margin     : 0;
  line-height: 1.5;
}

.cart-note strong {
  color      : #6b7280;
  font-weight: 600;
}

/* ─── WhatsApp link mejorado ─────────────────────────────── */
.cart-whatsapp {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 6px;
  padding        : 10px;
  background     : #f0fdf4;
  border         : 1px solid #bbf7d0;
  border-radius  : 8px;
  color          : #16a34a;
  font-size      : 0.82rem;
  font-weight    : 600;
  text-decoration: none;
  margin-bottom  : 10px;
  transition     : background 160ms ease;
}

.cart-whatsapp:hover {
  background: #dcfce7;
}

/* ─── Responsive — no cambia mucho, ya es sidebar ───────── */
@media (max-width: 380px) {
  .trust-text strong { font-size: 0.77rem; }
  .trust-text span   { font-size: 0.71rem; }
  .btn-checkout      { font-size: 0.95rem; padding: 13px; }
}

/* ================================================================
   consent.css
   ================================================================ */
/* TuttyCosas Kids — css/consent.css
   Banner de consentimiento. Coherente con paleta de marca (#5C7A5F). */

/* Banner arranca oculto — JS lo muestra con delay 800ms */
#tcConsentBanner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;                        /* bajo modales del carrito (9999) */
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.22);
  padding: 10px 20px;

  /* Arranca invisible, slide-up activado por clase .tc-visible */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#tcConsentBanner.tc-visible {
  transform: translateY(0);
}

.tc-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;                    /* todo en una línea */
}

.tc-consent-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(245, 240, 232, 0.80);
  flex: 1 1 0;
  min-width: 0;
}

.tc-consent-text a {
  color: #8fb892;                       /* sage claro — legible sobre oscuro */
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.tc-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.tc-consent-btn {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.tc-consent-reject {
  background: transparent;
  color: rgba(245, 240, 232, 0.50);
  border: 1px solid rgba(255,255,255,0.18);
}
.tc-consent-reject:hover {
  color: rgba(245, 240, 232, 0.85);
  border-color: rgba(255,255,255,0.35);
}

.tc-consent-accept {
  background: #5C7A5F;
  color: #fff;
  border: 1px solid #5C7A5F;
}
.tc-consent-accept:hover { background: #4a6a4d; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  #tcConsentBanner {
    bottom: 64px;
    padding: 10px 14px;
  }

  .tc-consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tc-consent-text {
    font-size: 0.75rem;
  }

  .tc-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .tc-consent-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}
