:root {
  --bg: #fbfaf7; --card: #fff; --ink: #1c2733; --muted: #64707d;
  --brand: #1ca7bd; --brand-2: #7fd8c8; --ok: #16a34a; --line: #e9e7e0; --danger: #dc2626;
  --radius: 16px; --shadow: 0 2px 10px rgba(28,39,51,.06);
  /* Tipografías (editable desde el panel Diseño) */
  --font-title: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Densidad / layout (editable desde el panel Diseño) */
  --gap: 14px; --sec-space: 30px; --card-pad: 14px 14px 16px;
  --grid-min: 220px; --grid-tmpl: repeat(auto-fill, minmax(var(--grid-min), 1fr));
  /* Tintes derivados de la marca (se recalculan solos al cambiar --brand) */
  --tint: color-mix(in srgb, var(--brand) 9%, #fff);
  --tint-2: color-mix(in srgb, var(--brand) 16%, #fff);
  --brand-dark: color-mix(in srgb, var(--brand) 72%, #14202b);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-body);
  background: var(--bg); color: var(--ink);
}

/* Header blanco y sereno (estilo Blueland / The Laundress) */
header.topbar {
  background: #fff; color: var(--ink);
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
header h1, h2, .card .name, .card .price { font-family: var(--font-title); }
header .wrap { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
header .logo { height: 42px; width: auto; border-radius: 8px; }
header .logo.hidden { display: none; }
header h1 { margin: 0; font-size: 21px; letter-spacing: -0.3px; color: var(--brand-dark); }
header .lema { color: var(--muted); font-size: 13px; }
main { max-width: 980px; margin: 0 auto; padding: 16px; padding-bottom: 120px; }
h2 { font-size: 22px; letter-spacing: -0.3px; margin: var(--sec-space) 4px 14px; }

.grid { display: grid; grid-template-columns: var(--grid-tmpl); gap: var(--gap); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(28,39,51,.10); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card .photo { aspect-ratio: 4/3; background: var(--tint) center/cover no-repeat; display: block; cursor: zoom-in; }
.card .photo.ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; cursor: default; }
.card .thumbs { display: flex; gap: 6px; padding: 8px 10px 0; flex-wrap: wrap; }
.card .thumb { width: 42px; height: 42px; border-radius: 8px; border: 2px solid transparent; background: var(--tint) center/cover no-repeat; cursor: pointer; padding: 0; }
.card .thumb.on { border-color: var(--brand); }

/* Visor a pantalla completa (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,.86); padding: 20px; }
.lightbox.hidden { display: none; }
.lb-img { max-width: 94vw; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lb-x { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }
.card .body { padding: var(--card-pad); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-weight: 600; font-size: 15px; }
.card .desc { color: var(--muted); font-size: 13px; line-height: 1.45; flex: 1; }
.card .price { font-size: 18px; font-weight: 700; color: var(--ink); }
.card .add { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qty button { width: 30px; height: 32px; border: 0; background: var(--tint); font-size: 16px; cursor: pointer; color: var(--brand-dark); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-top: 8px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink); font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, #fff); border-color: var(--brand); }
textarea { resize: vertical; min-height: 60px; }
.field { margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 6px; cursor: pointer; color: var(--ink); }
.chk input { width: auto; }

.btn {
  appearance: none; border: 0; border-radius: 12px; padding: 14px 18px; font-size: 16px;
  font-weight: 600; cursor: pointer; background: var(--brand-dark); color: #fff; width: 100%;
  font-family: var(--font-title); transition: filter .14s ease, transform .14s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--tint); color: var(--brand-dark); }

.summary .line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { font-size: 20px; font-weight: 700; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }

.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pay { grid-template-columns: 1fr; } }
.paybox { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.paybox h4 { margin: 0 0 8px; }
.paybox .qr { width: 100%; max-width: 200px; border-radius: 10px; display: block; margin: 8px auto; }
.paybox .data { font-size: 14px; line-height: 1.5; }
.paybox .data b { color: var(--brand-dark); }

.method { display: flex; gap: 10px; margin: 8px 0 4px; }
.method label { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; color: var(--ink); background: #fff; }
.method input { width: auto; margin-right: 6px; }
.method label.sel { border-color: var(--brand); background: var(--tint); font-weight: 700; }

.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; background: #fff; }
.drop.has { border-color: var(--ok); color: var(--ok); }
.preview { max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 8px; }

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(28,39,51,.07); padding: 12px 16px; z-index: 20;
}
.cartbar .wrap { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.cartbar .info { flex: 1; }
.cartbar .info b { font-size: 18px; }
.cartbar .btn { width: auto; padding: 12px 22px; }

.hidden { display: none !important; }
.note { font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; margin-top: 8px; }
.ok-box { text-align: center; padding: 24px; }
.ok-box .check { font-size: 54px; }
.code { font-size: 22px; font-weight: 700; color: var(--brand-dark); letter-spacing: 1px; }
.steps { display: flex; gap: 6px; margin: 6px 4px 0; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--brand); }

/* Menú principal */
.brand-txt { display: flex; flex-direction: column; }
.mainnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.navlink { background: transparent; color: var(--ink); border: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font-body); }
.navlink:hover { background: var(--tint); }
.navlink.on { background: var(--tint-2); color: var(--brand-dark); font-weight: 600; }
@media (max-width: 620px) { header .wrap { flex-wrap: wrap; } .mainnav { width: 100%; margin-left: 0; } .navlink { flex: 1; } }

/* Botón de ayuda por WhatsApp */
.help-box { display: block; text-align: center; margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #e7f9ee; border: 1px solid #b7ebc9; color: #146c43; text-decoration: none; font-size: 14px; }
.help-box:hover { background: #d8f5e3; }

/* Sobre Laundi */
.prose h3 { margin: 16px 0 6px; font-size: 16px; color: var(--brand-dark); }
.prose p { line-height: 1.6; margin: 0 0 6px; }

/* Blog / TikTok */
.blog-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Preguntas frecuentes */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-a { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Libro de Reclamaciones */
.rc-group h4 { margin: 0 0 10px; color: var(--brand-dark); }
.rc-group .chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 6px; cursor: pointer; }
.rc-group .chk input { width: auto; }

/* Pie de página */
.site-footer { background: var(--ink); color: #d4d9de; margin-top: 48px; padding: 26px 16px; }
/* Con la barra fija visible, deja aire abajo para poder ver todo el pie de página. */
body.has-cartbar .site-footer { padding-bottom: 108px; }
.site-footer .wrap { max-width: 980px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer .ft-col { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #d4d9de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .note { color: #9aa3ac; }
.ft-libro { background: #fff; color: var(--ink); border: 0; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }

/* Mensaje de zona resuelta (Laundi / Shalom) */
.zone-msg { font-size: 13px; padding: 10px 12px; border-radius: 10px; margin: 4px 0 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.zone-msg.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.zone-msg b { white-space: nowrap; }

/* Etiqueta de producto solo para zona Laundi (con Blankit) */
.card .tag-blankit { display: inline-block; font-size: 11px; font-weight: 700; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 8px; margin-top: 2px; align-self: flex-start; }

/* Buscador de agencias Shalom */
.shalom-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.shalom-list .sh-item {
  display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.shalom-list .sh-item:hover { border-color: var(--brand); background: var(--tint); }
.shalom-list .sh-item b { font-size: 14px; }
.shalom-list .sh-item small { color: var(--muted); font-size: 12px; }
.shalom-list .sh-item small.dir { color: var(--ink); opacity: .75; }
.dir-na { color: #9a3412; font-style: italic; }
.sh-empty { color: var(--muted); font-size: 13px; padding: 8px 2px; }
.shalom-sel { border: 1px solid var(--ok); border-radius: 12px; padding: 12px; background: #f3fbf5; }
.shalom-sel .sh-ok { color: var(--ok); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.shalom-sel .small { font-size: 13px; color: var(--muted); }
.shalom-sel .sh-change { width: auto; padding: 8px 14px; margin-top: 10px; font-size: 14px; }

/* ============ Hero / portada (editable desde el panel Diseño) ============ */
/* Fondo tenue con texto oscuro (estilo Blueland): elegante sin degradado chillón. */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  margin: 4px 0 8px; padding: 54px 28px; color: var(--ink); text-align: center;
  background: linear-gradient(150deg, var(--tint-2), color-mix(in srgb, var(--brand-2) 20%, #fff));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
}
/* Si hay imagen de fondo, velo suave y texto blanco para que se lea. */
.hero.has-img { color: #fff; border: 0; }
.hero.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hero-img) center/cover no-repeat;
}
.hero.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(16,28,38,.62), color-mix(in srgb, var(--brand-dark) 55%, transparent));
}
.hero .hero-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.hero h2 { font-family: var(--font-title); font-size: 34px; line-height: 1.12; letter-spacing: -0.5px; margin: 0 0 12px; color: inherit; }
.hero p { font-size: 16px; line-height: 1.55; margin: 0 auto; max-width: 520px; color: inherit; opacity: .82; }
.hero.has-img p { opacity: .94; }
.hero .hero-cta {
  display: inline-block; margin-top: 20px; background: var(--brand-dark); color: #fff;
  font-weight: 600; text-decoration: none; padding: 13px 30px; border-radius: 999px;
  border: 0; cursor: pointer; font-size: 15px; font-family: var(--font-title);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-dark) 30%, transparent); transition: transform .14s ease;
}
.hero .hero-cta:hover { transform: translateY(-2px); }
@media (max-width: 620px) { .hero { padding: 38px 18px; } .hero h2 { font-size: 26px; } }

/* ============ ¿Cómo te llega tu pedido? (3 pasos, estilo Tru Earth) ============ */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 14px 0 4px; }
@media (max-width: 620px) { .how { grid-template-columns: 1fr; } }
.how .how-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow);
}
.how .how-num {
  width: 34px; height: 34px; margin: 0 auto 10px; display: grid; place-items: center;
  border-radius: 50%; background: var(--tint-2); color: var(--brand-dark);
  font-weight: 700; font-family: var(--font-title);
}
.how .how-step b { display: block; font-family: var(--font-title); font-size: 15px; margin-bottom: 4px; }
.how .how-step span { color: var(--muted); font-size: 13px; line-height: 1.45; }
