:root {
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --bg: #f6f7f8;
  --card: #ffffff;
  --text: #1c2226;
  --muted: #6b7680;
  --border: #dfe3e6;
  --error: #b42318;
  --error-bg: #fef3f2;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-top: 20px; padding-bottom: 32px; }
a { color: var(--brand); }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Barra superior */
.topbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.menu-btn { background: none; border: 0; font-size: 1.6rem; padding: 6px 10px; cursor: pointer; color: var(--text); }
.nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 12px; }
.nav.open { display: flex; }
.nav a, .linklike { color: var(--text); text-decoration: none; padding: 10px 4px; font-size: 1rem; }
.nav a.btn { color: #fff; text-align: center; }
.linklike { background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
form.inline { display: contents; }

/* Tarjetas y formularios */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font-size: 16px; /* 16px evita zoom en iPhone */
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.resend { margin-top: 10px; }

/* Botones */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 18px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-small { padding: 8px 14px; }
.btn-light { background: #eef2f3; color: var(--text); }
.btn-light:hover { background: #e1e7e9; }

/* Avisos */
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .95rem; border: 1px solid; }
.alert-error   { background: var(--error-bg); color: var(--error); border-color: #fecdca; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #abefc6; }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: #b2ddff; word-break: break-word; }

.hero { padding: 36px 8px; text-align: center; }
.hero h1 { font-size: 1.8rem; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }

.footer { border-top: 1px solid var(--border); background: var(--card); padding: 16px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* Escritorio */
@media (min-width: 760px) {
  .menu-btn { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; width: auto; gap: 18px; padding: 0; }
  .nav a, .linklike { padding: 6px 0; }
  .hero { padding: 64px 8px; }
  .hero h1 { font-size: 2.4rem; }
}

/* ===== Etapa 2: arreglo del botón de la barra + administración ===== */
.nav a.btn { padding: 8px 16px; }
.btn-danger { background: #fee4e2; color: var(--error); }
.btn-danger:hover { background: #fecdca; }
textarea { resize: vertical; }
select { appearance: auto; }

.admin-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; }
.admin-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #eef2f3; color: var(--text); text-decoration: none; font-size: .95rem; }
.admin-nav a.on { background: var(--brand); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.stat-n { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
ul.plain { margin: 0; padding-left: 18px; }

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.row-form { display: flex; gap: 8px; align-items: center; }
.row-form input[type=text] { margin-top: 0; }
.search { margin-bottom: 16px; }
.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.cat-row .row-form { flex: 1 1 220px; }

.prow { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
        display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.prow-img { width: 76px; height: 76px; border-radius: 8px; background: #eef2f3; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: .75rem; text-align: center; }
.prow-img img { width: 100%; height: 100%; object-fit: cover; }
.prow-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prow-info strong { word-break: break-word; }
.prow-quick { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.prow-quick label { margin: 0; flex: 1 1 110px; }
.prow-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; width: fit-content; font-size: .75rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.ok  { background: var(--ok-bg); color: var(--ok); }
.badge.off { background: #f2f4f7; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: 20px; height: 20px; margin: 0; }
.current-img { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.current-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .prow { grid-template-columns: 76px 1.2fr 1.4fr auto; align-items: center; }
  .prow-quick, .prow-actions { grid-column: auto; }
  .prow-actions { flex-wrap: nowrap; }
}

/* ===== Etapa 2b: banners, tarjetas de producto, fotos extra ===== */
.btn-white { background: #fff; color: #111; }
.btn-white:hover { background: #f1f5f4; }
.badge.info { background: var(--info-bg); color: var(--info); }
.small { font-size: .85rem; }
.hint { margin: -6px 0 14px; font-size: .85rem; }
.color-input { height: 48px; padding: 4px; }
input[type=datetime-local] { display: block; width: 100%; margin-top: 6px; padding: 11px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-family: inherit; }

.extras { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.extra { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.extra img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.extra label.check { margin: 0; font-size: .85rem; }

.brow { grid-template-columns: 110px 1fr; }
.brow-prev { width: 110px; height: 64px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--border); }

/* Banner de inicio */
.banners { position: relative; margin-bottom: 22px; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 190px; display: flex; align-items: center;
          background-size: cover; background-position: center; color: #fff; }
.banner.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.15)); }
.banner-body { position: relative; padding: 24px 22px 34px; max-width: 560px; }
.banner h2 { font-size: 1.6rem; line-height: 1.15; margin: 0 0 8px; }
.banner p { margin: 0 0 14px; font-size: 1rem; opacity: .95; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.banner-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots button.on { background: #fff; }

/* Catálogo */
.section-title { margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pcard-img { position: relative; aspect-ratio: 1 / 1; background: #eef2f3; display: flex; align-items: center; justify-content: center; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.tag-off { position: absolute; top: 8px; left: 8px; background: #d92d20; color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 8px; border-radius: 999px; }
.tag-sold { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; padding: 3px 8px; border-radius: 999px; }
.pcard-body { padding: 10px 12px 14px; }
.pcard-body h3 { font-size: .95rem; margin: 0 0 6px; line-height: 1.3; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }

@media (min-width: 760px) {
  .banner { min-height: 260px; }
  .banner-body { padding: 40px 48px 44px; }
  .banner h2 { font-size: 2.4rem; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .brow { grid-template-columns: 130px 1.4fr auto; align-items: center; }
  .brow .prow-actions { grid-column: auto; }
}

/* ===== Etapa 3: producto, carrito, cupones ===== */
.cart-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; }
a.pcard { text-decoration: none; color: inherit; }
a.pcard:hover { border-color: var(--brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.chip { white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #eef2f3; color: var(--text); text-decoration: none; font-size: .92rem; }
.chip.on { background: var(--brand); color: #fff; }
.crumbs { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }

.pdetail { display: grid; gap: 20px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: #eef2f3; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 68px; height: 68px; padding: 0; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on { border-color: var(--brand); }
.pinfo h1 { font-size: 1.5rem; }
.price-row.big .price { font-size: 1.6rem; }
.price-row.big .price-old { font-size: 1.1rem; }
.stock-msg { font-weight: 600; color: var(--ok); margin: 8px 0 14px; }
.stock-msg.low { color: #b54708; }
.stock-msg.out { color: var(--error); }
.add-form { margin-bottom: 8px; }
.add-form input[type=number] { max-width: 140px; }
.desc-title { margin-top: 22px; }
.desc { color: #3b444b; }

.cart-form { margin-bottom: 16px; }
.crow { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px;
        display: grid; grid-template-columns: 70px 1fr auto; gap: 8px 12px; align-items: center; }
.crow-img { width: 70px; height: 70px; border-radius: 8px; background: #eef2f3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.crow-img img { width: 100%; height: 100%; object-fit: cover; }
.crow-info { display: flex; flex-direction: column; min-width: 0; }
.crow-name { font-weight: 600; color: var(--text); text-decoration: none; word-break: break-word; }
.crow-qty { grid-column: 1 / 3; }
.crow-qty label { margin: 0; display: flex; align-items: center; gap: 8px; }
.crow-qty input { width: 90px; margin-top: 0; }
.crow-total { text-align: right; }
.danger { color: var(--error); font-size: .92rem; text-align: right; }

.totals .trow { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .disc { color: var(--ok); }
.totals .grand { font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }

@media (min-width: 760px) {
  .pdetail { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
  .pinfo h1 { font-size: 2rem; }
  .crow { grid-template-columns: 80px 1fr 130px 110px auto; }
  .crow-qty { grid-column: auto; }
  .crow-img { width: 80px; height: 80px; }
  .coprow { grid-template-columns: 1fr auto; align-items: center; }
}

/* ===== Etapa 4: checkout, pedidos, ajustes ===== */
.badge.warn { background: #fffaeb; color: #b54708; }
.center { text-align: center; }
.free { color: var(--ok); }
.ship-nudge { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: .92rem; }
.checkout { display: grid; gap: 16px; }
.checkout h2 { margin-top: 18px; }
.checkout form h2:first-child { margin-top: 0; }
.pay-options { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; margin: 0; font-weight: 400; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: #f0faf8; }
.pay-opt input { width: 20px; height: 20px; margin: 2px 0 0; }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; }
.sline { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0f2f3; }
.summary .totals { margin-top: 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: #fff; }
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--brand); border-color: var(--brand); }
.steps li.now { color: var(--brand); font-weight: 700; }
.steps li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,118,110,.2); background: #fff; }
.track { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }

.pay-box { border-color: #fedf89; background: #fffcf5; }
.big-amt { font-size: 1.4rem; color: var(--brand); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.two-cards { display: grid; gap: 16px; }
.history li { padding: 8px 0; border-bottom: 1px solid #f0f2f3; list-style: none; }
ul.history { padding-left: 0; }

.orow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.orow:first-of-type { border-top: 0; }
.orow .badge { justify-self: start; }
.admin-orow { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.admin-orow:first-of-type { border-top: 1px solid var(--border); }

@media (min-width: 760px) {
  .checkout { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(6, 1fr); }
  .two-cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .orow { grid-template-columns: 1fr auto auto; }
}


/* =====================================================
   ETAPA 5: nuevo diseño (verde, fondo dinámico, tarjetas suaves)
   ===================================================== */
:root { --brand: #12a150; --brand-dark: #0b6b3a; --brand-soft: rgba(18,161,80,.12); --ink: #0f2a2e; --radius: 18px;
        --shadow: 0 8px 24px rgba(15,42,46,.10); }
body { background: #f3f8f5; color: var(--ink); position: relative; }

/* Fondo animado por defecto */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 40% at 10% 0%, rgba(34,197,94,.20), transparent 70%),
    radial-gradient(50% 40% at 100% 18%, rgba(250,204,21,.16), transparent 70%),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20800%201400'%20preserveAspectRatio='xMidYMax%20slice'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='1'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%230f766e'/%3E%3Cstop%20offset='1'%20stop-color='%2316a34a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon%20points='0,960%20540,1400%200,1400'%20fill='%230b3d3a'%20fill-opacity='.30'/%3E%3Cpolygon%20points='180,1400%20800,800%20800,1400'%20fill='url%28%23g%29'%20fill-opacity='.30'/%3E%3Cpolygon%20points='560,1400%20800,1110%20800,1400'%20fill='%23facc15'%20fill-opacity='.50'/%3E%3Cpolygon%20points='0,1190%20400,1400%200,1400'%20fill='%2322c55e'%20fill-opacity='.28'/%3E%3Cpolygon%20points='600,0%20800,0%20800,300'%20fill='%2316a34a'%20fill-opacity='.10'/%3E%3Cpolygon%20points='0,0%20320,0%200,320'%20fill='%230f766e'%20fill-opacity='.08'/%3E%3C/svg%3E") center bottom / cover no-repeat,
    linear-gradient(180deg, #f7fbf9, #e8f3ed);
}
body::after {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(28% 22% at 20% 30%, rgba(18,161,80,.14), transparent 70%),
    radial-gradient(26% 22% at 80% 60%, rgba(15,118,110,.12), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: floaty 22s ease-in-out infinite alternate; }
  @keyframes floaty { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
}

/* Encabezado */
.topbar { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(15,42,46,.06); }
.bar { position: relative; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.brand-icon { width: 38px; height: 38px; color: var(--brand); flex: none; }
.brand-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -.3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { color: var(--ink); display: flex; align-items: center; }
.nav { position: absolute; top: calc(100% + 4px); left: 0; right: 0; width: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 8px 14px; z-index: 30; border: 1px solid rgba(15,42,46,.06); }
.nav a, .linklike { color: var(--ink); font-weight: 500; padding: 12px 6px; }
.nav a + a, .nav a + form { border-top: 1px solid #f0f3f2; }
.nav a.btn { border-top: 0; margin: 6px 0; }
.cart-badge { background: var(--brand); }

/* Botones */
.btn { background: var(--brand); border-radius: 12px; padding: 13px 20px; box-shadow: 0 4px 12px var(--brand-soft); transition: transform .08s ease, background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-light { background: #eaf0ee; color: var(--ink); box-shadow: none; }
.btn-light:hover { background: #dce6e2; }
.btn-white { background: #fff; color: var(--ink); }
.btn-danger { background: #fee4e2; color: var(--error); box-shadow: none; }
a { color: var(--brand-dark); }

/* Tarjetas */
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: rgba(255,255,255,.94); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea, input[type=datetime-local] { border-radius: 12px; border-color: #d3dcd9; }
input:focus, select:focus, textarea:focus { outline-color: var(--brand); }

/* Banner */
.banners { margin-top: 4px; }
.banner-track { border-radius: 20px; box-shadow: var(--shadow); }
.banner h2 { font-weight: 800; letter-spacing: -.5px; text-transform: none; }
.banner-dots button.on { background: #fff; }

/* Buscador */
.searchbar { display: flex; align-items: stretch; background: #fff; border: 1.5px solid #cfd9d6; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.searchbar .s-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.searchbar input { border: 0; margin: 0; border-radius: 0; padding: 15px 44px 15px 16px; width: 100%; background: #fff; font-size: 16px; }
.searchbar input:focus { outline: none; }
.searchbar .s-field svg { position: absolute; right: 12px; color: var(--brand); pointer-events: none; }
.searchbar button { border: 0; background: #eef3f1; color: var(--ink); font-weight: 700; font-size: 1rem; padding: 0 20px; cursor: pointer; font-family: inherit; }
.searchbar button:hover { background: #e1ebe7; }

/* Categorías */
.chips { gap: 10px; padding: 2px 2px 8px; }
.chip { background: rgba(255,255,255,.9); border: 1.5px solid #c9d5d1; color: var(--ink); padding: 9px 18px; font-weight: 500; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Catálogo */
.section-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.4px; margin: 14px 0 14px; }
.grid { gap: 14px; }
.pcard { border: 0; border-radius: 20px; box-shadow: var(--shadow); background: rgba(255,255,255,.96); transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,42,46,.16); border-color: transparent; }
.pcard-img { background: linear-gradient(160deg, #f4f8f6, #e7efec); }
.tag-off { top: 10px; left: 10px; background: #dc2626; font-size: .9rem; font-weight: 800; padding: 5px 12px; }
.pcard-body { padding: 12px 14px 16px; }
.pcard-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.price { color: var(--brand-dark); font-size: 1.3rem; font-weight: 800; }
.price-old { font-size: .95rem; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.spec { background: #e6edeb; color: #3d4f4c; font-size: .74rem; padding: 4px 9px; border-radius: 7px; line-height: 1.3; }
.pinfo .specs { margin: 4px 0 12px; }
.pinfo .spec { font-size: .82rem; padding: 5px 11px; }
.gallery-main { border-radius: 20px; box-shadow: var(--shadow); border: 0; }
.thumb { border-radius: 12px; }

/* Pie de página */
.footer { background: var(--ink); color: #cfe0db; border: 0; padding: 26px 0 30px; margin-top: 24px; text-align: left; }
.foot { display: grid; gap: 14px; }
.footer .brand-name { color: #fff; font-size: 1.2rem; }
.footer .brand-icon { color: var(--brand); width: 32px; height: 32px; }
.footer .brand-logo { height: 34px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: #cfe0db; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.foot-copy { font-size: .85rem; opacity: .75; }

/* Pantalla de apariencia (admin) */
.asset-prev { display: inline-flex; align-items: center; justify-content: center; padding: 12px; margin-bottom: 10px; border: 1px dashed #c4d0cc; border-radius: 12px; background: repeating-conic-gradient(#f1f4f3 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.logo-prev img { max-height: 70px; max-width: 100%; }
.fav-prev img { width: 64px; height: 64px; }
.bg-prev img { max-width: 100%; max-height: 140px; border-radius: 8px; }

@media (min-width: 760px) {
  .nav { position: static; top: auto; background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0; }
  .nav a + a, .nav a + form { border-top: 0; }
  .nav a, .linklike { padding: 6px 0; }
  .nav a.btn { margin: 0; padding: 9px 18px; }
  .searchbar { max-width: 680px; }
  .section-title { font-size: 1.9rem; }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
  .foot-copy { grid-column: 1 / -1; }
}

/* ===== Etapa 6: pagos editables, limpieza, respaldo ===== */
.with-check { display: flex; align-items: center; gap: 12px; }
.with-check > input[type=checkbox] { width: 22px; height: 22px; flex: none; margin: 0; }
.orow-link { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.orow-link .badge { justify-self: start; }
.admin-orow { background: rgba(255,255,255,.95); border-radius: 16px; box-shadow: var(--shadow); border: 0; padding: 12px 14px; margin-bottom: 10px; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bulk-bar label.check { margin: 0; }
.danger-zone { border: 1.5px solid #fecdca; }
.inline-label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; flex-wrap: wrap; }
.days-input { width: 90px !important; margin: 0 !important; }
.pmrow, .urow { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .orow-link { grid-template-columns: 1fr auto auto; }
  .pmrow, .urow { grid-template-columns: 1fr auto; align-items: center; }
}
