
  :root {
    --coral: #ef6b5e;
    --coral-dark: #d95548;
    --teal: #17a89d;
    --teal-dark: #0f8a81;
    --cream: #fbf3e2;
    --cream-deep: #f6e9cf;
    --pink: #f7b7b0;
    --pink-soft: #fbd9d5;
    --yellow: #ffb63f;
    --brown: #5b463c;
    --brown-soft: #8a7468;
    --white: #fffdf8;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 6px 24px rgba(91, 70, 60, 0.10);
    --shadow-lift: 0 14px 34px rgba(91, 70, 60, 0.16);
    --font-title: "Baloo 2", system-ui, sans-serif;
    --font-body: "Quicksand", system-ui, sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--brown);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  button { font-family: inherit; cursor: pointer; }

  h1, h2, h3, .font-title { font-family: var(--font-title); line-height: 1.12; }

  .wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
  @media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-title); font-weight: 700; font-size: 16px;
    border: none; border-radius: 999px; padding: 13px 26px;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .18s ease;
    text-decoration: none; white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px) scale(1.02); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(239,107,94,.35); }
  .btn-coral:hover { background: var(--coral-dark); }
  .btn-wa { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(23,168,157,.32); }
  .btn-wa:hover { background: var(--teal-dark); }
  .btn-ghost { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 2px rgba(91,70,60,.22); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brown); }
  .btn-sm { font-size: 14px; padding: 9px 18px; }

  /* ---------- nav ---------- */
  .nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(251,243,226,.88); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(91,70,60,.08);
  }
  .nav-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand-mark {
    font-family: var(--font-title); font-weight: 800; font-size: 21px; line-height: 1;
    letter-spacing: -.01em;
  }
  .brand-mark .c1 { color: var(--coral); }
  .brand-mark .c2 { color: var(--teal); }
  .nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; }
  .nav-links a {
    text-decoration: none; font-weight: 600; font-size: 15px; color: var(--brown);
    padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
  }
  .nav-links a:hover { background: var(--pink-soft); color: var(--coral-dark); }
  .nav .btn { margin-left: 4px; }
  @media (max-width: 760px) {
    .nav-links { display: none; }
    .nav .btn { margin-left: auto; }
  }

  /* ---------- hero ---------- */
  .hero { position: relative; overflow: hidden; padding: 64px 0 84px; text-align: center; }
  .hero-dots { position: absolute; inset: 0; pointer-events: none; }
  .dot { position: absolute; border-radius: 50%; opacity: .55; }
  .hero h1 {
    font-size: clamp(38px, 6.2vw, 64px); font-weight: 800; letter-spacing: -.015em;
    max-width: 17ch; margin-inline: auto; text-wrap: balance;
  }
  .hero h1 .hl-coral { color: var(--coral); }
  .hero h1 .hl-teal { color: var(--teal); }
  .hero p.sub {
    margin: 18px auto 30px; max-width: 44ch; font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 500; color: var(--brown-soft); text-wrap: pretty;
  }
  .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
  .badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--white); border-radius: 999px; padding: 7px 16px;
    font-size: 13.5px; font-weight: 700; color: var(--brown-soft);
    box-shadow: 0 2px 10px rgba(91,70,60,.07);
  }
  .badge i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

  /* mascota: estilos en tcc-mascot.css */
  .hero .mas { margin-bottom: 22px; }

  /* ---------- sections ---------- */
  section.block { padding: 64px 0; }
  .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
  .sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.01em; }
  .sec-kicker {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px;
  }
  .sec-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
  .sec-kicker.k-coral { color: var(--coral); }
  .sec-kicker.k-yellow { color: #d98f1a; }
  .sec-sub { color: var(--brown-soft); font-weight: 500; max-width: 52ch; text-wrap: pretty; }

  /* ---------- product cards ---------- */
  .grid-remates { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
  .card {
    position: relative; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
  }
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .card.is-sold:hover { transform: none; }
  .card-photo { position: relative; aspect-ratio: 4 / 3; }
  .ph {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: repeating-linear-gradient(135deg, var(--ph-a, #fdeeea) 0 14px, var(--ph-b, #fbe3dd) 14px 28px);
  }
  .ph span {
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px;
    color: rgba(91,70,60,.55); background: rgba(255,253,248,.82); padding: 4px 10px; border-radius: 8px;
  }
  .tag-off {
    position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--brown);
    font-family: var(--font-title); font-weight: 800; font-size: 13.5px;
    padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(91,70,60,.16);
  }
  .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .card-name { font-family: var(--font-title); font-weight: 700; font-size: 17px; line-height: 1.25; }
  .price-row { display: flex; align-items: baseline; gap: 9px; }
  .price-now { font-family: var(--font-title); font-weight: 800; font-size: 21px; color: var(--coral); }
  .price-was { font-size: 14px; color: var(--brown-soft); text-decoration: line-through; font-weight: 500; }
  .card-body .btn { margin-top: auto; }

  .sold-veil {
    position: absolute; inset: 0; background: rgba(251,243,226,.55); backdrop-filter: saturate(.4);
    display: grid; place-items: center; z-index: 2;
  }
  .sold-stamp {
    font-family: var(--font-title); font-weight: 800; font-size: 22px; letter-spacing: .08em;
    color: #fff; background: var(--brown); padding: 8px 26px; border-radius: 14px;
    transform: rotate(-8deg); box-shadow: 0 8px 22px rgba(91,70,60,.3);
  }

  /* ---------- ofertas ML ---------- */
  .ofertas-bg { background: var(--white); border-radius: 36px; }
  @media (max-width: 560px) { .ofertas-bg { border-radius: 24px; } }
  .grid-ofertas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
  .oferta { background: var(--cream); border-radius: var(--radius); padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease; }
  .oferta:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .oferta .ph { aspect-ratio: 16 / 9; }
  .oferta-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .oferta-date { font-size: 12.5px; font-weight: 700; color: var(--brown-soft); letter-spacing: .06em; text-transform: uppercase; }
  .oferta h3 { font-size: 19px; font-weight: 700; }
  .oferta p { font-size: 14.5px; color: var(--brown-soft); font-weight: 500; }
  .ml-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
    font-weight: 700; font-size: 14.5px; color: var(--teal-dark); text-decoration: none;
  }
  .ml-link:hover { text-decoration: underline; }
  .nota-mayor {
    margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--coral-dark);
    display: flex; align-items: center; gap: 7px;
  }
  .nota-mayor::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none; }

  /* ---------- catálogo ---------- */
  .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
  .chip {
    border: none; background: var(--white); color: var(--brown); font-family: var(--font-title);
    font-weight: 700; font-size: 14.5px; padding: 9px 20px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(91,70,60,.08);
    transition: transform .15s ease, background .15s ease, color .15s ease;
  }
  .chip:hover { transform: translateY(-2px); }
  .chip.on { background: var(--brown); color: var(--cream); }
  .grid-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
  .cat-meta { font-size: 12.5px; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; }
  .price-mayor { display: flex; align-items: baseline; gap: 7px; }
  .price-mayor b { font-family: var(--font-title); font-weight: 800; font-size: 20px; color: var(--brown); }
  .price-mayor span { font-size: 13px; color: var(--brown-soft); font-weight: 600; }
  .link-detalle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13.5px; font-weight: 700; color: #2d3277; text-decoration: none;
    padding: 8px 14px; border-radius: 999px; border: 1.5px solid #ffd100; background: #ffe600;
    transition: background .15s ease;
  }
  .link-detalle:hover { background: #ffd100; }
  .link-detalle svg { width: 13px; height: 13px; }
  .btn-add { background: var(--pink-soft); color: var(--coral-dark); box-shadow: none; }
  .btn-add:hover { background: var(--pink); color: #fff; }
  .btn-add.added { background: var(--teal); color: #fff; }

  /* ---------- footer ---------- */
  footer { background: var(--brown); color: var(--cream); margin-top: 40px; }
  .foot-inner { padding: 56px 0 32px; display: grid; gap: 36px; grid-template-columns: 1.3fr 1fr 1fr; }
  @media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; gap: 28px; } }
  .foot-brand img { width: 88px; margin-bottom: 14px; }
  .foot-brand p { font-size: 14.5px; color: rgba(251,243,226,.75); max-width: 36ch; font-weight: 500; }
  footer h4 { font-family: var(--font-title); font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--yellow); }
  .foot-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .foot-list a { color: rgba(251,243,226,.85); text-decoration: none; font-weight: 500; font-size: 14.5px; }
  .foot-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .socials { display: flex; gap: 10px; }
  .social {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(251,243,226,.12); color: var(--cream); text-decoration: none;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .18s ease;
  }
  .social:hover { transform: translateY(-3px) rotate(-4deg); background: var(--coral); }
  .foot-busquedas { border-top: 1px solid rgba(251,243,226,.10); padding: 16px 0 4px; }
  .foot-busquedas h4 { font-size: 12.5px; color: rgba(251,243,226,.55); margin-bottom: 7px; }
  .foot-busquedas-list { font-size: 11.5px; line-height: 1.9; color: rgba(251,243,226,.35); font-weight: 500; }
  .foot-busquedas-list a { color: rgba(251,243,226,.5); text-decoration: none; }
  .foot-busquedas-list a:hover { color: rgba(251,243,226,.85); text-decoration: underline; text-underline-offset: 2px; }
  .foot-base {
    border-top: 1px solid rgba(251,243,226,.14); padding: 18px 0 22px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: rgba(251,243,226,.6); font-weight: 500;
  }

  /* ---------- floating WA + pedido bar ---------- */
  .fab-wa {
    position: fixed; right: 18px; bottom: 18px; z-index: 80;
    width: 58px; height: 58px; border-radius: 50%; background: #25d366;
    display: grid; place-items: center; color: #fff; text-decoration: none;
    box-shadow: 0 10px 26px rgba(37,211,102,.45);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  }
  .fab-wa:hover { transform: scale(1.1) rotate(6deg); }
  .pedido-bar {
    position: fixed; left: 50%; bottom: 18px; z-index: 79; transform: translateX(-50%);
    display: flex; align-items: center; gap: 14px;
    background: var(--brown); color: var(--cream); border-radius: 999px;
    padding: 10px 12px 10px 22px; box-shadow: 0 14px 34px rgba(91,70,60,.35);
    animation: pop-in .35s cubic-bezier(.34,1.56,.64,1);
    max-width: calc(100vw - 110px);
  }
  .pedido-bar b { font-family: var(--font-title); font-size: 15px; white-space: nowrap; }
  @keyframes pop-in { from { transform: translateX(-50%) translateY(20px) scale(.9); opacity: 0; } }

  /* ---------- popup cupón ---------- */
  .popup-veil {
    position: fixed; inset: 0; z-index: 90; background: rgba(91,70,60,.35);
    display: grid; place-items: center; padding: 20px;
    animation: veil-in .3s ease;
  }
  @keyframes veil-in { from { opacity: 0; } }
  .popup {
    position: relative; background: var(--white); border-radius: 28px; padding: 36px 30px 30px;
    width: min(400px, 100%); text-align: center; box-shadow: 0 30px 70px rgba(91,70,60,.3);
    animation: pop-in2 .4s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes pop-in2 { from { transform: translateY(26px) scale(.92); opacity: 0; } }
  .popup h3 { font-size: 25px; font-weight: 800; margin: 12px 0 6px; }
  .popup h3 em { font-style: normal; color: var(--coral); }
  .popup p { font-size: 14.5px; color: var(--brown-soft); font-weight: 500; margin-bottom: 18px; }
  .popup input {
    width: 100%; border: 2px solid var(--cream-deep); background: var(--cream);
    border-radius: 999px; padding: 12px 18px; font-family: var(--font-body);
    font-size: 15px; font-weight: 600; color: var(--brown); outline: none; margin-bottom: 10px;
  }
  .popup input:focus { border-color: var(--teal); }
  .popup .btn { width: 100%; }
  .popup-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
    border: none; border-radius: 50%; background: var(--cream); color: var(--brown-soft);
    font-size: 16px; line-height: 1; display: grid; place-items: center;
  }
  .popup-close:hover { background: var(--pink-soft); color: var(--coral-dark); }
  .popup-mini { font-size: 12px; color: var(--brown-soft); margin-top: 12px; font-weight: 500; }
  .popup-code { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; margin: 4px 0 18px; font-size: 15px; }
  .popup-code strong { font-family: var(--font-title); font-size: 22px; font-weight: 800; letter-spacing: 1.5px; color: var(--coral); display: block; margin-top: 4px; }
  .popup-success { padding: 14px 0 6px; }
  .popup-success .mascot { margin-bottom: 10px; }

  /* ---------- scroll reveal ---------- */
  @media (prefers-reduced-motion: no-preference) {
    [data-anim="on"] .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
    [data-anim="on"] .rv.on { opacity: 1; transform: none; }
    [data-anim="on"] .rv-d1.on { transition-delay: .07s; }
    [data-anim="on"] .rv-d2.on { transition-delay: .14s; }
    [data-anim="on"] .rv-d3.on { transition-delay: .21s; }
    [data-anim="on"] .rv-d4.on { transition-delay: .28s; }
    [data-anim="on"] .rv-d5.on { transition-delay: .35s; }
    /* Las tarjetas del home llevan .rv (aparición), cuya regla .rv.on anula el transform.
       Tras revelarse, restauramos el mismo hover de levantamiento de las páginas internas. */
    [data-anim="on"] .card.rv.on,
    [data-anim="on"] .oferta.rv.on { transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease; transition-delay: 0s; }
    [data-anim="on"] .card.rv.on:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
    [data-anim="on"] .oferta.rv.on:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
    [data-anim="on"] .card.rv.on.is-sold:hover { transform: none; box-shadow: var(--shadow); }
  }

