/* ============ Envíos congelados — estilos propios ============
   Hereda las variables de color/tipografía de ../css/styles.css y reutiliza
   sus clases compartidas (.site-header, .primary-btn, .modal-overlay...).
   Todo lo de acá vive bajo el prefijo "fz-" para no chocar con el resto
   del sitio. */

:root {
  --fz-ice: #eaf6fb;
  --fz-ice-deep: #0b3d63;
  --fz-frost-border: #cfe8f3;
}

/* ---------- Header propio (rutas relativas correctas desde /envios/) ---------- */
.fz-header .header-inner { max-width: 1080px; }
.fz-back-link {
  text-decoration: none;
}

/* ---------- Hero ---------- */
.fz-hero {
  background: linear-gradient(180deg, var(--fz-ice) 0%, var(--bg) 100%);
  padding: 36px 18px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fz-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.fz-hero h2 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: var(--fz-ice-deep);
}
.fz-hero p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.fz-hero .primary-btn {
  display: inline-block;
  background: var(--co-red);
  padding: 12px 26px;
}

.fz-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fz-snow span {
  position: absolute;
  top: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  animation: fz-fall linear infinite;
}
@keyframes fz-fall {
  to { transform: translateY(340px); opacity: 0; }
}

.fz-trust-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.fz-trust-pill {
  background: #fff;
  border: 1px solid var(--fz-frost-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.76rem;
  color: var(--fz-ice-deep);
  font-weight: 600;
}

/* ---------- Cómo funciona ---------- */
.fz-how {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 18px;
}
.fz-how h3 { text-align: center; font-size: 1.2rem; margin: 0 0 20px; }
.fz-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fz-how-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.fz-how-step .fz-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fz-ice-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px;
  font-size: 0.85rem;
}
.fz-how-step h4 { margin: 0 0 6px; font-size: 0.95rem; }
.fz-how-step p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Mascota / compañero de empaque ---------- */
.fz-mascot {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px 10px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.fz-mascot img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 4px 8px rgba(11, 61, 99, 0.2));
}
.fz-mascot-bubble {
  background: #fff;
  border: 1px solid var(--fz-frost-border);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: opacity 0.15s ease;
}

/* ---------- Catálogo ---------- */
.fz-catalog { max-width: 1080px; margin: 0 auto; padding: 10px 18px 30px; }
.fz-catalog h3 { text-align: center; margin: 0 0 4px; font-size: 1.2rem; }
.fz-catalog .subt { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 20px; }

.fz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.fz-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.fz-card-img-wrap { position: relative; }
.fz-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.fz-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--co-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.fz-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fz-card-body h4 { margin: 0; font-size: 0.95rem; }
.fz-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.fz-card-meta span { background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.fz-card-desc { font-size: 0.8rem; color: var(--ink-soft); margin: 0; flex: 1; }

.fz-reheat-toggle {
  font-size: 0.76rem;
  color: var(--accent);
  text-align: left;
  padding: 0;
  text-decoration: underline;
}
.fz-reheat-text {
  font-size: 0.76rem;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 10px;
  display: none;
}
.fz-reheat-text.show { display: block; }

.fz-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.fz-price { font-weight: 700; color: var(--accent); font-size: 0.95rem; }

.fz-compare-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.fz-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Barra flotante "comparar" ---------- */
.fz-compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  background: var(--fz-ice-deep);
  color: #fff;
  padding: 10px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.fz-compare-bar.show { display: flex; }
.fz-compare-bar button { background: #fff; color: var(--fz-ice-deep); border-radius: 999px; padding: 8px 14px; font-size: 0.8rem; font-weight: 700; }

/* ---------- Barra flotante "tu caja" ---------- */
.fz-box-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: var(--co-blue);
  color: #fff;
  padding: 12px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.fz-box-bar.show { display: flex; }
.fz-box-bar .fz-box-info { display: flex; flex-direction: column; gap: 2px; }
.fz-box-bar .count { font-size: 0.78rem; opacity: 0.9; }
.fz-box-bar .amount { font-weight: 700; font-size: 1rem; }

/* ---------- Drawer "tu caja" ---------- */
.fz-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 45, 0.5);
  display: none;
  z-index: 60;
}
.fz-drawer-overlay.open { display: block; }
.fz-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--bg-card);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.fz-drawer.open { transform: translateX(0); }
.fz-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.fz-drawer-header h2 { margin: 0; font-size: 1.05rem; }
.fz-drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.fz-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fz-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 8px 0;
}
.fz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2fa4d1, var(--fz-ice-deep));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.fz-progress-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 4px; }
.fz-progress-note.free { color: #1a7a3d; font-weight: 600; }

.fz-cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.fz-cart-row .name { flex: 1; min-width: 0; font-size: 0.86rem; }
.fz-cart-row .name small { display: block; color: var(--ink-soft); font-size: 0.72rem; }
.fz-cart-row .subtotal { flex: none; width: 66px; text-align: right; font-weight: 700; font-size: 0.85rem; }

.fz-totals-row { display: flex; justify-content: space-between; font-size: 0.88rem; }
.fz-totals-row.total { font-size: 1.05rem; font-weight: 700; }
.fz-totals-row .free-tag { color: #1a7a3d; font-weight: 700; }

/* ---------- Comparar (modal) ---------- */
.fz-compare-modal .modal-box { max-width: 640px; }
.fz-compare-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.fz-compare-table th, .fz-compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
.fz-compare-table th:first-child, .fz-compare-table td:first-child { color: var(--ink-soft); white-space: nowrap; }

/* ---------- Pasos de checkout ---------- */
.fz-steps-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.fz-steps-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.fz-steps-dots span.active { background: var(--fz-ice-deep); }

.fz-review-list { margin: 0 0 14px; padding: 0; list-style: none; }
.fz-review-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.fz-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-family: inherit;
}

.fz-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--fz-ice);
  color: var(--fz-ice-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
}

.fz-notice {
  background: var(--fz-ice);
  border: 1px solid var(--fz-frost-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--fz-ice-deep);
  margin-bottom: 14px;
}
.fz-notice strong { display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.fz-faq { max-width: 720px; margin: 0 auto; padding: 10px 18px 60px; }
.fz-faq h3 { text-align: center; margin: 0 0 16px; font-size: 1.2rem; }
.fz-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.fz-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fz-faq-item summary::-webkit-details-marker { display: none; }
.fz-faq-item summary::after { content: '+'; font-size: 1.1rem; color: var(--ink-soft); }
.fz-faq-item[open] summary::after { content: '–'; }
.fz-faq-item p { margin: 8px 0 0; font-size: 0.85rem; color: var(--ink-soft); }

body { padding-bottom: 90px; }

@media (max-width: 760px) {
  .fz-how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .fz-hero h2 { font-size: 1.4rem; }
  .fz-mascot img { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .fz-snow span { animation: none; display: none; }
}
