/* ═══════════════════════════════════════════════════════════════
   COMPONENTS.CSS — Buttons, Cards, Modals, Panels, Notifications
   Sistema de diseño Hi-Fi RALOZ v2
═══════════════════════════════════════════════════════════════ */

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 130ms var(--ease-out),
              box-shadow 130ms var(--ease-out),
              background-color 130ms var(--ease-out);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--yellow-dark), 0 8px 18px rgba(246,194,61,0.32);
}
.btn-primary:hover { background: #ffce4a; box-shadow: 0 1px 0 var(--yellow-dark), 0 12px 24px rgba(246,194,61,0.42); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(29,58,138,0.25);
}
.btn-blue:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* ===== COLEGIOS PHOTO CARDS (C2) ===== */
.colegios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.colegio-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: var(--shadow);
}
.colegio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.colegio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* enfoca la cara, no el centro del cuerpo */
  transition: transform 0.5s var(--ease-out);
}
.colegio-card:hover img { transform: scale(1.04); }

.colegio-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0) 30%,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.85) 100%);
}

.colegio-top {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex; align-items: center; gap: 10px;
}

.colegio-shield {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.colegio-shield.b { background: rgba(29,58,138,0.85); }
.colegio-shield.r { background: rgba(193,53,46,0.85); }
.colegio-shield.y { background: rgba(246,194,61,0.95); color: var(--ink); }

.colegio-toplabel {
  color: var(--white);
  font-size: 13px; font-weight: 500;
  opacity: 0.9;
}

.colegio-bottom {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  color: var(--white);
}
.colegio-name {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 600;
  line-height: 1.1; letter-spacing: -0.5px;
  margin: 0 0 4px;
}
.colegio-meta {
  font-size: 13px; opacity: 0.85;
  margin: 0 0 14px;
}
.colegio-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: gap 0.2s;
}
.colegio-card:hover .colegio-cta { gap: 14px; }

