
:root{
  --yellow:#FFE81F; --yellow-deep:#F2C400; --yellow-pale:#FFF6AA; --ink:#000; --paper:#FFFFFF;
  --red:#D42B1E; --gray:#4A4A4A; --line:rgba(0,0,0,.2);
  --display:'Oswald','Arial Narrow',Impact,sans-serif;
  --body:'Archivo Narrow','Arial Narrow',Arial,sans-serif;
  --shadow:4px 4px 0 var(--ink); --r:14px; --rs:10px;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --gray:#3a3a3a; } }
:root[data-theme="dark"]{ --gray:#3a3a3a; }
html{ scroll-padding-top:env(safe-area-inset-top,0px); scroll-behavior:smooth; }
*,*::before,*::after{ box-sizing:inherit; }
body{ margin:0; background:var(--yellow) repeating-linear-gradient(0deg,transparent 0 23px,rgba(0,0,0,.045) 23px 24px); color:var(--ink); font-family:var(--body); font-size:15px; line-height:1.35; overflow-x:hidden; }
a{ color:inherit; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{ outline:3px solid var(--red); outline-offset:2px; }
.wrap{ max-width:1160px; margin:0 auto; padding:0 20px; }
.rule{ height:10px; background:repeating-linear-gradient(90deg,var(--red) 0 40px,var(--ink) 40px 80px); }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ===== Barra superior ===== */
.topbar{ background:var(--ink); color:var(--yellow); font-weight:700; font-size:13px; }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:40px; flex-wrap:wrap; }
.topbar nav{ display:flex; gap:18px; }
.topbar nav a{ text-decoration:none; padding:3px 0; }
.topbar nav a[aria-current]{ border-bottom:2px solid var(--yellow); }
.topright{ display:flex; gap:14px; align-items:center; }
.topright button{ background:none; border:0; color:var(--yellow); font-weight:700; padding:0; }
.lang b{ background:var(--yellow); color:var(--ink); padding:0 4px; }

/* ===== Cabecera ===== */
header{ border-bottom:6px solid var(--ink); }
.head{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 0 12px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.brand .mascot{ width:112px; margin:-6px 0 -12px; }
.brand .mascot svg{ width:100%; height:auto; display:block; }
.brand .la{ font-family:var(--display); font-weight:700; font-size:56px; line-height:.84; text-transform:uppercase; display:block; letter-spacing:-.01em; }
.brand .am{ font-family:var(--display); font-weight:700; font-size:20.5px; letter-spacing:.35em; display:block; margin-top:3px; }
.brand .tag{ border-radius:4px; display:inline-block; background:var(--red); color:#fff; font-family:var(--display); font-weight:700; font-size:12px; letter-spacing:.2em; padding:2px 9px 1px; margin-top:5px; }
.mainnav{ display:flex; gap:0; flex-wrap:nowrap; justify-content:flex-end; }
.mainnav button{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:15px; letter-spacing:.02em; background:transparent; border:3px solid transparent; padding:6px 7px; white-space:nowrap; }
.mainnav button:hover{ border-color:var(--ink); background:var(--paper); }
.mainnav button[aria-pressed="true"]{ background:var(--ink); color:var(--yellow); }
.pubBtn{ background:var(--red); color:#fff; border:3px solid var(--ink); border-radius:var(--rs); font-family:var(--display); font-weight:700; font-size:17px; text-transform:uppercase; letter-spacing:.04em; padding:10px 16px; box-shadow:var(--shadow); white-space:nowrap; }
.pubBtn:hover{ transform:translate(-1px,-1px); box-shadow:6px 6px 0 var(--ink); }
.headRight{ display:flex; align-items:center; gap:14px; }
.mobileOnly{ display:none; }
@media (max-width:720px){ .hideSm{ display:none; } }

/* ===== Hero ===== */
.hero .wrap{ display:grid; grid-template-columns:1fr 300px; gap:24px; align-items:center; padding-top:26px; padding-bottom:28px; }
.hero h1{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:clamp(32px,4.4vw,52px); line-height:.9; margin:0; letter-spacing:-.01em; }
.hero h1 .red{ display:block; color:var(--red); }
.hero p{ font-size:18px; max-width:58ch; margin:12px 0 18px; }
.search{ display:grid; grid-template-columns:1.5fr 1fr auto; border:3px solid var(--ink); background:var(--paper); box-shadow:6px 6px 0 var(--ink); border-radius:var(--r); overflow:hidden; }
.search label{ display:flex; align-items:center; gap:8px; padding:0 14px; min-height:58px; }
.search label + label{ border-left:3px solid var(--ink); }
.search input,.search select{ border:0; outline:0; background:transparent; width:100%; font-size:18px; min-width:0; }
.search .ico{ width:20px; height:20px; flex-shrink:0; }
.search .go{ background:var(--red); color:#fff; border:0; border-left:4px solid var(--ink); font-family:var(--display); font-weight:700; font-size:22px; letter-spacing:.05em; padding:0 24px; }
.search .go:hover{ background:var(--ink); color:var(--yellow); }
.quick{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; align-items:center; font-size:13px; font-weight:700; }
.quick button{ background:var(--paper); border:2px solid var(--ink); border-radius:999px; padding:3px 11px; font-weight:700; font-size:13px; }
.quick button:hover{ background:var(--ink); color:var(--yellow); }
.heroLupin{ position:relative; }
.heroLupin svg{ width:100%; height:auto; display:block; }
.speech{ position:absolute; top:-44px; left:0; border-radius:14px; background:var(--ink); color:var(--yellow); font-family:var(--display); font-weight:700; font-size:17px; text-transform:uppercase; line-height:1.02; padding:10px 14px; max-width:190px; transform:rotate(-3deg); }
.speech::after{ content:""; position:absolute; right:30px; bottom:-16px; border:9px solid transparent; border-top-color:var(--ink); }

/* ===== Secciones ===== */
.sectionHead{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; border-top:5px solid var(--ink); border-bottom:2px solid var(--ink); padding:6px 0 4px; margin:0 0 16px; }
.sectionHead h2{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:30px; line-height:1; margin:0; }
.sectionHead .sub{ font-size:13px; font-weight:700; }
.linkBtn{ background:none; border:0; font-weight:700; text-decoration:underline; text-underline-offset:3px; padding:0; }
section.block{ padding:18px 0 22px; }

/* Pestañas de categoría (índice del libro) */
.tabs{ display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); gap:9px; }
.tab{ background:var(--paper); border:2px solid var(--ink); border-radius:var(--r); box-shadow:3px 3px 0 var(--ink); padding:14px 8px 12px; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; position:relative; }
.tab:hover{ box-shadow:var(--shadow); transform:translate(-2px,-2px); }
.tab .letter{ position:absolute; top:8px; right:8px; border-radius:6px; background:var(--ink); color:var(--yellow); font-family:var(--display); font-weight:700; font-size:13px; min-width:24px; padding:0 4px; height:24px; display:grid; place-items:center; white-space:nowrap; }
.tab .ic{ width:54px; height:54px; background:var(--yellow); border:2px solid var(--ink); border-radius:50%; display:grid; place-items:center; }
.tab .ic svg{ width:34px; height:34px; }
.tab b{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:17px; line-height:1; }
.tab small{ font-size:12px; color:var(--gray); }
.tab[aria-pressed="true"]{ background:var(--ink); color:var(--yellow); }
.tab[aria-pressed="true"] small{ color:var(--yellow-pale); }
.tab[aria-pressed="true"] .letter{ background:var(--yellow); color:var(--ink); }

/* Tarjetas destacadas (carrusel) */
.railWrap{ position:relative; }
.rail{ display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 42px)/4); gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 8px 14px 4px; scrollbar-width:none; }
.rail::-webkit-scrollbar{ display:none; }
.arrow{ position:absolute; top:22%; width:44px; height:44px; border-radius:50%; background:var(--ink); color:var(--yellow); border:3px solid var(--yellow); font-family:var(--display); font-size:24px; z-index:2; display:grid; place-items:center; }
.arrow.left{ left:-16px; } .arrow.right{ right:-16px; }
.card{ scroll-snap-align:start; background:var(--paper); border:2px solid var(--ink); border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; text-align:left; position:relative; min-width:0; cursor:pointer; }
.card:hover{ transform:translate(-2px,-4px); box-shadow:6px 8px 0 var(--ink); }
.thumb{ aspect-ratio:16/10; border-bottom:2px solid var(--ink); display:grid; place-items:center; position:relative; overflow:hidden; background:var(--yellow-pale) repeating-linear-gradient(45deg,transparent 0 10px,rgba(0,0,0,.05) 10px 20px); }
.thumb svg.big{ width:44%; height:auto; }
.thumb.dark{ background:var(--ink); }
.thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.thumb .catLabel{ position:absolute; top:10px; left:10px; border-radius:6px; background:var(--yellow); color:var(--ink); border:2px solid var(--ink); font-family:var(--display); font-weight:700; font-size:12px; letter-spacing:.08em; padding:3px 8px 2px; }
.thumb.dark .catLabel{ background:var(--yellow); color:var(--ink); }
.thumb.photo .catLabel{ background:var(--yellow); }
.ribbon{ position:absolute; bottom:10px; left:0; border-radius:0 6px 6px 0; z-index:1; background:var(--red); color:#fff; font-family:var(--display); font-weight:700; font-size:12px; letter-spacing:.1em; padding:3px 10px 2px 8px; }
.fav{ position:absolute; top:8px; right:8px; width:36px; height:36px; border-radius:50%; background:var(--paper); border:2px solid var(--ink); display:grid; place-items:center; z-index:2; }
.fav svg{ width:18px; height:18px; fill:none; stroke:var(--ink); stroke-width:2.2; }
.fav.saved{ background:var(--red); border-color:var(--red); }
.fav.saved svg{ fill:#fff; stroke:#fff; }
.seal{ position:absolute; top:8px; right:50px; width:36px; height:36px; z-index:1; }
.cardBody{ padding:12px 12px 12px; display:flex; flex-direction:column; gap:5px; flex:1; }
.cardBody h3{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:19px; line-height:1.02; margin:0; }
.price{ font-family:var(--display); font-weight:700; color:var(--red); font-size:22px; line-height:1; }
.byline{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:700; min-width:0; }
.byline .dot{ border-radius:50%; width:22px; height:22px; background:var(--ink); color:var(--yellow); font-family:var(--display); font-size:12px; display:grid; place-items:center; flex-shrink:0; }
.byline span.n{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.metaRow{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:auto; padding-top:6px; border-top:1px dotted var(--line); font-size:12px; font-weight:700; }
.wa{ display:inline-flex; align-items:center; gap:5px; background:var(--ink); color:var(--yellow); border:0; border-radius:999px; padding:6px 11px; font-weight:700; font-size:12px; text-decoration:none; }
.wa svg{ width:15px; height:15px; fill:currentColor; }
.badges{ display:flex; flex-wrap:wrap; gap:4px; }
.badge{ font-size:11px; font-weight:700; border:1px solid var(--ink); border-radius:5px; padding:1px 6px; background:var(--paper); }
.badge.es{ background:var(--ink); color:var(--yellow); }
.badge.ver{ background:var(--red); color:#fff; border-color:var(--red); }
.badge.cond{ background:var(--yellow); }

/* Listado tipo página del libro */
div.page{ background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); overflow:hidden; box-shadow:6px 6px 0 var(--ink); }
.pageTop{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:var(--ink); color:var(--yellow); padding:8px 14px; }
.pageTop b{ font-family:var(--display); font-size:18px; text-transform:uppercase; letter-spacing:.05em; }
.pageTop select{ background:var(--yellow); border:0; font-weight:700; padding:4px 8px; color:var(--ink); }
.chips{ display:flex; flex-wrap:wrap; gap:6px; padding:10px 14px; border-bottom:2px solid var(--ink); background:var(--yellow-pale); }
.chip{ background:var(--paper); border:2px solid var(--ink); border-radius:999px; padding:4px 12px; font-weight:700; font-size:13px; }
.chip[aria-pressed="true"]{ background:var(--ink); color:var(--yellow); }
.columns{ column-count:2; column-gap:0; column-rule:2px solid var(--ink); padding:0; }
.entry{ break-inside:avoid; display:grid; grid-template-columns:54px 1fr auto; gap:12px; padding:12px 16px; border-bottom:1px dotted rgba(0,0,0,.35); text-align:left; background:none; border-left:0; border-right:0; border-top:0; width:100%; cursor:pointer; }
.entry:hover{ background:var(--yellow-pale); }
.entry.top{ background:#FFFBE0; border-left:8px solid var(--red); }
.entry .mini{ width:54px; height:54px; background:var(--yellow); border:2px solid var(--ink); border-radius:var(--rs); display:grid; place-items:center; overflow:hidden; }
.entry .mini img{ width:100%; height:100%; object-fit:cover; }
.entry .mini svg{ width:32px; height:32px; }
.entry h4{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:17px; margin:0 0 2px; line-height:1.05; }
.entry p{ margin:0 0 4px; font-size:13.5px; }
.entry .eprice{ font-family:var(--display); font-weight:700; color:var(--red); font-size:18px; white-space:nowrap; text-align:right; }
.entry .eside{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.entry .ewhen{ font-size:11px; color:var(--gray); text-align:right; font-weight:700; }
.pageFoot{ display:flex; justify-content:space-between; padding:8px 14px; border-top:3px solid var(--ink); font-weight:700; font-size:12px; }
.empty{ column-span:all; display:flex; gap:16px; align-items:center; padding:22px; }
.empty svg{ width:150px; flex-shrink:0; }
.empty h3{ font-family:var(--display); text-transform:uppercase; font-size:24px; margin:0 0 4px; }

/* Cerca de ti */
.near{ background:var(--ink); color:var(--yellow); }
.near{ background:transparent; }
.near .wrap{ max-width:1120px; background:var(--ink); border-radius:var(--r); margin-top:6px; padding-left:24px; padding-right:24px; display:flex; align-items:center; gap:18px; padding-top:18px; padding-bottom:18px; flex-wrap:wrap; }
.near h3{ font-family:var(--display); text-transform:uppercase; font-size:26px; margin:0; line-height:1; }
.near small{ color:var(--yellow-pale); font-size:13px; }
.pills{ display:flex; gap:8px; margin-left:auto; flex-wrap:wrap; }
.pill{ background:transparent; border:3px solid var(--yellow); border-radius:999px; color:var(--yellow); font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:17px; padding:6px 18px; }
.pill[aria-pressed="true"]{ background:var(--yellow); color:var(--ink); }

/* Promo publicar */
.promo{ display:grid; grid-template-columns:200px 1fr auto; gap:20px; align-items:center; background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); box-shadow:6px 6px 0 var(--ink); padding:14px 22px; }
.promo svg{ width:100%; height:auto; }
.promo h3{ font-family:var(--display); text-transform:uppercase; font-size:34px; line-height:.95; margin:0 0 6px; }
.promo ul{ margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:6px 16px; font-weight:700; }
.promo li::before{ content:"✔ "; color:var(--red); }

footer{ background:var(--ink); color:var(--yellow-pale); font-size:13px; margin-top:28px; }
footer .wrap{ display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; align-items:center; padding:20px; }
footer b{ font-family:var(--display); color:var(--yellow); font-size:20px; text-transform:uppercase; letter-spacing:.04em; }

/* Barra inferior móvil */
.bottomNav{ display:none; }

/* ===== Modales ===== */
.overlay{ position:fixed; inset:0; background:rgba(0,0,0,.7); display:none; align-items:flex-start; justify-content:center; padding:20px; overflow:auto; z-index:100; }
.overlay.open{ display:flex; }
.sheet{ background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); overflow:hidden; box-shadow:8px 8px 0 var(--yellow); width:min(900px,100%); margin-top:calc(16px + env(safe-area-inset-top,0px)); margin-bottom:20px; }
.sheet.wide{ width:min(1080px,100%); }
.sheetHead{ background:var(--yellow); border-bottom:4px solid var(--ink); padding:14px 18px; display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.eyebrow{ font-family:var(--display); font-weight:700; font-size:12px; letter-spacing:.14em; }
.sheetHead h2{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:clamp(24px,4.4vw,36px); line-height:1; margin:2px 0 4px; }
.close{ background:var(--ink); color:var(--yellow); border:0; border-radius:50%; font-family:var(--display); font-size:20px; width:44px; height:44px; flex-shrink:0; }
.detail{ display:grid; grid-template-columns:1.1fr .9fr; }
.detail > div{ padding:18px; min-width:0; }
.detail > div + div{ border-left:3px solid var(--ink); }
.bigThumb{ border:2px solid var(--ink); border-radius:var(--r); overflow:hidden; aspect-ratio:16/9; }
.bigThumb .thumb{ border:0; height:100%; aspect-ratio:auto; }
.h4{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:15px; letter-spacing:.06em; border-bottom:2px solid var(--ink); padding-bottom:2px; margin:16px 0 6px; }
.table{ width:100%; border-collapse:collapse; font-size:14px; }
.table td{ padding:5px 0; border-bottom:1px dotted var(--line); }
.table td:last-child{ text-align:right; font-weight:700; }
.priceBig{ font-family:var(--display); font-weight:700; color:var(--red); font-size:42px; line-height:1; }
.stats{ display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.stats span{ border:2px solid var(--ink); padding:2px 8px; font-size:12px; font-weight:700; }
.actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.btn{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-weight:700; font-size:14px; padding:9px 15px; border:2px solid var(--ink); border-radius:var(--rs); background:var(--paper); }
.btn:hover{ box-shadow:3px 3px 0 var(--ink); transform:translate(-1px,-1px); }
.btn.red{ background:var(--red); color:#fff; }
.btn.black{ background:var(--ink); color:var(--yellow); }
.btn.yellow{ background:var(--yellow); }
.btn svg{ width:16px; height:16px; fill:currentColor; }
.seller{ border:2px solid var(--ink); border-radius:var(--r); padding:12px; margin-top:14px; background:var(--yellow-pale); }
.sellerTop{ display:flex; gap:10px; align-items:center; }
.avatar{ border-radius:50%; width:46px; height:46px; background:var(--ink); color:var(--yellow); font-family:var(--display); font-weight:700; font-size:20px; display:grid; place-items:center; flex-shrink:0; }
.sellerTop .sealSm{ width:24px; height:24px; vertical-align:middle; }
.safety{ display:flex; gap:10px; align-items:center; border:2px dashed var(--ink); border-radius:var(--r); padding:10px; margin-top:14px; font-size:14px; }
.safety svg{ width:74px; flex-shrink:0; }

/* Publicar */
.steps{ display:flex; gap:6px; padding:14px 18px 0; }
.steps span{ flex:1; height:8px; background:#ddd; border:2px solid var(--ink); border-radius:999px; }
.steps span.on{ background:var(--red); }
.pubCats{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:18px; }
.pubCat{ display:flex; gap:10px; align-items:center; border:2px solid var(--ink); border-radius:var(--r); background:var(--paper); padding:12px; text-align:left; }
.pubCat:hover{ background:var(--yellow); box-shadow:var(--shadow); transform:translate(-2px,-2px); }
.pubCat .ic{ width:46px; height:46px; border-radius:50%; background:var(--yellow); border:2px solid var(--ink); display:grid; place-items:center; flex-shrink:0; }
.pubCat .ic svg{ width:30px; height:30px; }
.pubCat b{ font-family:var(--display); text-transform:uppercase; font-size:17px; display:block; line-height:1; }
.form{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:18px; }
.form label{ display:grid; gap:4px; font-weight:700; font-size:14px; }
.form .full{ grid-column:1/-1; }
.form input,.form select,.form textarea{ border:2px solid var(--ink); padding:10px; font-size:16px; background:var(--paper); border-radius:var(--rs); width:100%; }
.form .check{ display:flex; gap:8px; align-items:center; font-weight:400; }
.form .check input{ width:auto; }
.hello{ display:flex; gap:14px; align-items:center; background:var(--ink); color:var(--yellow); padding:12px 18px; }
.hello svg{ width:86px; flex-shrink:0; }
.hello p{ margin:0; }
.previewWrap{ padding:18px; display:grid; grid-template-columns:280px 1fr; gap:20px; align-items:start; }
.done{ text-align:center; padding:26px 18px; }
.done svg{ width:210px; }
.done h3{ font-family:var(--display); text-transform:uppercase; font-size:32px; margin:6px 0; }

/* Mensajes / perfil */
.msgs{ display:grid; grid-template-columns:260px 1fr; min-height:420px; }
.threads{ border-right:3px solid var(--ink); }
.thread{ display:flex; gap:10px; width:100%; text-align:left; background:var(--paper); border:0; border-bottom:1px dotted var(--line); padding:12px; }
.thread[aria-pressed="true"],.thread:hover{ background:var(--yellow-pale); }
.thread small{ display:block; color:var(--gray); }
.conv{ display:flex; flex-direction:column; }
.convHead{ padding:12px 16px; border-bottom:2px solid var(--ink); }
.convBody{ flex:1; padding:16px; background:repeating-linear-gradient(0deg,transparent 0 23px,rgba(0,0,0,.05) 23px 24px); display:flex; flex-direction:column; gap:8px; }
.bubble{ max-width:74%; border:2px solid var(--ink); border-radius:14px 14px 14px 4px; padding:8px 12px; background:var(--paper); }
.bubble.me{ border-radius:14px 14px 4px 14px; }
.bubble.me{ margin-left:auto; background:var(--yellow); }
.composer{ display:flex; gap:8px; padding:10px; border-top:3px solid var(--ink); }
.composer input{ flex:1; border:3px solid var(--ink); padding:9px; }
.profile{ padding:18px; }
.pstats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:16px 0; }
.pstats div{ border:2px solid var(--ink); border-radius:var(--r); padding:10px; text-align:center; font-weight:700; }
.pstats b{ display:block; font-family:var(--display); font-size:28px; color:var(--red); }
.savedGrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }

.toast{ position:fixed; left:50%; bottom:26px; transform:translate(-50%,20px); background:var(--ink); color:var(--yellow); border:3px solid var(--yellow); font-weight:700; padding:10px 16px; opacity:0; pointer-events:none; transition:.2s; z-index:200; }
.toast.show{ opacity:1; transform:translate(-50%,0); }


/* ===== Sello verificado en la tarjeta ===== */
.vbadge{ display:inline-flex; align-items:center; gap:6px; width:max-content; max-width:100%; padding:3px 10px 3px 3px; border:2px solid var(--ink); border-radius:999px; background:var(--paper); font-size:10px; font-weight:700; letter-spacing:.06em; line-height:1; }
.vbadge i{ width:22px; height:22px; border-radius:50%; background:var(--yellow); border:2px solid var(--ink); display:grid; place-items:center; flex-shrink:0; }
.vbadge svg{ width:15px; height:15px; }

/* ===== Tres beneficios ===== */
.features{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feat{ background:var(--paper); border:2px solid var(--ink); border-radius:var(--r); box-shadow:var(--shadow); padding:16px; display:flex; gap:14px; align-items:center; }
.feat .fi{ width:58px; height:58px; border-radius:50%; background:var(--yellow); border:2px solid var(--ink); display:grid; place-items:center; flex-shrink:0; }
.feat .fi svg{ width:32px; height:32px; }
.feat h3{ font-family:var(--display); text-transform:uppercase; font-size:20px; margin:0 0 3px; line-height:1; }
.feat p{ margin:0 0 8px; font-size:14px; }
.feat .btn{ padding:6px 12px; font-size:13px; }
.feat.lead{ background:var(--ink); color:var(--yellow); }
.feat.lead p{ color:var(--yellow-pale); }

/* ===== Chat de Lupín ===== */
.lchat{ position:fixed; right:22px; bottom:22px; z-index:98; }
.lchat-toggle{ width:76px; height:76px; border-radius:50%; background:var(--yellow); border:3px solid var(--ink); box-shadow:4px 4px 0 var(--ink); padding:4px; display:grid; place-items:center; position:relative; }
.lchat-toggle:hover{ transform:translate(-1px,-2px); box-shadow:5px 6px 0 var(--ink); }
.lchat-toggle svg{ width:100%; height:100%; }
.lchat-dot{ position:absolute; top:2px; right:2px; width:16px; height:16px; border-radius:50%; background:var(--red); border:3px solid var(--yellow); }
.lchat.open .lchat-dot, .lchat.seen .lchat-dot{ display:none; }
.lchat-label{ position:absolute; right:6px; bottom:90px; background:var(--ink); color:var(--yellow); font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:15px; padding:8px 12px; border-radius:12px; white-space:nowrap; }
.lchat-label::after{ content:""; position:absolute; right:24px; bottom:-14px; border:8px solid transparent; border-top-color:var(--ink); }
.lchat.open .lchat-label, .lchat.seen .lchat-label{ display:none; }
.lchat-panel{ position:absolute; right:0; bottom:90px; width:370px; max-height:min(620px, calc(100vh - 130px)); background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); box-shadow:6px 6px 0 var(--ink); display:none; flex-direction:column; overflow:hidden; }
.lchat.open .lchat-panel{ display:flex; }
.lchat-head{ background:var(--ink); color:#fff; padding:10px 12px; display:flex; align-items:center; gap:10px; }
.lchat-head .mini{ width:44px; height:44px; border-radius:50%; background:var(--yellow); flex-shrink:0; }
.lchat-head .mini svg{ width:100%; height:100%; }
.lchat-head b{ display:block; font-family:var(--display); text-transform:uppercase; color:var(--yellow); font-size:17px; line-height:1; }
.lchat-head small{ font-size:12px; color:var(--yellow-pale); }
.lchat-head .x{ margin-left:auto; background:var(--yellow); color:var(--ink); border:0; width:32px; height:32px; border-radius:50%; font-weight:700; }
.lchat-log{ flex:1; overflow-y:auto; padding:12px; background:var(--yellow-pale) repeating-linear-gradient(0deg,transparent 0 23px,rgba(0,0,0,.04) 23px 24px); display:flex; flex-direction:column; gap:10px; min-height:220px; }
.msg{ max-width:88%; padding:9px 12px; border:2px solid var(--ink); font-size:14px; line-height:1.3; background:var(--paper); border-radius:14px 14px 14px 4px; }
.msg.me{ align-self:flex-end; background:var(--yellow); border-radius:14px 14px 4px 14px; }
.msg.typing{ letter-spacing:3px; font-weight:700; }
.opts{ display:grid; gap:6px; }
.opts button{ text-align:left; background:var(--paper); border:2px solid var(--ink); border-radius:10px; padding:8px 10px; font-weight:700; font-size:13px; }
.opts button:hover{ background:var(--yellow); }
.opts.row{ display:flex; flex-wrap:wrap; }
.opts.row button{ border-radius:999px; padding:5px 12px; }
.mres{ display:grid; gap:6px; }
.mres button{ display:grid; grid-template-columns:40px 1fr; gap:8px; align-items:center; text-align:left; background:var(--paper); border:2px solid var(--ink); border-radius:10px; padding:6px; }
.mres button:hover{ background:var(--yellow); }
.mres .mi{ width:40px; height:40px; border-radius:8px; background:var(--yellow); border:2px solid var(--ink); overflow:hidden; display:grid; place-items:center; }
.mres .mi img{ width:100%; height:100%; object-fit:cover; }
.mres .mi svg{ width:24px; height:24px; }
.mres b{ display:block; font-size:13px; line-height:1.1; }
.mres small{ font-size:12px; color:var(--red); font-weight:700; }
.lchat-form{ display:flex; gap:6px; padding:8px; border-top:3px solid var(--ink); background:var(--paper); }
.lchat-form input{ flex:1; min-width:0; border:2px solid var(--ink); border-radius:10px; padding:9px 10px; font-size:15px; }
.lchat-form button{ background:var(--red); color:#fff; border:2px solid var(--ink); border-radius:10px; padding:0 14px; font-weight:700; }
.lchat-note{ font-size:11px; color:var(--gray); text-align:center; padding:0 8px 6px; background:var(--paper); }

/* ===== Responsive ===== */
@media (max-width:1180px){ .mainnav{ display:none; } }
@media (max-width:1000px){
  .rail{ grid-auto-columns:calc((100% - 28px)/3); }
  .hero .wrap{ grid-template-columns:1fr 230px; }
}
@media (max-width:720px){
  body{ padding-bottom:70px; }
  .topbar{ display:none; }
  .head{ padding:10px 0 8px; }
  .brand .mascot{ width:70px; }
  .brand .la{ font-size:36px; }
  .brand .am{ font-size:13.2px; }
  .brand .tag{ font-size:10px; }
  .headRight .pubBtn{ font-size:13px; padding:7px 8px; box-shadow:3px 3px 0 var(--ink); }
  .head{ gap:8px; }
  .brand{ gap:6px; min-width:0; }
  .brand .mascot{ width:58px; }
  .brand .la{ font-size:31px; }
  .brand .am{ font-size:11.4px; }
  .hero .wrap{ grid-template-columns:1fr; padding-top:18px; }
  .heroLupin{ display:none; }
  .hero h1{ font-size:33px; }
  .hero p{ font-size:16px; }
  .search{ grid-template-columns:1fr; }
  .search label + label{ border-left:0; border-top:3px solid var(--ink); }
  .search .go{ border-left:0; border-top:4px solid var(--ink); min-height:52px; }
  .tabs{ display:flex; overflow-x:auto; gap:8px; padding:4px 4px 10px; scrollbar-width:none; }
  .tabs .tab{ flex:0 0 96px; }
  .tab{ padding:8px 4px; }
  .tab .ic{ width:40px; height:40px; } .tab .ic svg{ width:26px; height:26px; }
  .tab b{ font-size:13px; } .tab small{ display:none; }
  .tab .letter{ font-size:10px; min-width:18px; height:18px; padding:0 3px; }
  .rail{ grid-auto-columns:78%; }
  .arrow{ display:none; }
  .columns{ column-count:1; }
  .entry{ grid-template-columns:44px 1fr; }
  .entry .mini{ width:44px; height:44px; }
  .entry .eside{ grid-column:2; flex-direction:row; gap:10px; align-items:baseline; justify-content:flex-start; }
  .pills{ margin-left:0; }
  .promo{ grid-template-columns:90px 1fr; }
  .promo .btn{ grid-column:1/-1; justify-content:center; }
  .promo h3{ font-size:24px; }
  .overlay{ padding:0; }
  .sheet{ margin:0; min-height:100%; box-shadow:none; border-width:0; }
  .detail{ grid-template-columns:1fr; }
  .detail > div + div{ border-left:0; border-top:3px solid var(--ink); }
  .pubCats{ grid-template-columns:1fr 1fr; }
  .form{ grid-template-columns:1fr; }
  .previewWrap{ grid-template-columns:1fr; }
  .msgs{ grid-template-columns:1fr; }
  .threads{ border-right:0; border-bottom:3px solid var(--ink); }
  .bottomNav{ display:grid; grid-template-columns:repeat(5,1fr); position:fixed; left:0; right:0; bottom:0; background:var(--ink); border-top:4px solid var(--yellow); z-index:90; padding-bottom:env(safe-area-inset-bottom,0px); }
  .bottomNav button{ background:none; border:0; color:var(--yellow-pale); font-size:11px; font-weight:700; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 0; }
  .bottomNav button svg{ width:22px; height:22px; fill:currentColor; }
  .bottomNav button[aria-current="page"]{ color:var(--yellow); }
  .bottomNav .plus{ background:var(--red); color:#fff; width:56px; height:56px; margin:-22px auto 0; border:4px solid var(--yellow); font-family:var(--display); font-size:30px; line-height:1; justify-content:center; padding:0; }
  .toast{ bottom:84px; }
  .lchat{ right:12px; bottom:84px; }
  .lchat-toggle{ width:62px; height:62px; }
  .lchat-label{ display:none; }
  .lchat-panel{ width:calc(100vw - 24px); bottom:74px; max-height:calc(100vh - 190px); }
  .features{ grid-template-columns:1fr; }
}

/* ====================== WordPress: La Lupa Amarilla ====================== */
html{ scroll-behavior:smooth; }
.skip:focus{ position:fixed; left:10px; top:10px; width:auto; height:auto; clip:auto; background:#000; color:var(--yellow); padding:8px 12px; z-index:999; }
a.tab,a.entry,a.pill,a.chip,.mainnav a,.quick a,.bottomNav a,.topright a,.topbar nav a{ text-decoration:none; color:inherit; }
.topright a{ color:var(--yellow); }
.mainnav a{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:15px; letter-spacing:.02em; border:3px solid transparent; padding:6px 7px; white-space:nowrap; border-radius:var(--rs); }
.mainnav a:hover{ border-color:var(--ink); background:var(--paper); }
.mainnav a[aria-current]{ background:var(--ink); color:var(--yellow); }
.pubBtn{ text-decoration:none; display:inline-block; }
.brand{ color:var(--ink); }
.brand .mascot{ width:96px; margin:-8px 0 -10px; }
.brand .mascot img{ width:100%; height:auto; display:block; }
.lupin{ display:block; max-width:100%; height:auto; }
.heroLupin img{ width:100%; height:auto; }
.heroLupin.small{ max-width:190px; justify-self:end; }
.hero--slim .wrap{ grid-template-columns:1fr 200px; padding-top:18px; padding-bottom:18px; }
.hero--slim h1{ font-size:clamp(28px,4vw,46px); margin:4px 0 14px; }
.crumbs{ font-size:13px; font-weight:700; margin-bottom:6px; }
.crumbs a{ color:inherit; }
.note{ font-size:14px; font-weight:700; margin:10px 0 0; }
.quick a{ background:var(--paper); border:2px solid var(--ink); border-radius:999px; padding:3px 11px; font-weight:700; font-size:13px; }
.quick a:hover{ background:var(--ink); color:var(--yellow); }
a.tab[aria-current]{ background:var(--ink); color:var(--yellow); }
.tabs--compact{ grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); }
.tabs--compact .tab{ padding:8px 4px; }
.tabs--compact .tab .ic{ width:40px; height:40px; } .tabs--compact .tab .ic svg{ width:24px; height:24px; }
.tabs--compact .tab b{ font-size:12px; }
/* tarjetas */
.card{ position:relative; }
.card h3 a{ color:inherit; text-decoration:none; }
.card .stretch::after{ content:""; position:absolute; inset:0; z-index:1; }
.card .fav, .card .wa{ position:relative; z-index:2; }
.card .fav{ position:absolute; }
.thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.thumb .catLabel, .thumb .ribbon{ z-index:1; }
.entry{ color:inherit; }
.entry .mini img{ width:100%; height:100%; object-fit:cover; }
.grid4{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
.pageTop .pageLink{ color:var(--yellow); font-weight:700; }
.sortForm select{ background:var(--yellow); border:0; font-weight:700; padding:4px 8px; color:var(--ink); }
a.pill{ display:inline-block; }
.near .wrap{ position:relative; }
.nearLupin{ width:90px; margin:-26px 0 -16px; }
.feat .fiL{ width:96px; flex-shrink:0; }
.feat .fiL img{ width:100%; }
.feat .btn{ text-decoration:none; }
/* paginación */
.navigation.pagination{ margin-top:18px; }
.nav-links{ display:flex; flex-wrap:wrap; gap:6px; }
.nav-links a,.nav-links span{ border:2px solid var(--ink); border-radius:var(--rs); background:var(--paper); padding:6px 12px; font-weight:700; text-decoration:none; color:var(--ink); }
.nav-links .current{ background:var(--ink); color:var(--yellow); }
/* ficha del anuncio */
.adWrap{ padding-top:16px; padding-bottom:10px; }
.adPage{ margin:10px 0 18px; width:100%; }
.adPage .sheetHead h1{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:clamp(26px,4.4vw,40px); line-height:1; margin:2px 0 6px; }
.fav--big{ position:static; width:48px; height:48px; flex-shrink:0; }
.fav--big svg{ width:24px; height:24px; }
.detail aside{ padding:18px; }
.gallery .bigThumb{ aspect-ratio:16/10; position:relative; background:var(--yellow-pale); }
.gallery .bigThumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery .bigThumb .thumb{ height:100%; }
.gallery .thumbs{ display:flex; gap:8px; margin-top:8px; }
.gallery .thumbs button{ width:72px; height:56px; padding:0; border:2px solid var(--ink); border-radius:8px; overflow:hidden; background:none; }
.gallery .thumbs img{ width:100%; height:100%; object-fit:cover; }
.adText{ font-size:16px; margin-top:14px; }
.small{ font-size:13px; }
.sellerTop{ position:relative; }
.sellerLupin{ width:64px; margin-left:auto; margin-top:-24px; }
.seller .vbadge{ margin-top:10px; }
.safety .lupin{ width:74px; flex-shrink:0; }
.report{ margin-top:14px; border:2px solid var(--ink); border-radius:var(--rs); padding:8px 12px; background:var(--paper); }
.report summary{ font-weight:700; cursor:pointer; }
.report form{ display:flex; gap:8px; flex-wrap:wrap; align-items:end; margin-top:8px; }
.report select{ border:2px solid var(--ink); border-radius:8px; padding:6px; }
/* páginas */
.pageWrap{ padding-top:22px; padding-bottom:28px; }
.pageTitle{ font-family:var(--display); font-weight:700; text-transform:uppercase; font-size:clamp(30px,5vw,48px); line-height:.95; margin:0 0 16px; }
.entry-content{ font-size:16px; }
.entry-content > *:first-child{ margin-top:0; }
.notFound{ display:grid; grid-template-columns:220px 1fr; gap:24px; align-items:center; }
.nfLupin{ width:100%; }
.lupaBox{ display:flex; gap:18px; align-items:center; background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); box-shadow:var(--shadow); padding:16px 20px; margin-bottom:18px; }
.lupaBox .boxLupin{ width:130px; flex-shrink:0; }
.lupaBox h3{ font-family:var(--display); text-transform:uppercase; font-size:24px; margin:0 0 6px; line-height:1; }
.lupaBox ul{ margin:6px 0 0; padding-left:18px; }
.lupaBox li{ margin:4px 0; }
.lupaBox input[type=text],.lupaBox input[type=password]{ border:2px solid var(--ink); border-radius:8px; padding:8px; width:100%; max-width:320px; }
.lupaBox input[type=submit]{ background:var(--red); color:#fff; border:2px solid var(--ink); border-radius:8px; padding:8px 16px; font-weight:700; cursor:pointer; }
.lupaAlert{ display:flex; gap:12px; align-items:center; background:var(--paper); border:3px solid var(--red); border-radius:var(--r); padding:10px 14px; margin:0 0 16px; font-weight:700; }
.lupaAlert.ok{ border-color:var(--ink); background:var(--yellow-pale); }
.lupaAlert p{ margin:0; }
.alertLupin{ width:70px; flex-shrink:0; }
.lupaDone{ text-align:center; background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); padding:26px 18px; }
.lupaDone .doneLupin{ width:220px; margin:0 auto; }
.lupaDone h2{ font-family:var(--display); text-transform:uppercase; font-size:34px; margin:8px 0; }
.lupaDone .btn,.lupaBox .btn,.lupaAlert .btn,.empty .btn{ text-decoration:none; }
/* publicar */
.lupaPublish{ background:var(--paper); border:3px solid var(--ink); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
.lupaPublish .hp{ position:absolute; left:-9999px; }
.lupaPublish .hello{ border-radius:0; }
.helloLupin{ width:110px; flex-shrink:0; }
.pubTitle{ font-family:var(--display); text-transform:uppercase; font-size:24px; margin:18px 18px 0; }
.entry-content > .pubTitle{ margin-left:0; }
.pubCat{ cursor:pointer; position:relative; }
.pubCat input{ position:absolute; opacity:0; }
.pubCat:has(input:checked){ background:var(--yellow); box-shadow:var(--shadow); }
.pubCat:focus-within{ outline:3px solid var(--red); outline-offset:2px; }
.pubCat small{ display:block; font-size:12px; color:var(--gray); }
.previewWrap .previewLupin{ width:120px; }
.pubPreview .card{ pointer-events:none; }
.pubNav{ display:flex; gap:10px; justify-content:space-between; padding:14px 18px; border-top:3px solid var(--ink); background:var(--yellow-pale); }
.js .lupaPublish .pubStep{ display:none; }
.js .lupaPublish .pubStep.on{ display:block; }
.js .lupaPublish [data-submit]{ display:none; }
.js .lupaPublish.last [data-submit]{ display:inline-flex; }
.js .lupaPublish.last [data-next]{ display:none; }
.js .lupaPublish.first [data-prev]{ visibility:hidden; }
.lupaPublish:not(.ready) [data-prev], .lupaPublish:not(.ready) [data-next]{ display:none; }
.myAds{ display:grid; gap:8px; margin-bottom:18px; }
.myAd{ display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; background:var(--paper); border:2px solid var(--ink); border-radius:var(--rs); padding:10px 12px; }
.myAd small{ display:block; color:var(--gray); }
.myAd .actions{ margin:0; } .myAd form{ margin:0; }
.lupaFavs .loading{ font-weight:700; }
.lupaFavs.grid4{ margin-bottom:18px; }
/* pie */
.siteFoot{ background:var(--ink); color:var(--yellow-pale); margin-top:28px; font-size:14px; }
.footGrid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:22px; padding-top:22px; padding-bottom:16px; align-items:center; }
.footBrand{ display:flex; gap:12px; align-items:center; }
.footBrand b{ font-family:var(--display); color:var(--yellow); font-size:22px; text-transform:uppercase; }
.footBrand p{ margin:4px 0 0; }
.footLupin{ width:84px; flex-shrink:0; }
.footLinks{ display:grid; gap:6px; }
.footLinks a,.footLinks li a{ color:var(--yellow); text-decoration:none; font-weight:700; }
.footLinks li{ list-style:none; }
.footSoon{ display:flex; gap:10px; align-items:center; font-weight:700; color:var(--yellow); }
.soonLupin{ width:80px; }
.footCopy{ border-top:1px solid #333; padding-top:10px; padding-bottom:14px; font-size:12px; }
/* chat */
.lchat-toggle img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.lchat-head .mini img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.botRow{ display:flex; gap:6px; align-items:flex-end; }
.botRow .av{ width:34px; height:34px; flex-shrink:0; border-radius:50%; background:var(--yellow); border:2px solid var(--ink); overflow:hidden; }
.botRow .av img{ width:100%; height:100%; object-fit:cover; }
.botRow .msg{ max-width:84%; }
.typingLupin{ width:56px; }
.mres a{ display:grid; grid-template-columns:40px 1fr; gap:8px; align-items:center; text-align:left; background:var(--paper); border:2px solid var(--ink); border-radius:10px; padding:6px; color:inherit; text-decoration:none; }
.mres a:hover{ background:var(--yellow); }
.opts a{ display:block; text-align:left; background:var(--paper); border:2px solid var(--ink); border-radius:10px; padding:8px 10px; font-weight:700; font-size:13px; text-decoration:none; color:inherit; }
.opts.row a{ border-radius:999px; padding:5px 12px; }
.opts a:hover{ background:var(--yellow); }
.poseLupin{ width:90px; align-self:center; }
.bottomNav a{ color:var(--yellow-pale); font-size:11px; font-weight:700; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 0; }
.bottomNav a svg{ width:22px; height:22px; fill:currentColor; }
.bottomNav a[aria-current]{ color:var(--yellow); }
.bottomNav .plus{ background:var(--red); color:#fff; width:56px; height:56px; margin:-22px auto 0; border:4px solid var(--yellow); font-family:var(--display); font-size:30px; line-height:1; justify-content:center; padding:0; border-radius:50%; }
body.admin-bar .lchat{ }
@media (max-width:900px){ .footGrid{ grid-template-columns:1fr; } }
@media (max-width:720px){
  .hero--slim .wrap{ grid-template-columns:1fr; }
  .heroLupin.small{ display:none; }
  .brand .mascot{ width:62px; }
  .detail aside{ border-top:3px solid var(--ink); }
  .notFound{ grid-template-columns:1fr; } .nfLupin{ width:160px; }
  .lupaBox{ flex-direction:column; text-align:center; } .lupaBox ul{ text-align:left; }
  .nearLupin{ display:none; }
  .feat .fiL{ width:72px; }
  .sellerLupin{ width:52px; }
}
.detail > aside{ border-left:3px solid var(--ink); }
@media (max-width:720px){ .detail > aside{ border-left:0; } .adPage{ border-width:3px; } }
.headRight{ min-width:0; }
.mainnav{ flex-wrap:nowrap; overflow:hidden; }
.mainnav a{ font-size:14px; }
@media (max-width:1240px){ .mainnav{ display:none; } }
.tabs:not(.tabs--compact){ grid-template-columns:repeat(6,1fr); }
.tab b{ overflow-wrap:anywhere; }
@media (max-width:1000px){ .tabs:not(.tabs--compact){ grid-template-columns:repeat(4,1fr); } }
@media (max-width:720px){ .tabs:not(.tabs--compact){ display:flex; } }
