:root {
  --rosa:#c2407a; --rosa-osc:#a3305f; --rosa-bg:#fcf0f5; --rosa-bg2:#f8e1eb;
  --txt:#231f22; --muted:#75707a; --borde:#ece6ea; --fondo:#fffafc; --card:#fff;
  --verde:#1f8a4c; --wa:#25d366; --wa-osc:#128c4b; --aviso:#8a5a00; --avisobg:#fff4db;
  --radio:14px; --sombra:0 6px 24px rgba(120, 40, 80, .08);
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--txt);
       background:var(--fondo); padding-bottom:84px; }
img { max-width:100%; display:block; }
button { font:inherit; cursor:pointer; }
[hidden] { display:none !important; }
h1, h2, .marca { font-family:Georgia, "Times New Roman", serif; font-weight:normal; }

/* Cabecera */
.cab { position:sticky; top:0; z-index:20; background:rgba(255,250,252,.92); backdrop-filter:blur(8px);
       border-bottom:1px solid var(--borde); }
.cab-in { max-width:1100px; margin:0 auto; padding:10px 16px; display:flex; justify-content:space-between; align-items:center; }
.marca { font-size:22px; color:var(--rosa); text-decoration:none; letter-spacing:.01em; }
.btn-carrito { position:relative; background:none; border:1px solid var(--borde); border-radius:999px; width:44px; height:44px;
               display:flex; align-items:center; justify-content:center; color:var(--txt); }
.contador { position:absolute; top:-4px; right:-4px; background:var(--rosa); color:#fff; font-size:11px; font-weight:700;
            min-width:20px; height:20px; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:0 5px; }

main { max-width:1100px; margin:0 auto; padding:0 16px; }
.hero { text-align:center; padding:28px 8px 14px; }
.hero h1 { font-size:34px; margin:0; color:var(--rosa); }
.hero p { margin:6px auto 0; max-width:560px; color:var(--muted); }
.hero .nota { font-size:13px; background:var(--rosa-bg); color:var(--rosa-osc); display:inline-block; padding:6px 12px;
              border-radius:999px; margin-top:12px; }

/* Buscador y filtros */
.buscador { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--borde);
            border-radius:999px; padding:0 14px; color:var(--muted); margin:10px 0 12px; }
.buscador input { flex:1; border:0; outline:0; padding:12px 0; font-size:16px; background:none; color:var(--txt); min-width:0; }
.chips { display:flex; gap:8px; overflow-x:auto; padding:2px 0 8px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:0 0 auto; border:1px solid var(--borde); background:var(--card); color:var(--txt); border-radius:999px;
        padding:7px 14px; font-size:14px; white-space:nowrap; }