/* Colegios extra strip */
.colegios-extra {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px dashed var(--ink);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.colegios-extra .cx-text { flex: 1; min-width: 240px; }
.colegios-extra .cx-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.colegios-extra .cx-text span { font-size: 14px; color: var(--ink-2); }

/* ===== SCHOOL TABS ===== */
.school-tabs {
  display: flex; gap: 4px;
  background: #f3f0e6;
  padding: 4px;
  border-radius: 12px;
}
.school-tab {
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.school-tab:hover { color: var(--ink); }
.school-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.school-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.school-tab.b .dot { background: var(--blue); }
.school-tab.r .dot { background: var(--red); }
.school-tab.y .dot { background: var(--yellow-dark); }

/* ===== FILTER CHIPS ===== */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ===== TIENDA COLEGIO CARD (JS-generated) ===== */
.tienda-colegio-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out), background 0.2s;
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tienda-colegio-card:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,58,138,0.12);
}
.tienda-colegio-card .tc-icon-wrap {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  transition: background 0.2s, color 0.2s;
}
.tienda-colegio-card:hover .tc-icon-wrap {
  background: var(--blue);
  color: var(--white);
}
/* legacy escudo class */
.tienda-colegio-card .tc-escudo {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
}
.tienda-colegio-card .tc-text {
  flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.tienda-colegio-card .tc-nombre {
  font-weight: 700; font-size: 15px;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tienda-colegio-card .tc-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.tienda-colegio-card .tc-ciudad,
.tienda-colegio-card .tc-count {
  font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.tienda-colegio-card .tc-arrow {
  color: var(--muted); font-size: 14px; flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.tienda-colegio-card:hover .tc-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* ===== TIENDA PRODUCTO CARD (JS-generated) ===== */
.tienda-producto-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tienda-producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.13), 0 4px 10px rgba(0,0,0,0.06);
  border-color: #c8c5bc;
}
.tienda-producto-card.tpc-fabricacion {
  border-color: rgba(246,194,61,0.5);
  background: #fffef8;
}

.tpc-imagen {
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ece7d6 0%, #d8d2bd 100%);
}
/* Círculo decorativo detrás del ícono */
.tpc-imagen::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transition: transform 0.32s var(--ease-out), opacity 0.32s;
  pointer-events: none;
}
.tienda-producto-card:hover .tpc-imagen::before {
  transform: scale(1.35);
  opacity: 0.5;
}
.tpc-imagen.tpc-tipo-completo  { background: linear-gradient(145deg, #e0e7ff, #c7d2fe); }
.tpc-imagen.tpc-tipo-nino      { background: linear-gradient(145deg, #dbeafe, #93c5fd); }
.tpc-imagen.tpc-tipo-nina      { background: linear-gradient(145deg, #fce7f3, #f9a8d4); }
.tpc-imagen.tpc-tipo-edu       { background: linear-gradient(145deg, #dcfce7, #86efac); }
.tpc-imagen.tpc-tipo-diario    { background: linear-gradient(145deg, #fef9c3, #fde047); }
.tpc-imagen.tpc-tipo-medias    { background: linear-gradient(145deg, #f1f5f9, #cbd5e1); }
.tpc-imagen.tpc-tipo-accesorio { background: linear-gradient(145deg, #fff7ed, #fed7aa); }
.tpc-imagen.tpc-tipo-default   { background: linear-gradient(145deg, #f3f0e6, #e2ddc8); }

/* Cuando hay foto real del producto */
.tpc-imagen.tpc-con-foto          { background: #ffffff; }
.tpc-imagen.tpc-con-foto::before  { display: none; }
.tpc-foto {
  width: 100%; height: 100%;
  object-fit: cover;          /* rellena la caja uniforme (catálogo ordenado) */
  object-position: center;
  position: relative; z-index: 1;
  transition: transform 0.32s var(--ease-out);
}
.tienda-producto-card:hover .tpc-foto { transform: scale(1.05); }

.tpc-icon {
  font-size: 4rem;
  color: rgba(0,0,0,0.22);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
  transition: transform 0.28s var(--ease-out), filter 0.28s, color 0.28s;
  position: relative; z-index: 1;
}
.tienda-producto-card:hover .tpc-icon {
  transform: scale(1.14) translateY(-4px);
  color: rgba(0,0,0,0.36);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.18));
}

.tpc-badge-poco {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: var(--white);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.tpc-badge-fab {
  position: absolute; top: 10px; left: 10px;
  background: var(--white);
  padding: 4px 10px; border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.tpc-info {
  padding: 16px 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.tpc-nombre {
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}
.tpc-tipo-tag {
  font-size: 11px; font-weight: 700;
  color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--blue-soft);
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  width: fit-content;
}
.tpc-precio-wrap { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.tpc-precio {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink);
}
.tpc-precio-desde { font-size: 12px; color: var(--muted); }
.tpc-tallas-hint  { font-size: 12.5px; color: var(--ink-2); }

.tpc-fab-tiempo {
  font-size: 12px; color: var(--yellow-dark);
  display: flex; align-items: center; gap: 5px;
}
.tpc-fab-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(246,194,61,0.18);
  color: var(--yellow-dark);
  border: 1px solid rgba(246,194,61,0.35);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-top: 2px;
}
.tpc-stock-ok {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(47,122,58,0.09);
  color: var(--green);
  border: 1px solid rgba(47,122,58,0.25);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-top: 2px;
}
.tpc-stock-poco {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(193,53,46,0.09);
  color: var(--red);
  border: 1px solid rgba(193,53,46,0.25);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-top: 2px;
}

.btn-agregar-carrito {
  margin: 0 14px 14px;
  padding: 13px 14px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 2px 0 var(--yellow-dark), 0 6px 18px rgba(246,194,61,0.36);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: 0.2px;
}
.btn-agregar-carrito:hover {
  background: #ffce4a;
  box-shadow: 0 2px 0 var(--yellow-dark), 0 10px 28px rgba(246,194,61,0.50);
  transform: translateY(-2px);
}
.btn-agregar-carrito:active { transform: scale(0.97); box-shadow: 0 1px 0 var(--yellow-dark); }
.btn-agregar-carrito.btn-fab {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 2px 0 #000, 0 6px 18px rgba(0,0,0,0.22);
}
.btn-agregar-carrito.btn-fab:hover {
  background: #2a2a3a;
  box-shadow: 0 2px 0 #000, 0 10px 26px rgba(0,0,0,0.30);
  transform: translateY(-2px);
}

/* ===== TIENDA FILTER TABS (JS-generated) ===== */
.tienda-filtro {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tienda-filtro:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.tienda-filtro.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== COMO PEDIR (3 pasos) ===== */
.pasos-strip {
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.paso {
  display: flex; gap: 16px; align-items: flex-start;
}
.paso-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: 'Fraunces', serif;
}
.paso-text strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.paso-text span   { font-size: 13px; color: #bdc1c8; }
.pasos-divider    { width: 1px; background: #2a2d35; height: 100%; }
.pasos-cta {
  color: var(--yellow); font-weight: 600;
  border-left: 1px solid #2a2d35;
  padding-left: 24px;
  font-size: 14px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}

/* ===== CARRITO PANEL ===== */
#carritoPanel {
  position: fixed;
  top: 0; right: 0;
  width: 400px; max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  flex-direction: column;        /* JS sets display:flex to show */
  box-shadow: -4px 0 40px rgba(0,0,0,0.12);
}

.carrito-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.carrito-panel-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 600;
  margin: 0;
}
.carrito-panel-header button {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 14px; color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s;
}
.carrito-panel-header button:hover { background: var(--line); }

#carritoItems {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}

.carrito-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 15px;
  line-height: 2;
}

.carrito-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ci-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ci-info {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.ci-nombre {
  font-weight: 600; font-size: 14px;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ci-detalle { font-size: 12px; color: var(--muted); }
.ci-acciones {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.ci-subtotal { font-weight: 700; font-size: 14px; color: var(--ink); }
.ci-quitar {
  font-size: 11px; font-weight: 600;
  color: var(--red); background: none; border: none;
  cursor: pointer; padding: 0;
  font-family: inherit;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.ci-quitar:hover { opacity: 1; }

#carritoPanelFooter {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.carrito-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.carrito-total-label { font-size: 14px; color: var(--ink-2); }
.carrito-total-val {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
}
#carritoCheckout {
  width: 100%; padding: 14px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
#carritoCheckout:hover { background: var(--blue); }

/* ===== TALLA BOTTOM SHEET (rediseño 2026-05) ===== */

/* Backdrop */
.talla-bs-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1999;
}

/* Wrapper full-screen, alinea el sheet al fondo */
.talla-bs-wrapper {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* El sheet */
.talla-bs-inner {
  width: 100%; max-width: 540px;
  max-height: 92vh;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  animation: bsSlideUp 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes bsSlideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* Handle de drag */
.talla-bs-handle {
  width: 40px; height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 14px auto 0;
  flex-shrink: 0;
}

/* Área del ícono grande (gradiente por tipo) */
.talla-bs-icon-area {
  height: 108px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 3.4rem;
  color: rgba(0,0,0,0.2);
  position: relative;
}
.talla-bs-icon-area.tpc-tipo-completo  { background: linear-gradient(145deg, #e0e7ff, #c7d2fe); }
.talla-bs-icon-area.tpc-tipo-nino      { background: linear-gradient(145deg, #dbeafe, #93c5fd); }
.talla-bs-icon-area.tpc-tipo-nina      { background: linear-gradient(145deg, #fce7f3, #f9a8d4); }
.talla-bs-icon-area.tpc-tipo-edu       { background: linear-gradient(145deg, #dcfce7, #86efac); }
.talla-bs-icon-area.tpc-tipo-diario    { background: linear-gradient(145deg, #fef9c3, #fde047); }
.talla-bs-icon-area.tpc-tipo-medias    { background: linear-gradient(145deg, #f1f5f9, #cbd5e1); }
.talla-bs-icon-area.tpc-tipo-accesorio { background: linear-gradient(145deg, #fff7ed, #fed7aa); }
.talla-bs-icon-area.tpc-tipo-default   { background: linear-gradient(145deg, #f3f0e6, #e2ddc8); }

/* Foto real del producto dentro del modal de talla */
.talla-bs-icon-area.talla-bs-icon-foto {
  height: 260px;
  background: #ffffff;
  padding: 10px;
}
.talla-bs-foto {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.talla-bs-thumbs {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
}
.talla-bs-thumb {
  width: 42px; height: 42px;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 0; cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
  transition: border-color 0.15s;
}
.talla-bs-thumb.activa { border-color: var(--yellow); }
.talla-bs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.talla-bs-foto { cursor: zoom-in; }

/* Lightbox (foto en grande) */
.raloz-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 3000; padding: 24px; cursor: zoom-out;
}
.raloz-lightbox.abierto { display: flex; }
.raloz-lightbox img { max-width: 95%; max-height: 95%; object-fit: contain; border-radius: 8px; }
.raloz-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 38px; line-height: 1;
  background: none; border: none; color: #fff; cursor: pointer;
}

/* ── Buscador de prendas ── */
.buscador-overlay {
  position: fixed; inset: 0;
  background: rgba(20,24,40,0.55);
  display: none; justify-content: center;
  z-index: 2500; padding: 70px 16px 16px;
}
.buscador-overlay.abierto { display: flex; }
.buscador-box {
  width: 100%; max-width: 560px;
  background: var(--white, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  align-self: flex-start;
  max-height: 80vh; display: flex; flex-direction: column;
}
.buscador-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line, #eee);
}
.buscador-input-wrap i { color: var(--ink-2, #888); }
.buscador-input-wrap input {
  flex: 1; border: none; outline: none;
  font-size: 16px; background: transparent; color: var(--ink, #222);
}
.buscador-input-wrap button {
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--ink-2, #888); cursor: pointer;
}
.buscador-resultados { overflow-y: auto; padding: 8px; }
.buscador-vacio { text-align: center; color: var(--ink-2, #999); padding: 24px 12px; }
.buscador-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 8px 10px; border: none; background: none; cursor: pointer;
  border-radius: 10px;
}
.buscador-item:hover { background: var(--paper, #f5f3ec); }
.buscador-item-img, .buscador-item-ico {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  object-fit: contain; background: #fff; border: 1px solid var(--line, #eee);
}
.buscador-item-ico { display: grid; place-items: center; color: var(--ink-2, #aaa); }
.buscador-item-txt { flex: 1; display: flex; flex-direction: column; }
.buscador-item-txt strong { font-size: 15px; color: var(--ink, #222); }
.buscador-item-txt small { font-size: 12px; color: var(--ink-2, #888); }
.buscador-item > i { color: var(--ink-2, #ccc); }

/* ── Productos destacados (inicio) ── */
.destacados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.destacado-card {
  border: 1px solid var(--line, #eee);
  border-radius: 14px; overflow: hidden;
  background: #fff; cursor: pointer; text-align: left; padding: 0;
  transition: transform 0.18s, box-shadow 0.18s;
}
.destacado-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.destacado-img { aspect-ratio: 1/1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.destacado-img img { width: 100%; height: 100%; object-fit: contain; }
.destacado-info { padding: 10px 12px 12px; }
.destacado-nombre { display: block; font-weight: 600; font-size: 14px; color: var(--ink, #222); }
.destacado-colegio { display: block; font-size: 12px; color: var(--ink-2, #888); margin-top: 2px; }

/* Header: nombre + tipo + cerrar */
.talla-bs-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 14px 20px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.talla-bs-header-text { flex: 1; min-width: 0; }
.talla-bs-title {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 600;
  color: var(--ink); margin: 0;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.talla-bs-tipo {
  font-size: 11px; font-weight: 700;
  color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 3px 0 0;
}
.talla-bs-close {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2); font-size: 14px;
  transition: background 0.15s;
}
.talla-bs-close:hover { background: var(--line); }

/* Zona scrollable */
.talla-bs-content {
  flex: 1; overflow-y: auto;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
  overscroll-behavior: contain;
}

/* Aviso fabricación */
.talla-fab-aviso {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(246,194,61,0.1);
  border: 1px solid rgba(246,194,61,0.3);
  border-radius: 12px; padding: 12px 14px;
  font-size: 13px; color: var(--ink-2);
}
.talla-fab-aviso i { color: var(--yellow-dark); margin-top: 2px; flex-shrink: 0; }
.talla-fab-aviso strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.talla-fab-aviso p { margin: 0; line-height: 1.45; }

/* Label instrucción */
.talla-instruccion {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted); margin: 0;
}

/* Grid de chips de talla */
.talla-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}
.talla-pill {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  min-height: 60px; padding: 8px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.talla-pill:hover:not(.selected) {
  border-color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.talla-pill.selected {
  border-color: var(--ink);
  background: var(--ink);
  transform: scale(0.96);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.talla-pill-anticipo {
  border-style: dashed;
  border-color: rgba(246,194,61,0.55);
}
.talla-pill-anticipo.selected { border-style: solid; }
.talla-pill-val {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.talla-pill.selected .talla-pill-val { color: var(--white); }
.talla-pill-fab {
  font-size: 9px; font-weight: 700;
  color: var(--yellow-dark);
  text-transform: uppercase; letter-spacing: 0.2px;
}
.talla-pill.selected .talla-pill-fab { color: var(--yellow); }
.talla-pill-ok {
  font-size: 9px; font-weight: 700;
  color: var(--green);
}
.talla-pill.selected .talla-pill-ok { color: #86efac; }

/* Zona de detalle (precio + cantidad + disponibilidad) */
.talla-seleccion-detalle {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
  animation: tsDetailIn 0.22s var(--ease-out);
}
@keyframes tsDetailIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tsd-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.tsd-precio-wrap { display: flex; flex-direction: column; gap: 2px; }
.tsd-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted);
}
.tsd-precio {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.tsd-stock-info { display: flex; align-items: flex-end; padding-bottom: 2px; }
.tsd-stock-ok {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(47,122,58,0.1); color: var(--green);
  border: 1px solid rgba(47,122,58,0.2);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.tsd-stock-fab {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(246,194,61,0.12); color: var(--yellow-dark);
  border: 1px solid rgba(246,194,61,0.3);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.tsd-cantidad-wrap {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.tsd-cantidad {
  display: flex; align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px; overflow: hidden;
  background: var(--white);
}
.talla-qty-btn {
  width: 42px; height: 42px;
  background: none; border: none;
  font-size: 20px; font-weight: 300; color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  font-family: inherit; transition: background 0.12s;
}
.talla-qty-btn:hover { background: var(--paper); }
.talla-cant-val {
  min-width: 38px; text-align: center;
  font-weight: 700; font-size: 16px; color: var(--ink);
  height: 42px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

/* Error reserva */
.talla-reserva-error {
  color: var(--red); font-size: 13px;
  text-align: center; margin: 0;
  padding: 10px 14px;
  background: rgba(193,53,46,0.07);
  border-radius: 8px;
}

/* Footer sticky — siempre visible al fondo del sheet */
.talla-bs-footer {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  background: rgba(251,249,243,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Botón principal */
.btn-talla-add {
  width: 100%; min-height: 52px;
  padding: 14px 20px;
  background: var(--yellow); color: var(--ink);
  border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 2px 0 var(--yellow-dark), 0 8px 20px rgba(246,194,61,0.35);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: 0.1px;
}
.btn-talla-add:hover:not(:disabled) {
  background: #ffce4a;
  box-shadow: 0 2px 0 var(--yellow-dark), 0 12px 28px rgba(246,194,61,0.48);
  transform: translateY(-1px);
}
.btn-talla-add:active:not(:disabled) { transform: scale(0.98); }
.btn-talla-add:disabled {
  background: var(--line); color: var(--muted);
  box-shadow: none; cursor: default;
}
.btn-talla-add.btn-talla-fab {
  background: var(--ink); color: var(--white);
  box-shadow: 0 2px 0 #000, 0 8px 20px rgba(0,0,0,0.22);
}
.btn-talla-add.btn-talla-fab:hover:not(:disabled) {
  background: #1e2030;
  box-shadow: 0 2px 0 #000, 0 12px 28px rgba(0,0,0,0.32);
  transform: translateY(-1px);
}

/* ===== COLOR MODAL (Relojes) ===== */
#colorOverlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
  z-index: 1999;
}

#colorModal {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 24px;
}

.color-modal-inner {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.22s var(--ease-out);
}
.color-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.color-modal-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px; margin: 0;
}
#colorCerrar {
  width: 32px; height: 32px;
  border-radius: 8px; background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2);
  font-size: 14px; flex-shrink: 0;
}
#colorCerrar:hover { background: var(--line); }

.color-modal-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 36px;
  margin-bottom: 16px;
}

#colorOpciones {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px;
}
.reloj-color-dot,
.color-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.reloj-color-dot:hover,
.color-dot:hover { transform: scale(1.1); }
.reloj-color-dot.selected,
.color-dot.selected { border-color: var(--ink); transform: scale(1.1); }

#colorDetalle {
  padding: 14px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.color-detalle-nombre { font-weight: 600; font-size: 15px; color: var(--ink); }
.color-detalle-stock  { font-size: 13px; color: var(--muted); margin-top: 4px; }

.color-qty-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.color-qty-ctrl { display: flex; align-items: center; gap: 12px; }
.color-qty-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink);
  font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.15s;
}
.color-qty-btn:hover { border-color: var(--ink); }
#colorCantVal { font-weight: 700; font-size: 18px; min-width: 28px; text-align: center; }
#colorPrecioDisplay {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 700;
  color: var(--ink);
}

#btnColorAdd {
  width: 100%;
  padding: 14px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
#btnColorAdd:hover { background: var(--blue); }

/* ===== CHECKOUT MODAL ===== */
#checkoutOverlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 2999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}

#checkoutModal {
  display: none;
  position: fixed; inset: 0;
  z-index: 3000;
  align-items: center; justify-content: center;
  padding: 20px;
}

.checkout-modal-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.25s var(--ease-out);
}

.checkout-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--white); z-index: 1;
}
.checkout-modal-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px; margin: 0;
}
#checkoutCerrar {
  width: 32px; height: 32px;
  border-radius: 8px; background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2); font-size: 14px;
}
#checkoutCerrar:hover { background: var(--line); }

.checkout-body { padding: 24px; }

.checkout-resumen {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.checkout-resumen-title {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); margin-bottom: 10px;
}
.checkout-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; font-size: 14px; color: var(--ink-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-item:last-child { border-bottom: none; }

/* Abono / fabricacion selector */
.ck-abono-wrap { margin-bottom: 16px; }
.ck-abono-wrap > p {
  font-size: 14px; color: var(--ink-2);
  margin-bottom: 10px; line-height: 1.5;
}
.ck-abono-opciones { display: flex; flex-direction: column; gap: 8px; }
.ck-abono-btn {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color 0.15s, background 0.15s;
  display: flex; flex-direction: column; gap: 3px;
}
.ck-abono-btn:hover { border-color: var(--ink); }
.ck-abono-btn.selected { border-color: var(--ink); background: var(--paper); }
.abono-pct  { font-size: 14px; font-weight: 700; color: var(--ink); }
.abono-monto { font-size: 13px; color: var(--muted); }

.ck-politica-nota {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 6px; align-items: flex-start;
  margin-top: 10px; line-height: 1.5;
}
.ck-politica-nota i { margin-top: 2px; flex-shrink: 0; }

.checkout-campos { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.checkout-campo label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 5px;
}
.checkout-campo input,
.checkout-campo select,
.checkout-campo textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.checkout-campo input:focus,
.checkout-campo select:focus,
.checkout-campo textarea:focus { border-color: var(--blue); }

.checkout-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1.5px solid var(--line);
  margin-bottom: 16px;
}
.checkout-total-label { font-weight: 600; font-size: 15px; color: var(--ink-2); }
#checkoutTotalDisplay {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 700; color: var(--ink);
}

#checkoutPagarBtn {
  width: 100%;
  padding: 16px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s;
}
#checkoutPagarBtn:hover { background: var(--blue-dark); }

#checkoutError {
  display: none;
  background: rgba(193,53,46,0.08);
  border: 1px solid rgba(193,53,46,0.25);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  margin-top: 12px;
}
#checkoutError.show { display: block; }

/* ===== TESTIMONIOS BLOCK ===== */
.testimonios-block {
  background: var(--blue);
  color: var(--white);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.testimonios-block::before {
  content: '"';
  position: absolute;
  font-family: 'Fraunces', serif;
  font-size: 280px;
  line-height: 0.7;
  top: 30px; right: 30px;
  color: rgba(255,255,255,0.06);
  font-weight: 700;
  pointer-events: none;
}
.test-eyebrow { color: var(--yellow); display: block; margin-bottom: 8px; }
.test-title   { color: var(--white); margin-bottom: 24px; }
.test-title em { color: var(--yellow); -webkit-text-fill-color: var(--yellow); }
.test-quote {
  font-family: 'Fraunces', serif;
  font-size: 22px; line-height: 1.4; font-weight: 400;
  margin: 0 0 22px;
  position: relative; z-index: 2;
}
.test-author {
  display: flex; align-items: center; gap: 12px;
}
.test-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  font-family: 'Fraunces', serif;
  flex-shrink: 0;
}
.test-author strong { display: block; font-size: 15px; font-weight: 600; }
.test-author span   { font-size: 13px; opacity: 0.8; }
.test-stars { color: var(--yellow); font-size: 14px; letter-spacing: 1px; margin-bottom: 12px; }

.test-pagination {
  margin-top: 26px;
  display: flex; align-items: center; gap: 12px;
}
.test-pagination .dots { display: flex; gap: 6px; }
.test-pagination .dot  {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.2s;
}
.test-pagination .dot.active { background: var(--yellow); width: 24px; border-radius: 4px; }

/* ===== NOSOTROS BLOCK ===== */
.nosotros-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  display: flex; flex-direction: column;
}
.nosotros-photo {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.nosotros-photo img { width: 100%; height: 100%; object-fit: cover; }
.nosotros-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--yellow);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.nosotros-block h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 600;
  margin: 0 0 8px; line-height: 1.2;
}
.nosotros-block p {
  font-size: 14px; color: var(--ink-2);
  margin: 0 0 18px; line-height: 1.55;
}
.nosotros-link {
  color: var(--ink); font-weight: 600; font-size: 14px;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  width: fit-content;
  text-decoration: none;
}

/* ===== Quiénes somos: features grid ===== */
.quienes-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.quienes-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.quienes-feature h4 {
  font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px;
}
.quienes-feature p {
  font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45;
}
.feature-icon-box {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow-soft, #fdf3d3);
  color: var(--ink);
  border-radius: 12px;
  font-size: 18px;
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover { border-color: #ccc9bc; }

.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--ink);
  padding: 18px 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-align: left; gap: 16px;
  font-family: inherit;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--paper); }
.faq-icon { color: var(--muted); flex-shrink: 0; transition: transform 0.3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--blue); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-top: 0 solid var(--line);
}
.faq-answer.open {
  max-height: 500px;
  padding: 0 22px 18px;
  border-top-width: 1px;
}
.faq-answer p { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin-bottom: 0.5rem; }

.tallas-table {
  width: 100%; border-collapse: collapse;
  margin-top: 10px; font-size: 14px;
}
.tallas-table th, .tallas-table td {
  padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.tallas-table th { color: var(--blue); font-weight: 600; font-size: 13px; }
.tallas-table td { color: var(--ink-2); }

/* ===== STAT NUMBERS ===== */
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-icon-box {
  width: 52px; height: 52px;
  background: var(--blue-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--blue);
}
.stat-value   { display: flex; align-items: baseline; gap: 2px; }
.stat-number  { font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; color: var(--ink); line-height: 1; }
.stat-suffix  { font-size: 1.6rem; font-weight: 700; color: var(--yellow-dark); }
.stat-label   { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ===== TIENDA API INDICATOR ===== */
#tiendaApiInd,
.tienda-api-ind {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  transition: opacity 1s ease;
  margin-top: 8px;
}
.tienda-api-ind.conectando,
#tiendaApiInd.conectando { background: #FFF8E1; color: #B45309; border: 1px solid #FDE68A; }
.tienda-api-ind.online,
#tiendaApiInd.online     { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.tienda-api-ind.offline,
#tiendaApiInd.offline    { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }

/* ===== API STATUS (connection badge) ===== */
.api-status {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: var(--muted);
}
.api-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); animation: pulse-dot 2s infinite;
}
.api-dot.online  { background: #22c55e; animation: none; }
.api-dot.offline { background: #f87171; animation: none; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ===== NOTIFICATIONS + TOAST ===== */
.notification {
  position: fixed; top: 20px; right: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--white); font-weight: 600; font-size: 14px;
  z-index: 10000; box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s var(--ease-out);
  max-width: 340px;
}
.notification-success { background: #15803d; border-left: 4px solid #166534; }
.notification-error   { background: var(--red); border-left: 4px solid #991b1b; }
.notification-info    { background: var(--blue); border-left: 4px solid var(--blue-dark); }
@keyframes slideIn  { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.raloz-toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--white);
  padding: 11px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  z-index: 9000; opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.raloz-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== STATUS DOTS ===== */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online      { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.status-dot.offline     { background: var(--muted); }
.status-dot.connecting  { background: var(--yellow); animation: pulse-dot 1.5s infinite; }

/* ===== QUICK SCHOOL SELECTOR (hero right) ===== */
.hero-quick-title {
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 0 0 10px;
}
.hero-quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-school {
  border: 1.5px solid var(--line);
  background: var(--white);
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left; cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 4px;
}
.quick-school:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.qs-flag {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 14px;
}
.qs-flag.b { background: var(--blue); }
.qs-flag.r { background: var(--red); }
.qs-flag.y { background: var(--yellow); color: var(--ink); }
.qs-name   { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.qs-count  { font-size: 11px; color: var(--muted); }

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
.tienda-loading-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 48px 0;
  color: var(--muted); font-size: 14px;
}

/* ===== SECTION LABEL BADGE ===== */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}

/* ===== PHOTO TAGS (hero overlay) ===== */
.photo-tag {
  position: absolute;
  background: rgba(255,255,255,0.94);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 6px;
}
.photo-tag .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.photo-quality {
  position: absolute;
  background: var(--ink); color: var(--white);
  padding: 8px 12px; border-radius: 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; line-height: 1.1;
}
.photo-quality strong { color: var(--yellow); display: block; font-size: 13px; }

/* ===== CONTACTO FORM ===== */
.contacto-form { display: flex; flex-direction: column; gap: 14px; }
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); outline: none;
  transition: border-color 0.15s;
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus { border-color: var(--blue); }
.contacto-form textarea { resize: vertical; min-height: 100px; }

/* ===== COTIZADOR ===== */
.cot-item-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--muted); text-align: center; padding: 24px;
}
.cot-item-empty i  { font-size: 2rem; opacity: 0.4; }
.cot-item-empty p  { font-size: 14px; margin: 0; }

.cot-item {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.cot-item-name  { color: var(--ink); font-size: 14px; font-weight: 500; }
.cot-item-talla {
  background: var(--blue-soft); border: 1px solid rgba(29,58,138,0.15);
  border-radius: 6px; padding: 3px 8px;
  color: var(--blue); font-size: 12px; font-weight: 600;
}
.cot-item-qty   { display: flex; align-items: center; gap: 5px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.qty-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.qty-val { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.cot-item-remove {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 14px; padding: 2px;
  transition: color 0.15s; font-family: inherit;
}
.cot-item-remove:hover { color: var(--red); }