/* ---------- nav: pedido + agrupación derecha ---------- */
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.nav .nav-right .btn { margin-left: 0; }
@media (max-width: 760px) { .nav-right { margin-left: auto; } }
.nav-pedido {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 14.5px;
  color: var(--cream); background: var(--brown); border: none; cursor: pointer; border-radius: 999px;
  padding: 7px 9px 7px 16px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .18s ease;
}
.nav-pedido:hover { transform: translateY(-2px); }
.nav-pedido-n {
  background: var(--coral); color: #fff; min-width: 22px; height: 22px;
  border-radius: 999px; display: grid; place-items: center;
  font-size: 13px; padding: 0 6px;
  animation: pedido-pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pedido-pop { from { transform: scale(.3); } }

/* ---------- tarjetas clickeables + CTAs de sección ---------- */
.card-link { display: block; text-decoration: none; color: inherit; }
.card-name { transition: color .15s ease; }
.card-link:hover .card-name { color: var(--coral-dark); }
.sec-cta { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- páginas interiores ---------- */
.page-head { padding: 46px 0 0; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.012em; }
.page-head .sec-sub { margin-top: 10px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--brown-soft); padding-top: 22px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); text-decoration: underline; }
.crumbs .sep { opacity: .5; }

/* ---------- ficha de producto ---------- */
.ficha { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; padding: 26px 0 30px; }
@media (max-width: 820px) { .ficha { grid-template-columns: 1fr; gap: 28px; } }
.gal-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gal-main .ph { height: 100%; }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gal-thumb { border: none; padding: 0; background: none; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; opacity: .6; transition: opacity .15s ease, transform .15s ease; box-shadow: 0 2px 8px rgba(91,70,60,.08); }
.gal-thumb .ph { height: 100%; }
.gal-thumb:hover { transform: translateY(-2px); opacity: .85; }
.gal-thumb.on { opacity: 1; outline: 3px solid var(--teal); outline-offset: -3px; }
.ficha-info { display: flex; flex-direction: column; align-items: flex-start; }
.ficha-info h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.ficha-desc { color: var(--brown-soft); font-weight: 500; margin: 12px 0 20px; max-width: 50ch; text-wrap: pretty; }
.price-box { width: 100%; max-width: 400px; background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.price-box .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price-box .lbl { font-size: 14px; font-weight: 600; color: var(--brown-soft); }
.price-box .big { font-family: var(--font-title); font-weight: 800; font-size: 30px; color: var(--coral); }
.price-box .mid { font-family: var(--font-title); font-weight: 700; font-size: 17px; }
.ficha-ctas { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 400px; align-items: stretch; }
.ficha-ctas .link-detalle { align-self: center; }
.relacionados { padding: 10px 0 70px; }
.relacionados h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }

/* ---------- toast "Agregado ✓ · Ver pedido" ---------- */
.tcc-toast {
  position: fixed; top: 74px; left: 50%; z-index: 200;
  transform: translateX(-50%) translateY(-14px);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--brown); color: var(--cream);
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; font-size: 14.5px;
  box-shadow: 0 12px 30px rgba(91,70,60,.32);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.tcc-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.tcc-toast-ok { color: #9be6c5; }
.tcc-toast-sep { opacity: .45; }
.tcc-toast a { color: var(--yellow); text-decoration: none; }
.tcc-toast a:hover { text-decoration: underline; }

/* ---------- página Mi pedido ---------- */
.cart { padding: 22px 0 30px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; gap: 22px; } }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
@media (max-width: 520px) { .cart-row { grid-template-columns: 64px 1fr; } }
.cart-thumb { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; }
.cart-thumb .ph { height: 100%; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-cat { font-size: 12px; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .07em; }
.cart-name { font-family: var(--font-title); font-weight: 700; font-size: 17px; line-height: 1.2; }
.cart-name a { text-decoration: none; color: inherit; }
.cart-name a:hover { color: var(--coral-dark); }
.cart-unit { font-size: 13.5px; color: var(--brown-soft); font-weight: 600; }
.cart-ctrls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 520px) { .cart-ctrls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.cart-sub { font-family: var(--font-title); font-weight: 800; font-size: 19px; color: var(--coral); white-space: nowrap; }
.qstep { display: inline-flex; align-items: center; }
.qstep button {
  width: 30px; height: 30px; border: none; background: var(--cream-deep); color: var(--brown);
  font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: background .15s ease;
}
.qstep button:first-child { border-radius: 999px 0 0 999px; }
.qstep button:last-child { border-radius: 0 999px 999px 0; }
.qstep button:hover:not(:disabled) { background: var(--pink); color: #fff; }
.qstep button:disabled { opacity: .4; cursor: default; }
.qstep span { min-width: 38px; text-align: center; font-family: var(--font-title); font-weight: 700; font-size: 15px; background: var(--cream-deep); height: 30px; display: grid; place-items: center; }
.cart-remove { background: none; border: none; color: var(--brown-soft); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.cart-remove:hover { color: var(--coral-dark); background: var(--pink-soft); }
.cart-summary { position: sticky; top: 84px; background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.cart-summary h3 { font-family: var(--font-title); font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.cart-summary .line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--brown-soft); font-weight: 600; margin-bottom: 8px; }
.cart-summary .line span:last-child { color: var(--brown); font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 6px; border-top: 1px solid rgba(91,70,60,.12); }
.cart-total span { font-size: 15px; font-weight: 700; color: var(--brown-soft); }
.cart-total b { font-family: var(--font-title); font-size: 28px; font-weight: 800; color: var(--brown); }
.cart-summary .btn-wa { width: 100%; margin-top: 16px; font-size: 16px; padding: 14px 22px; }
.cart-note { font-size: 12px; color: var(--brown-soft); text-align: center; margin-top: 12px; font-weight: 500; }
.cart-empty { background: var(--white); border-radius: var(--radius); padding: 56px 30px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cart-empty h3 { font-family: var(--font-title); font-size: 23px; font-weight: 800; }
.cart-empty p { color: var(--brown-soft); font-weight: 500; max-width: 40ch; }

/* ---------- detalle de remate (layout ficha + urgencia) ---------- */
.remate-urgencia {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--yellow); color: var(--brown);
  padding: 7px 16px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 800; font-size: 14px;
  margin: 4px 0 16px;
}
.price-box .save { color: var(--teal-dark); font-weight: 700; }
.gal-main .remate-sold-veil {
  position: absolute; inset: 0; background: rgba(251,243,226,.6);
  backdrop-filter: saturate(.4); display: grid; place-items: center; z-index: 2;
}
.gal-wrap { position: relative; }
.remate-sold-stamp {
  font-family: var(--font-title); font-weight: 800; font-size: 26px; letter-spacing: .08em;
  color: #fff; background: var(--brown); padding: 10px 28px; border-radius: 14px;
  transform: rotate(-8deg); box-shadow: 0 8px 22px rgba(91,70,60,.3);
}

/* ---------- panel lateral del pedido ---------- */
.pedido-overlay {
  position: fixed; inset: 0; z-index: 95; background: rgba(91,70,60,.4);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.pedido-overlay.on { opacity: 1; pointer-events: auto; }
.pedido-panel {
  position: fixed; top: 0; right: 0; z-index: 96; height: 100%;
  width: min(420px, 100%); background: var(--cream);
  display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(91,70,60,.22);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.pedido-panel.on { transform: none; }
.pp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid rgba(91,70,60,.1); flex: none;
}
.pp-head h2 { font-family: var(--font-title); font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pp-count {
  background: var(--coral); color: #fff; font-size: 13px; min-width: 24px; height: 24px;
  border-radius: 999px; display: grid; place-items: center; padding: 0 7px;
}
.pp-close {
  width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--cream-deep);
  color: var(--brown-soft); font-size: 16px; display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pp-close:hover { background: var(--pink-soft); color: var(--coral-dark); }
.pp-list { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.pp-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  background: var(--white); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow);
}
.pp-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.pp-thumb .ph { height: 100%; }
.pp-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pp-name { font-family: var(--font-title); font-weight: 700; font-size: 15px; line-height: 1.2; }
.pp-price { font-size: 13px; color: var(--coral); font-weight: 700; }
.pp-qty { display: inline-flex; align-items: center; gap: 0; margin-top: 2px; }
.pp-qty button {
  width: 28px; height: 28px; border: none; background: var(--cream-deep); color: var(--brown);
  font-size: 17px; font-weight: 700; cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease;
}
.pp-qty button:first-child { border-radius: 999px 0 0 999px; }
.pp-qty button:last-child { border-radius: 0 999px 999px 0; }
.pp-qty button:hover:not(:disabled) { background: var(--pink); color: #fff; }
.pp-qty button:disabled { opacity: .4; cursor: default; }
.pp-qty span {
  min-width: 34px; text-align: center; font-family: var(--font-title); font-weight: 700; font-size: 15px;
  background: var(--cream-deep); height: 28px; display: grid; place-items: center; align-self: stretch;
}
.pp-remove {
  width: 28px; height: 28px; border: none; background: none; color: var(--brown-soft);
  font-size: 13px; cursor: pointer; border-radius: 50%; align-self: start;
  transition: background .15s ease, color .15s ease;
}
.pp-remove:hover { background: var(--pink-soft); color: var(--coral-dark); }
.pp-foot { flex: none; padding: 18px 22px 22px; border-top: 1px solid rgba(91,70,60,.1); background: var(--cream); }
.pp-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pp-total span { font-size: 15px; font-weight: 600; color: var(--brown-soft); }
.pp-total b { font-family: var(--font-title); font-size: 28px; font-weight: 800; color: var(--brown); }
.pp-note { font-size: 12px; color: var(--brown-soft); text-align: center; margin-top: 12px; font-weight: 500; }
.pp-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; text-align: center; }
.pp-empty p { color: var(--brown-soft); font-weight: 500; font-size: 15px; }

/* Fotos reales (subidas desde el panel) */
.card-photo img, .gal-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ficha: recorte del inicio de la descripción junto al título (2-3 líneas) */
.ficha-desc-clip { display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

.gal-thumb img { width:100%; height:100%; object-fit:cover; }

/* Miniatura con imagen en el carrito */
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Paginación (numeritos) */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pager-link {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 13px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 15px; color: var(--brown);
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.pager-link:hover { transform: translateY(-2px); background: var(--pink-soft); color: var(--coral-dark); }
.pager-link.on { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(239,107,94,.35); }
.pager-arrow { color: var(--teal); font-size: 20px; }

/* ===== Precio mayorista (tarjetas) ===== */
.price-block { display: flex; flex-direction: column; gap: 3px; }
.price-block .price-top { display: flex; align-items: center; gap: 8px; }
.price-meli { color: var(--brown-soft); text-decoration: line-through; font-weight: 600; font-size: 13.5px; }
.disc-badge { background: #e23b3b; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 12px; line-height: 1; padding: 3px 8px; border-radius: 999px; }
.price-block .price-mayor b { color: var(--coral); }
.price-min { font-size: 12.5px; color: var(--brown-soft); font-weight: 700; }

/* ===== Precio mayorista (ficha) ===== */
.price-box-mayor { gap: 4px; }
.price-box-mayor .pbm-top { display: flex; align-items: center; gap: 10px; }
.price-meli-lg { font-size: 17px; }
.disc-badge-lg { font-size: 14px; padding: 4px 11px; }
.pbm-now b { font-family: var(--font-title); font-weight: 800; font-size: 32px; color: var(--coral); }
.pbm-now span { color: var(--brown-soft); font-weight: 600; font-size: 15px; }
.pbm-min { font-size: 14px; color: var(--brown-soft); font-weight: 700; }
.pbm-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(91,70,60,.12); margin-top: 8px; padding-top: 10px; }
.pbm-total span { font-size: 14px; font-weight: 600; color: var(--brown-soft); }
.pbm-total b { font-family: var(--font-title); font-weight: 800; font-size: 20px; color: var(--brown); }

/* Imagen real en cards de oferta/blog */
.oferta-img { width: 100%; height: 200px; object-fit: cover; display: block; background: #fff; }
.oferta-date .disc-badge { vertical-align: middle; }

/* Buscador del catálogo (formulario) */
.cat-search { position: relative; display: flex; gap: 10px; max-width: 560px; margin: 0 0 22px; }
.cat-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .6; pointer-events: none; }
.cat-search input { flex: 1; min-width: 0; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--brown);
  padding: 13px 18px 13px 42px; border: 2px solid var(--cream-deep); border-radius: 999px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease; }
.cat-search input::placeholder { color: var(--brown-soft); opacity: .8; }
.cat-search input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(239,107,94,.14); }
.cat-search-btn { flex: none; border: none; cursor: pointer; font-family: var(--font-title); font-weight: 700; font-size: 15px;
  color: #fff; background: var(--coral); border-radius: 999px; padding: 0 24px; box-shadow: 0 6px 18px rgba(239,107,94,.35);
  transition: background .15s ease, transform .12s ease; }
.cat-search-btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.cat-resultados { font-size: 15px; color: var(--brown-soft); font-weight: 500; margin: 0 0 18px; }
.cat-resultados strong { color: var(--brown); font-weight: 700; }
.cat-clear { margin-left: 10px; font-size: 13.5px; font-weight: 700; color: var(--coral-dark); text-decoration: none; }
.cat-clear:hover { text-decoration: underline; }
.cat-noresults { text-align: center; color: var(--brown-soft); font-weight: 600; font-size: 16px; padding: 28px 0; }
@media (max-width: 480px) { .cat-search-btn { padding: 0 18px; } }
.cat-capnote { text-align: center; color: var(--coral-dark); font-weight: 600; font-size: 14px; background: var(--cream-deep); padding: 10px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; }
#cat-results[aria-busy="true"] { opacity: .5; transition: opacity .15s ease; }

/* Botón WhatsApp del header: oculto en móvil (queda el flotante) */
@media (max-width: 760px) { .nav-wa { display: none; } }

/* Botón editar (solo admin) sobre tarjetas */
.oferta { position: relative; }
.admin-edit { position: absolute; top: 8px; right: 8px; z-index: 6; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--white); border-radius: 50%; box-shadow: 0 3px 10px rgba(91,70,60,.22); font-size: 16px; text-decoration: none; transition: transform .12s ease; }
.admin-edit:hover { transform: scale(1.1); }

/* Estado Agotado */
.badge-agotado { position: absolute; top: 12px; right: 12px; z-index: 3; background: #e23b3b; color: #fff;
  font-family: var(--font-title); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(91,70,60,.18); }
.btn-add[disabled] { background: var(--cream-deep); color: var(--brown-soft); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.admin-edit-form { position: absolute; top: 8px; right: 8px; z-index: 6; margin: 0; }
.admin-edit-form .admin-edit { position: static; }
.admin-del { border: none; cursor: pointer; }