.chip[aria-pressed="true"] { background:var(--rosa); border-color:var(--rosa); color:#fff; }
.chips-piel .chip { font-size:13px; padding:5px 12px; }
.chips-piel .chip[aria-pressed="true"] { background:var(--rosa-bg2); color:var(--rosa-osc); border-color:var(--rosa-bg2); font-weight:600; }

section h2 { font-size:22px; margin:18px 0 10px; }

/* Tarjetas */
.grilla { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
@media (min-width:640px) { .grilla { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (min-width:960px) { .grilla { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; } }
.tarjeta { background:var(--card); border:1px solid var(--borde); border-radius:var(--radio); overflow:hidden;
           display:flex; flex-direction:column; transition:box-shadow .15s; }
.tarjeta:hover { box-shadow:var(--sombra); }
.foto { aspect-ratio:1/1; background:linear-gradient(135deg, var(--rosa-bg), var(--rosa-bg2)); position:relative; overflow:hidden;
        border:0; padding:0; width:100%; display:block; }
.foto img { width:100%; height:100%; object-fit:cover; }
.foto .inicial { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column;
                 font-family:Georgia, serif; color:var(--rosa); font-size:40px; opacity:.75; }
.foto .inicial small { font:600 11px/1 system-ui, sans-serif; letter-spacing:.12em; text-transform:uppercase; margin-top:6px; color:var(--rosa-osc); }
.sello { position:absolute; top:8px; left:8px; font-size:11px; font-weight:700; border-radius:999px; padding:3px 9px; }
.sello.ultimas { background:var(--avisobg); color:var(--aviso); }
.sello.top { background:var(--rosa); color:#fff; }
.sello.oferta { background:#b3261e; color:#fff; }
.vence-txt { font-size:12px; color:var(--aviso); font-weight:600; }
.aviso-vence { background:var(--avisobg); color:var(--aviso); border-radius:10px; padding:8px 12px; font-size:13px; margin:8px 0; }
.cuerpo { padding:10px 12px 12px; display:flex; flex-direction:column; gap:4px; flex:1; }
.tipo { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--rosa-osc); font-weight:600; }
.nombre { font-size:14px; line-height:1.3; margin:0; font-weight:600; background:none; border:0; padding:0; text-align:left;
          color:var(--txt); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pieles { font-size:12px; color:var(--muted); }
.pie-tarjeta { margin-top:auto; padding-top:8px; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.precio { font-size:17px; font-weight:700; }
.precio s { font-size:13px; color:var(--muted); font-weight:400; margin-left:4px; }
.btn { border:0; border-radius:999px; background:var(--rosa); color:#fff; padding:8px 14px; font-weight:600; font-size:14px; }
.btn:hover { background:var(--rosa-osc); }
.btn.sec { background:var(--card); color:var(--txt); border:1px solid var(--borde); }
.paso { display:inline-flex; align-items:center; border:1px solid var(--rosa); border-radius:999px; overflow:hidden; }
.paso button { background:var(--rosa-bg); color:var(--rosa-osc); border:0; width:34px; height:34px; font-size:18px; font-weight:700; }
.paso button:disabled { opacity:.35; cursor:default; }
.paso span { min-width:28px; text-align:center; font-weight:700; }

/* Kits */
.kits { display:grid; gap:12px; grid-template-columns:minmax(0, 1fr); }
@media (min-width:760px) { .kits { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.kit { display:grid; grid-template-columns:120px minmax(0, 1fr); }
@media (min-width:480px) { .kit { grid-template-columns:150px minmax(0, 1fr); } }
.kit .foto { aspect-ratio:auto; height:100%; min-height:150px; }
.kit ul { margin:2px 0 0; padding-left:18px; font-size:13px; color:var(--muted); }
.ahorro { font-size:12px; font-weight:700; color:var(--verde); }

/* Hojas (detalle y carrito) */
dialog.hoja { border:0; padding:0; width:min(560px, 100%); max-height:92vh; border-radius:20px; background:var(--card);
              color:var(--txt); box-shadow:0 20px 60px rgba(0,0,0,.25); }
dialog.hoja::backdrop { background:rgba(35, 20, 30, .45); }
@media (max-width:640px) {
  dialog.hoja { margin:auto 0 0; max-width:100%; border-radius:20px 20px 0 0; max-height:90vh; }
}
.cerrar { position:sticky; display:block; top:10px; margin:10px 10px -46px auto; z-index:2; width:36px; height:36px; border-radius:50%;
          border:0; background:rgba(255,255,255,.9); font-size:24px; line-height:1; color:var(--txt); box-shadow:0 1px 4px rgba(0,0,0,.15); }
#detalle .foto { aspect-ratio:4/3; }
.det { padding:16px 18px 20px; }
.det h2 { font-size:22px; margin:4px 0 6px; line-height:1.25; }
.det p { color:#4a4549; margin:10px 0; white-space:pre-line; }
.grupo-etq { margin-top:10px; font-size:13px; }
.grupo-etq b { display:block; color:var(--muted); font-weight:600; font-size:12px; margin-bottom:4px; }
.etq { display:inline-block; background:var(--rosa-bg); color:var(--rosa-osc); border-radius:999px; padding:3px 10px; margin:0 4px 4px 0; font-size:12px; }
.det-acc { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; flex-wrap:wrap; }

#dlgCarrito h2 { margin:18px 18px 6px; font-size:24px; }
#lineas { padding:0 18px; }
.linea { display:grid; grid-template-columns:56px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:10px 0;
         border-bottom:1px solid var(--borde); }
.linea .mini { width:56px; height:56px; border-radius:10px; overflow:hidden; background:linear-gradient(135deg, var(--rosa-bg), var(--rosa-bg2));
               display:flex; align-items:center; justify-content:center; color:var(--rosa); font-family:Georgia, serif; font-size:22px; }
.linea .mini img { width:100%; height:100%; object-fit:cover; }
.linea .n { font-size:14px; font-weight:600; line-height:1.3; }
.linea .sub { font-size:12px; color:var(--muted); }
.linea .der { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.linea .quitar { background:none; border:0; color:var(--muted); font-size:12px; text-decoration:underline; padding:0; }
#cierre { padding:12px 18px 20px; position:sticky; bottom:0; background:var(--card); }
.total { display:flex; justify-content:space-between; font-size:18px; font-weight:700; margin:4px 0 12px; }
.campos { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
.campos label { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:3px; }
.campos input { font-size:16px; padding:9px 10px; border:1px solid var(--borde); border-radius:10px; width:100%; }
.btn-wa { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; background:var(--wa); color:#fff;
          border:0; border-radius:999px; padding:14px; font-size:16px; font-weight:700; text-decoration:none; }
.btn-wa:hover { background:var(--wa-osc); }
.btn-wa[aria-disabled="true"] { background:#c9c4c8; pointer-events:none; }
.ayuda { font-size:12px; color:var(--muted); text-align:center; margin:8px 0 0; }
.vaciar { background:none; border:0; color:var(--muted); font-size:13px; text-decoration:underline; display:block; margin:10px auto 0; }

/* Barra inferior */
.barra-pedido { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:15;
                max-width:560px; margin:0 auto; display:flex; justify-content:space-between; align-items:center;
                background:var(--txt); color:#fff; border:0; border-radius:999px; padding:14px 20px; font-size:15px;
                box-shadow:0 10px 30px rgba(0,0,0,.25); }
.aviso-flotante { position:fixed; left:50%; transform:translateX(-50%); bottom:84px; z-index:30; background:var(--txt);
                  color:#fff; padding:10px 16px; border-radius:999px; font-size:14px; box-shadow:var(--sombra); max-width:90vw; }

.vacio { text-align:center; color:var(--muted); padding:40px 10px; }
.pie { text-align:center; color:var(--muted); font-size:13px; padding:30px 16px 10px; }
.pie a { color:var(--rosa); }
