/* ==========================================================
   Portal Santo Domingo — hoja de estilos principal
   Mobile-first · sin frameworks · colores en variables
   ========================================================== */

:root {
  --primary: #0B5D52;
  --primary-700: #084A41;
  --primary-900: #062F2A;
  --primary-50: #E9F4F1;
  --accent: #FF7A1A;
  --accent-700: #C85A06;
  --accent-50: #FFF2E6;
  --gold: #C98A00;
  --gold-50: #FFF6DA;
  --wa: #1DA851;
  --wa-700: #168A42;
  --ink: #0F1B22;
  --ink-2: #2B3A42;
  --muted: #62717A;
  --line: #E6E9E6;
  --bg: #F6F6F3;
  --card: #FFFFFF;
  --danger: #B42318;
  --danger-50: #FDECEA;
  --ok: #117A3D;
  --ok-50: #E6F4EC;
  --info: #175CD3;
  --info-50: #EAF1FD;
  --warn: #9A5B00;
  --warn-50: #FFF4E0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 34, .05), 0 6px 20px rgba(15, 27, 34, .06);
  --shadow-lg: 0 18px 44px rgba(15, 27, 34, .14);
  --ring: 0 0 0 1px rgba(15, 27, 34, .06);
  --wrap: 1240px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hp { position: absolute; left: -5000px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.1em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-accent { background: var(--accent); color: #1d1206; }
.btn-accent:hover { background: #F59A3F; color: #1d1206; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-700); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-700); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-sm { min-height: 36px; padding: .4em .85em; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: .8em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Encabezado ---------- */
.topbar { background: var(--primary-900); color: #cfe7e1; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand span { min-width: 0; }
.brand b, .brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-size: 1.02rem; line-height: 1.05; font-weight: 700; }
.brand small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.header-search { flex: 1; display: none; }
.header-search form { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.header-search input { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent; padding: .5em 1em; font: inherit; font-size: .95rem; min-width: 0; min-height: 42px; }
.header-search form:focus-within { border-color: var(--primary); }
.header-search button { border: 0; background: transparent; padding: 0 14px; color: var(--muted); cursor: pointer; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; padding: .5em .7em; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
@media (max-width: 440px) {
  .header .wrap { gap: 8px; }
  .header .brand small { display: none; }
  .header .brand b { font-size: .9rem; white-space: normal; line-height: 1.1; max-width: 9.5em; }
  .header .brand img { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .header .icon-btn { width: 42px; height: 42px; }
  .header .btn-accent { min-height: 42px; padding: 0 12px; }
}
.header-actions .btn-accent { padding-left: .9em; padding-right: .9em; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.publish-label { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .scrim { position: absolute; inset: 0; background: rgba(8, 20, 24, .45); }
.mobile-menu .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; padding: 16px; overflow-y: auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 6px; }
.mobile-menu .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mobile-menu a.m-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-menu a.m-link:hover { background: var(--primary-50); }
.mobile-menu h4 { margin: 12px 12px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
body.menu-open { overflow: hidden; }

@media (min-width: 640px) {
  .publish-label { display: inline; }
}
@media (min-width: 900px) {
  .header-search { display: block; max-width: 380px; }
  .menu-toggle { display: none; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
}

/* ---------- Mensajes ---------- */
.flashes { margin: 16px auto 0; }
.alert { display: block; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-50); color: #0b5a2c; border-color: #bfe3cd; }
.alert-error { background: var(--danger-50); color: #8a1b12; border-color: #f4c7c1; }
.alert-info { background: var(--info-50); color: #12428f; border-color: #c6d8f7; }
.alert-warn { background: var(--warn-50); color: #6f4100; border-color: #f3d9a6; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--primary-900); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 37, .78) 0%, rgba(8, 44, 40, .72) 55%, rgba(8, 40, 37, .9) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 40px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.4rem); max-width: 16ch; margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: #FFC78A; }
.hero p.lead { font-size: clamp(1rem, 2.6vw, 1.2rem); color: #e2f1ed; max-width: 38ch; margin-bottom: 1.4em; }
.hero-credit { position: absolute; right: 10px; bottom: 6px; z-index: 1; font-size: .68rem; color: rgba(255, 255, 255, .7); }
.hero-credit a { color: inherit; }
.bigsearch { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); display: grid; gap: 8px; max-width: 860px; }
.bigsearch .f { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; color: var(--muted); }
.bigsearch input, .bigsearch select { border: 0 !important; box-shadow: none !important; font: inherit; font-size: 16px; color: var(--ink); padding: .8em 0; width: 100%; background: transparent; min-width: 0; min-height: 48px; border-radius: 0; }
.bigsearch .f:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 95, .18); }
.bigsearch .btn { min-height: 50px; border-radius: 12px; }
@media (min-width: 760px) {
  .bigsearch { grid-template-columns: 1.5fr 1.15fr 1fr auto; padding: 8px; max-width: 940px; }
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .9rem; color: #d7ece6; }
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Secciones ---------- */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-700); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 118px; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-card .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.cat-card .ci .ico { width: 24px; height: 24px; }
.cat-card b { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 400px) { .cat-card { padding: 14px 12px; } .cat-card b { font-size: .88rem; } }
.cat-card small { color: var(--muted); font-size: .8rem; }

/* ---------- Tarjetas de anuncio ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
@media (max-width: 519px) { .grid.grid-2m { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #E9EEEC; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: .98rem; font-weight: 600; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-price { font-size: 1.12rem; font-weight: 700; color: var(--primary-700); }
.card-price.none { font-size: .9rem; font-weight: 500; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); margin-top: auto; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .ico { width: 14px; height: 14px; }
.card-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; font-weight: 600; color: var(--primary-700); text-transform: uppercase; letter-spacing: .04em; }
.card-cta { margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.card-cta .ico { width: 16px; height: 16px; }
.tags { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.tag .ico { width: 13px; height: 13px; }
.tag-featured { background: #FFD24D; color: #3a2800; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.tag-verified { background: rgba(255, 255, 255, .95); color: var(--primary-700); }
.tag-demo { background: rgba(22, 34, 43, .82); color: #fff; }
.card.featured { border: 2px solid #F2C12E; background: linear-gradient(180deg, #FFFBEA 0%, #fff 40%); }
.featured-band { background: linear-gradient(135deg, #0B544A 0%, #0F6B5F 60%, #13806F 100%); color: #fff; }
.featured-band h2, .featured-band .section-head p { color: #fff; }
.featured-band .section-head p { color: #cfe7e1; }
.featured-band .eyebrow { color: #FFC78A; }

/* ---------- Negocios ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.biz-cover { aspect-ratio: 16 / 7; background: var(--primary-50); position: relative; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-logo { width: 64px; height: 64px; border-radius: 16px; border: 3px solid #fff; background: #fff; box-shadow: var(--shadow); position: absolute; left: 14px; bottom: -28px; overflow: hidden; display: grid; place-items: center; color: var(--primary); }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: 36px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.verified { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-size: .75rem; font-weight: 600; align-self: flex-start; }
.verified .ico { width: 15px; height: 15px; }

/* ---------- Huánuco ---------- */
.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .places { grid-template-columns: repeat(4, 1fr); } }
.place { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #ccc; }
.place img { width: 100%; height: 100%; object-fit: cover; }
.place figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); color: #fff; font-weight: 600; font-size: .95rem; }
.place figcaption small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; }

.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-50); color: var(--accent-700); font-weight: 700; margin-bottom: 10px; }

.cta-band { background: var(--accent-50); border: 1px solid #F7D4AE; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (min-width: 760px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--ink-2); }

/* ---------- Búsqueda / listados ---------- */
.page-head { padding: 24px 0 8px; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.layout-search { display: grid; gap: 18px; padding-bottom: 40px; }
@media (min-width: 980px) { .layout-search { grid-template-columns: 280px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters h3 { display: flex; align-items: center; gap: 8px; }
.filters .field { margin-bottom: 12px; }
.filters-toggle { display: flex; }
@media (max-width: 979px) {
  .filters { display: none; }
  .filters.open { display: block; }
}
@media (min-width: 980px) {
  .filters { position: sticky; top: 80px; }
  .filters-toggle { display: none; }
}
.results-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.results-bar select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-size: .8rem; text-decoration: none; font-weight: 500; }
.chip:hover { background: #d6ebe6; }
.chip .ico { width: 14px; height: 14px; }
.empty { text-align: center; background: #fff; border: 1px dashed #c9d3cf; border-radius: var(--radius); padding: 36px 20px; }
.empty .ico { width: 44px; height: 44px; color: var(--muted); margin: 0 auto 10px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 500; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* ---------- Formularios ---------- */
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #CBD5D1; border-radius: var(--radius-sm); padding: .7em .85em; min-height: 46px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 107, 95, .18); }
.is-invalid { border-color: var(--danger) !important; }
.field { margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: .84rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--bg); border: 1.5px solid #CBD5D1; border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 600; color: var(--ink-2); }
.prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 640px) { .form-card { padding: 26px; } }
.form-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.form-card + .form-card { margin-top: 16px; }
.form-narrow { max-width: 460px; margin: 0 auto; }
.form-mid { max-width: 780px; margin: 0 auto; }
.help-box { background: var(--accent-50); border: 1px solid #F7D4AE; border-radius: var(--radius-sm); padding: 14px; }

.photo-drop { border: 2px dashed #b9c8c3; border-radius: var(--radius); padding: 22px 16px; text-align: center; background: #FAFCFB; cursor: pointer; transition: border-color .15s, background .15s; }
.photo-drop:hover, .photo-drop.drag { border-color: var(--primary); background: var(--primary-50); }
.photo-drop .ico { width: 36px; height: 36px; margin: 0 auto 6px; color: var(--primary); }
.photo-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.preview { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #eee; border: 1px solid var(--line); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .rm { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.preview .rm .ico { width: 16px; height: 16px; }
.preview .main-tag { position: absolute; left: 4px; bottom: 4px; background: var(--accent); color: #1d1206; font-size: .65rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

/* ---------- Detalle del anuncio ---------- */
.detail { display: grid; gap: 20px; padding-bottom: 40px; }
.detail > * { min-width: 0; }
@media (max-width: 979px) { .detail .d-body { order: 3; } .detail .d-side { order: 2; } }
@media (min-width: 980px) {
  .detail { grid-template-columns: 1fr 360px; grid-template-areas: "gallery side" "body side"; align-items: start; }
  .detail .d-gallery { grid-area: gallery; }
  .detail .d-side { grid-area: side; }
  .detail .d-body { grid-area: body; }
}
.gallery-main { position: relative; background: #0f1a1f; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.prev .ico { transform: rotate(180deg); }
.gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 76px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #ddd; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.detail-box + .detail-box { margin-top: 14px; }
.detail-price { font-size: 1.8rem; font-weight: 700; color: var(--primary-700); margin: 4px 0 8px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .92rem; margin: 0; }
.facts dt { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.facts dt .ico { width: 16px; height: 16px; }
.facts dd { margin: 0; font-weight: 500; }
.desc { white-space: pre-line; overflow-wrap: anywhere; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 980px) { .sticky-side { position: sticky; top: 80px; } }
.mobile-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); }
.mobile-contact .price { font-weight: 700; color: var(--primary-700); }
.mobile-contact .btn { flex: 1; }
@media (min-width: 980px) { .mobile-contact { display: none; } }
body.has-mobile-contact { padding-bottom: 80px; }
body.has-mobile-contact .wa-float { display: none; }
@media (min-width: 980px) { body.has-mobile-contact { padding-bottom: 0; } }
details.report summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* ---------- Estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.b-ok { background: var(--ok-50); color: var(--ok); }
.b-warn { background: var(--warn-50); color: var(--warn); }
.b-bad { background: var(--danger-50); color: var(--danger); }
.b-info { background: var(--info-50); color: var(--info); }
.b-muted { background: #EEF1F0; color: var(--muted); }
.b-gold { background: #FFF1BF; color: #6b4d00; }

/* ---------- Panel ---------- */
.panel-layout { display: grid; gap: 18px; padding: 20px 0 40px; }
@media (min-width: 980px) { .panel-layout { grid-template-columns: 240px 1fr; align-items: start; } }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 980px) { .side-nav { flex-direction: column; position: sticky; top: 80px; } }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.side-nav a:hover { background: var(--bg); }
.side-nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); }
.side-nav .count { margin-left: auto; background: var(--accent); color: #1d1206; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); display: block; }
a.stat:hover { border-color: var(--primary); }
.stat b { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--ok); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box + .box { margin-top: 16px; }
.box h2 { font-size: 1.08rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #FAFBFA; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; background: #eee; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions form { margin: 0; }
.list-items { display: grid; gap: 10px; }
.list-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.list-item img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; background: #eee; }
.list-item h3 { margin: 0 0 4px; font-size: .98rem; }
.list-item .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 640px) {
  .list-item { grid-template-columns: 96px 1fr auto; align-items: center; }
  .list-item img { width: 96px; height: 72px; }
  .list-item .actions { grid-column: auto; justify-content: flex-end; }
}
.note { background: var(--info-50); border-left: 4px solid var(--info); padding: 8px 12px; border-radius: 6px; font-size: .88rem; margin-top: 6px; }
.note.bad { background: var(--danger-50); border-left-color: var(--danger); }
.notif { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.notif:last-child { border-bottom: 0; }
.notif.unread { font-weight: 600; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.bar { height: 8px; background: var(--primary-50); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 160px; }

/* ---------- Páginas de texto ---------- */
.prose { max-width: 780px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 40px; }
@media (min-width: 640px) { .prose { padding: 34px 40px; } }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.draft-note { background: var(--warn-50); border: 1px solid #f3d9a6; color: #6f4100; padding: 10px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 18px; }

/* ---------- Pie ---------- */
.footer { background: var(--primary-900); color: #cfe0dc; margin-top: 20px; font-size: .92rem; }
.footer .wrap { padding-top: 36px; padding-bottom: 24px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer a { color: #cfe0dc; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .brand { color: #fff; }
.footer .brand small { color: #9fc2ba; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: rgba(255, 255, 255, .16); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 26px; padding-top: 16px; font-size: .78rem; color: #9fc2ba; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 35; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(20, 126, 59, .4); text-decoration: none; }
.wa-float:hover { background: var(--wa-700); color: #fff; }
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- Admin ---------- */
.admin-top { background: var(--ink); color: #fff; }
.admin-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.admin-top a { color: #fff; text-decoration: none; }
.admin-top .btn-light, .admin-top a.btn-light { color: var(--ink); }
.admin-top .brand b { color: #fff; }
.admin-top .brand small { color: #9fb3ad; }
.admin-top .spacer { flex: 1; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 519px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }
.actions-grid { display: grid; gap: 10px; }
.actions-grid form { margin: 0; }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-admin figure { margin: 0; position: relative; }
.photo-admin img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-admin form { position: absolute; top: 4px; right: 4px; }

@media print {
  .header, .footer, .wa-float, .mobile-contact, .topbar { display: none !important; }
}


/* ==========================================================
   v2 · Diseño premium, menos texto
   ========================================================== */
.header { background: rgba(255, 255, 255, .92); }
.header .wrap { min-height: 68px; }
.btn { font-weight: 700; letter-spacing: -.005em; }
.btn-accent { box-shadow: 0 6px 16px rgba(255, 122, 26, .28); }
.btn-accent:hover { background: #FF8C3A; }
.btn-primary { box-shadow: 0 6px 16px rgba(11, 93, 82, .22); }

/* Hero */
.hero { min-height: 470px; display: flex; align-items: flex-end; }
.hero::after { background: linear-gradient(180deg, rgba(6, 30, 27, .35) 0%, rgba(6, 36, 32, .55) 40%, rgba(6, 30, 27, .92) 100%); }
.hero .hero-inner { padding-top: 64px; padding-bottom: 56px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); margin-bottom: 16px; }
.hero-kicker .ico { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; font-weight: 800; }
.hero h1 em { color: #FFB27A; }
.hero p.lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: rgba(255, 255, 255, .86); margin-bottom: 26px; }
.search-pill { display: grid; gap: 8px; background: #fff; border-radius: 22px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); max-width: 760px; }
.sp-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: #F4F5F2; color: var(--muted); margin: 0; font-weight: 400; }
.sp-field input, .sp-field select { border: 0 !important; box-shadow: none !important; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 0; min-height: 52px; width: 100%; min-width: 0; border-radius: 0; }
.sp-field:focus-within { box-shadow: 0 0 0 2px var(--primary); background: #fff; }
.search-pill .btn { min-height: 52px; border-radius: 14px; font-size: 1rem; }
@media (min-width: 760px) {
  .hero { min-height: 600px; }
  .search-pill { grid-template-columns: 1.6fr 1fr auto; border-radius: 999px; padding: 8px; }
  .sp-field { background: transparent; border-radius: 999px; }
  .sp-q { border-right: 1px solid var(--line); border-radius: 999px 0 0 999px; }
  .search-pill .btn { border-radius: 999px; padding: 0 28px; }
  .hero .hero-inner { padding-bottom: 96px; }
}

/* Categorías como chips */
.cats-wrap { position: relative; z-index: 2; margin-top: -34px; }
.cat-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip { scroll-snap-align: start; flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-chip .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.cat-chip .ci .ico { width: 24px; height: 24px; }
.cat-chip .cn { font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.2; }
@media (min-width: 980px) {
  .cat-row { display: grid; grid-template-columns: repeat(10, 1fr); overflow: visible; }
  .cat-chip { width: auto; }
}

/* Encabezados de sección */
.section { padding: 32px 0; }
.section-head { align-items: center; margin-bottom: 14px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
.section-head h2 .ico { width: 22px; height: 22px; color: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--primary); }
.link-more .ico { width: 18px; height: 18px; }

/* Carril de destacados */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 270px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 980px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* Tarjetas v2 */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.card { border: 0; box-shadow: var(--ring), 0 2px 8px rgba(15, 27, 34, .05); border-radius: 18px; }
.card:hover { box-shadow: var(--ring), var(--shadow-lg); transform: translateY(-3px); }
.card.featured { border: 0; background: #fff; box-shadow: 0 0 0 2px #F5C542, 0 8px 24px rgba(201, 138, 0, .15); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 12px 14px 14px; gap: 4px; }
.card-price { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.card-price.none { font-size: .95rem; font-weight: 700; color: var(--muted); }
.card-title { font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.card-title a { color: var(--ink-2); }
.card-model { margin: 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-loc .ico { width: 14px; height: 14px; flex: none; }
.wa-mini { position: relative; z-index: 2; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(29, 168, 81, .35); transition: transform .15s, background .15s; }
.wa-mini:hover { background: var(--wa-700); color: #fff; transform: scale(1.06); }
.wa-mini .ico { width: 22px; height: 22px; }
.tag { padding: 5px 9px; font-size: .7rem; backdrop-filter: blur(4px); }
@media (max-width: 519px) {
  .card-body { padding: 10px 10px 12px; }
  .card-price { font-size: 1.05rem; }
  .card-title { font-size: .85rem; }
  .wa-mini { width: 36px; height: 36px; }
}

/* Negocios */
.biz-card { border: 0; box-shadow: var(--ring), var(--shadow); }

/* Promo */
.promo { display: grid; overflow: hidden; border-radius: 26px; background: linear-gradient(135deg, var(--primary-900), var(--primary)); color: #fff; }
.promo-media { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px; min-height: 220px; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.promo-media img:first-child { grid-row: span 2; }
.promo-text { padding: 26px 24px 30px; }
.promo-text h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 6px; }
.promo-text p { color: rgba(255, 255, 255, .8); margin-bottom: 20px; }
@media (min-width: 860px) {
  .promo { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .promo-media { min-height: 320px; }
  .promo-text { padding: 40px 48px; }
}

/* Pie compacto */
.footer { margin-top: 32px; }
.footer .wrap { padding-top: 32px; padding-bottom: 22px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-top .socials { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-weight: 600; font-size: .9rem; }
.footer-bottom { margin-top: 20px; }

/* Formularios simples */
.auth { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 32px 16px 48px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; box-shadow: var(--ring), var(--shadow-lg); padding: 28px 22px; }
@media (min-width: 520px) { .auth-card { padding: 36px 34px; } }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-alt { text-align: center; margin: 20px 0 0; font-size: .92rem; color: var(--muted); }
.auth-alt a { font-weight: 700; }
.fine { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle[aria-pressed="true"] { color: var(--primary); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea { border: 1.5px solid #D7DDD9; background: #FBFCFB; min-height: 50px; border-radius: 14px; }
input:focus, select:focus, textarea:focus { background: #fff; }
.prefix span { border-color: #D7DDD9; border-radius: 14px 0 0 14px; }
.prefix input { border-radius: 0 14px 14px 0; }
label, .label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.narrow-page { max-width: 640px; padding-top: 24px; padding-bottom: 48px; }
.page-title { margin-bottom: 16px; }
.page-title h1 { margin-bottom: 2px; }
.page-title .muted { margin: 0; }
.sheet { background: #fff; border-radius: 24px; box-shadow: var(--ring), var(--shadow); padding: 18px; }
@media (min-width: 640px) { .sheet { padding: 28px; } }
.sheet .photo-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border-radius: 18px; margin-bottom: 4px; }
.pd-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.pd-icon .ico { width: 28px; height: 28px; margin: 0; }
.photo-drop .hint { margin: 0; }
.sheet .previews { margin: 10px 0 16px; }
.sheet .previews:empty { display: none; }
.previews.current { margin: 0 0 12px; }
details.more { margin-bottom: 14px; }
details.more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--primary); font-size: .92rem; padding: 6px 0; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ico { width: 18px; height: 18px; }
details.more textarea { margin-top: 8px; min-height: 110px; }
.help-check { margin: 4px 0 18px; color: var(--ink-2); font-weight: 500; }

/* Detalle más limpio */
.detail-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.detail-box { border: 0; box-shadow: var(--ring), var(--shadow); border-radius: 20px; }
.gallery-main { border-radius: 20px; }
.safety { font-size: .8rem; color: var(--muted); margin: 12px 2px 0; display: flex; gap: 6px; align-items: flex-start; }
.safety .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.filters, .form-card, .box, .stat, .list-item, .empty, .prose { border: 0; box-shadow: var(--ring), var(--shadow); }

.search-pill .sp-field input, .search-pill .sp-field select, .header-search form input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.hero-credit { bottom: auto; top: 8px; }

/* ---------- Planes y pago ---------- */
.plans { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.plans legend { font-weight: 700; font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.plans .field-error { grid-column: 1 / -1; }
.plan { margin: 0; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 2px solid #D7DDD9; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.plan-box b { font-size: .95rem; }
.plan-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.plan input:checked + .plan-box { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(11, 93, 82, .12); }
.plan input:focus-visible + .plan-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.promo-free { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF4E6, #FFE7CF); border: 1px solid #FFD2A8; margin-bottom: 18px; color: #5A2E00; }
.promo-free .ico { width: 26px; height: 26px; color: var(--accent); flex: none; }
.promo-free strong { display: block; }
.promo-free span { font-size: .85rem; }
.pay-amount { text-align: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--primary-900), var(--primary)); color: #fff; margin-bottom: 20px; }
.pay-amount span { font-size: .85rem; opacity: .85; }
.pay-amount strong { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pay-amount small { opacity: .85; }
.pay-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.pay-steps li { display: flex; gap: 12px; align-items: flex-start; }
.pay-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #742284; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.pay-steps li > div { flex: 1; min-width: 0; }
.yape-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; padding: 14px; border-radius: 16px; background: #F7F0FA; border: 1px solid #E6D3EE; }
.yape-box img { width: 150px; height: 150px; object-fit: contain; border-radius: 12px; background: #fff; }
.yape-box > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.yape-num { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; color: #742284; }
.pay .photo-drop { margin-bottom: 4px; }
.proof { max-width: 280px; width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; }

/* ---------- Paquetes ---------- */
.packages { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.packages legend { font-weight: 800; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; padding: 0; }
.packages .promo-free { margin: 0 0 4px; padding: 10px 14px; }
@media (min-width: 620px) { .packages { grid-template-columns: 1fr 1fr; } .packages legend, .packages .promo-free, .packages .field-error { grid-column: 1 / -1; } }
.pkg { position: relative; margin: 0; cursor: pointer; display: block; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-box { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 16px 14px; border-radius: 18px; border: 2px solid #DDE3DF; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pkg:hover .pkg-box { transform: translateY(-2px); box-shadow: var(--shadow); }
.pkg input:checked + .pkg-box { border-color: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 18%, transparent), var(--shadow); background: color-mix(in srgb, var(--pc) 6%, #fff); }
.pkg input:focus-visible + .pkg-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.pkg-head { display: flex; align-items: center; gap: 8px; }
.pkg-head b { font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; }
.pkg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc, var(--primary)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, var(--primary)) 20%, transparent); flex: none; }
.pkg-price { margin-left: auto; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.pkg-price s { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.pkg-tag { font-weight: 700; color: var(--pc); font-size: .95rem; }
.pkg-feat { font-size: .84rem; color: var(--ink-2); }
.pkg-badge { position: absolute; top: -11px; right: 14px; background: var(--pc); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px color-mix(in srgb, var(--pc) 35%, transparent); }
.pkg.is-reco .pkg-box { border-color: color-mix(in srgb, var(--pc) 55%, #DDE3DF); }
.pkg-admin { border-top: 5px solid var(--pc); }

/* ---------- Vendido ---------- */
.b-sold { background: var(--danger); color: #fff; letter-spacing: .04em; }
.btn-sold { background: #fff; color: var(--danger); border-color: #f1b8b1; }
.btn-sold:hover { background: var(--danger-50); }
.stat.sold b { color: var(--danger); }
.stats.s5 .stat:last-child { grid-column: span 2; }
@media (min-width: 760px) { .stats.s5 { grid-template-columns: repeat(5, 1fr); } .stats.s5 .stat:last-child { grid-column: auto; } }
.sold-stamp { position: absolute; z-index: 3; top: 16px; left: 14px; transform: rotate(-6deg); background: var(--danger); color: #fff; font-weight: 800; letter-spacing: .14em; font-size: clamp(1rem, 3.4vw, 1.5rem); padding: 8px 22px; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.sold-note { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--danger-50); color: #8a1b12; font-weight: 600; }
.sold-note svg { width: 18px; height: 18px; flex: none; }

/* ---------- Así es Huánuco ---------- */
.discover-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.discover-rail::-webkit-scrollbar { display: none; }
.discover-rail figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; scroll-snap-align: start; box-shadow: 0 8px 22px rgba(11, 40, 36, .14); }
.discover-rail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.discover-rail figure:hover img { transform: scale(1.05); }
.discover-rail figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-weight: 800; font-size: 1.05rem; background: linear-gradient(180deg, transparent, rgba(6, 30, 27, .82)); }
@media (min-width: 620px) { .discover-rail { grid-auto-columns: 34%; } }
@media (min-width: 980px) { .discover-rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

.promo-media.v1 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.55fr 1fr; }
.promo-media.v1 img:first-child { grid-row: auto; grid-column: span 2; object-position: center 85%; }
.promo-media.v2 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.promo-media.v2 img:first-child { grid-row: auto; object-position: center 85%; }
.promo-media.v2 img + img { display: none; }
@media (min-width: 760px) { .promo-media.v1, .promo-media.v2 { min-height: 380px; } }

/* ---------- Portada: fotos que cambian solas ---------- */
.hero-bg.slide { opacity: 0; animation: heroFade 45s linear infinite; animation-delay: var(--d, 0s); will-change: opacity; }
@keyframes heroFade { 0% { opacity: 0; } 2.2% { opacity: 1; } 11.1% { opacity: 1; } 13.4% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-bg.slide { animation: none; } .hero-bg.slide:first-child { opacity: 1; } }

/* ---------- Fotos que cambian solas (inicio) ---------- */
@keyframes xfade { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.promo-media .xf { position: relative; overflow: hidden; border-radius: 18px; min-height: 100px; }
.promo-media .xf:first-child { grid-row: span 2; }
.promo-media .xf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.promo-media .xf img + img { opacity: 0; animation: xfade 14s ease-in-out infinite; animation-delay: var(--d, 0s); }
.discover-rail .alt { position: absolute; inset: 0; opacity: 0; animation: xfade 14s ease-in-out infinite; animation-delay: var(--d, 0s); }
.discover-rail .alt span { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-weight: 800; font-size: 1.05rem; background: linear-gradient(180deg, transparent, rgba(6, 30, 27, .82)); }
@media (prefers-reduced-motion: reduce) { .promo-media .xf img + img, .discover-rail .alt { animation: none; } }

/* ---------- Encuesta al terminar de publicar ---------- */
.survey { background: linear-gradient(135deg, #FFF8EE, #FFEFD9); border: 1px solid #FFD2A8; border-radius: 22px; padding: 20px 20px 22px; margin-bottom: 18px; box-shadow: 0 8px 22px rgba(242, 106, 0, .10); }
.survey h2 { font-size: 1.15rem; margin: 0 0 8px; }
.survey .stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 14px; }
.survey .stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey .stars label { cursor: pointer; padding: 2px; line-height: 0; }
.survey .stars svg { width: 42px; height: 42px; stroke: #D9A066; fill: #fff; transition: fill .15s, stroke .15s, transform .15s; }
.survey .stars label:hover svg, .survey .stars label:hover ~ label svg, .survey .stars input:checked ~ label svg { fill: #FFB020; stroke: #E08A00; }
.survey .stars label:active svg { transform: scale(.9); }
.survey .stars input:focus-visible + label svg { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.survey-q { display: block; margin-bottom: 8px; color: var(--ink); }
.survey-q strong { display: block; font-size: 1.05rem; }
.survey textarea { width: 100%; min-height: 96px; background: #fff; }
.survey-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rate { color: #F2A100; letter-spacing: 1px; font-size: 1rem; margin-left: 6px; white-space: nowrap; }
.rate i { color: #D9DEDC; font-style: normal; }

.survey .faces { display: flex; gap: 10px; margin-bottom: 16px; }
.survey .faces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey .faces label { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; background: #fff; border: 2px solid #F0DCC4; border-radius: 18px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: transform .15s, border-color .15s, background .15s; }
.survey .faces svg { width: 46px; height: 46px; stroke: #B9A48C; fill: #FFF6E9; }
.survey .faces .eye { fill: #B9A48C; stroke: none; }
.survey .faces label:active { transform: scale(.96); }
.survey .faces input:checked + label { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.10); }
.survey .faces input:checked + .f1 { border-color: #E5484D; background: #FFF0F0; } .survey .faces input:checked + .f1 svg { stroke: #C62A2F; fill: #FFD9DA; } .survey .faces input:checked + .f1 .eye { fill: #C62A2F; }
.survey .faces input:checked + .f3 { border-color: #F2A100; background: #FFF8E6; } .survey .faces input:checked + .f3 svg { stroke: #B77800; fill: #FFE7A8; } .survey .faces input:checked + .f3 .eye { fill: #B77800; }
.survey .faces input:checked + .f5 { border-color: #1FA855; background: #EDFAF2; } .survey .faces input:checked + .f5 svg { stroke: #137A3C; fill: #C9F2D9; } .survey .faces input:checked + .f5 .eye { fill: #137A3C; }
.survey .faces input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Menú de administración en celular ---------- */
.am-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.am-btn { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
.am-btn > svg { width: 24px; height: 24px; flex: none; color: var(--primary); }
.am-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.am-btn small { font-size: .72rem; color: var(--muted, #6b7a77); }
.am-btn b { font-size: 1rem; }
.am-btn .count { margin-left: auto; background: var(--accent); color: #1d1206; font-size: .75rem; font-weight: 700; font-style: normal; padding: 2px 8px; border-radius: 999px; }
.am-btn .am-chev { margin-left: auto; line-height: 0; transform: rotate(90deg); transition: transform .2s; }
.am-btn .count + .am-chev { margin-left: 4px; }
.am-btn .am-chev svg { width: 18px; height: 18px; }
.am-toggle:checked + .am-btn .am-chev { transform: rotate(-90deg); }
.am-toggle:focus-visible + .am-btn { outline: 2px solid var(--primary); outline-offset: 2px; }
.admin-nav { display: none; flex-direction: column; overflow: visible; margin-top: 8px; box-shadow: 0 12px 28px rgba(11, 40, 36, .12); }
.admin-nav a { padding: 12px 12px; font-size: 1rem; }
.am-toggle:checked ~ .admin-nav { display: flex; }
@media (min-width: 980px) {
  .am-btn { display: none; }
  .admin-menu { position: sticky; top: 80px; align-self: start; }
  .admin-nav { display: flex; position: static; margin-top: 0; box-shadow: none; }
  .admin-nav a { padding: 10px 12px; font-size: .92rem; }
}

/* ---------- Avisos al celular (administración) ---------- */
.push-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.push-box > svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.push-box > div:first-of-type { flex: 1 1 220px; }
.push-box p { margin: 2px 0 0; }
.push-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.push-box [hidden] { display: none; }

/* ---------- Tipografía de títulos: Bebas Neue (estilo cartel) ---------- */
h1, h2, h3, .brand b, .btn, .hero-kicker, .am-btn b { font-family: "Bebas Neue", var(--font); font-weight: 400; letter-spacing: .035em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.05; }
h3 { font-size: 1.4rem; line-height: 1.1; }
.hero h1 { font-size: clamp(3.1rem, 11vw, 5.6rem); line-height: .98; letter-spacing: .03em; font-weight: 400; max-width: 12ch; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); }
.promo-text h2 { font-size: clamp(2rem, 5vw, 3rem); }
.brand b { font-size: 1.4rem; line-height: 1; letter-spacing: .04em; }
.btn { font-size: 1.2rem; font-weight: 400; letter-spacing: .05em; }
.btn-sm { font-size: 1.05rem; }
.btn-lg { font-size: 1.4rem; }
.hero-kicker { font-size: 1rem; letter-spacing: .08em; }
.am-btn b { font-size: 1.3rem; }
.survey h2 { font-size: 1.5rem; }
.hero h1 { max-width: none; }
.hero h1 em { display: block; }
.header .brand b { font-size: 1.3rem; white-space: nowrap; max-width: none; }
.search-pill .btn { font-size: 1.35rem; }
@media (max-width: 560px) { .header .brand b { font-size: 1.12rem; white-space: normal; max-width: 6.2em; line-height: .95; overflow: visible; } }

/* ---------- Libro de reclamaciones ---------- */
.footer-links .book-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; font-weight: 600; }
.footer-links .book-link svg { width: 20px; height: 20px; }
.footer-links .book-link:hover { background: rgba(255,255,255,.08); }
.book-head { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.book-head svg { width: 46px; height: 46px; color: var(--primary); flex: none; }
.book-head dl { margin: 0; font-size: .9rem; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.book-head dt { color: var(--ink-2); } .book-head dd { margin: 0; font-weight: 600; }
.book-step { font-family: "Bebas Neue", var(--font); font-size: 1.35rem; letter-spacing: .04em; color: var(--primary); margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.book-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-pick input { position: absolute; opacity: 0; }
.kind-pick label { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff; }
.kind-pick label b { display: block; font-size: 1rem; } .kind-pick label span { font-size: .82rem; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 2px; }
.kind-pick input:checked + label { border-color: var(--primary); background: var(--primary-50); }
.kind-pick input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.book-ok { background: #fff; border: 2px solid var(--ok); border-radius: var(--radius); padding: 22px; }
.book-ok .code { font-family: "Bebas Neue", var(--font); font-size: 2.4rem; letter-spacing: .05em; color: var(--primary); line-height: 1; margin: 6px 0 12px; }
@media print { .header, .footer, .wa-float, .mobile-menu, .no-print { display: none !important; } }

.socials a.book-ico svg { width: 22px; height: 22px; }

/* ---------- Cómo funciona en 3 pasos (bloque del inicio) ---------- */
.promo-text .steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps3 li { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 11px 14px; }
.steps3 i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #1d1206; font-style: normal; font-family: "Bebas Neue", var(--font); font-size: 1.6rem; display: grid; place-items: center; line-height: 1; padding-top: 2px; }
.steps3 span { font-size: .9rem; line-height: 1.35; color: rgba(255,255,255,.8); }
.steps3 b { display: block; color: #fff; font-family: "Bebas Neue", var(--font); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; line-height: 1.1; }
.promo-text p { margin-bottom: 14px; }

/* ---------- Precios en el inicio ---------- */
.prices-free { display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #FFF4E6, #FFE7CF); border: 1px solid #FFD2A8; color: #5A2E00; border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; font-size: .95rem; }
.prices-free svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 860px) { .prices-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.price-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px 14px 14px; }
.price-card.rec { border-color: var(--pc); box-shadow: 0 10px 24px rgba(11, 40, 36, .10); }
.price-tag { position: absolute; top: -11px; right: 12px; background: var(--pc); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.price-name { display: flex; align-items: center; gap: 7px; font-family: "Bebas Neue", var(--font); font-weight: 400; font-size: 1.3rem; letter-spacing: .05em; }
.price-name i { width: 11px; height: 11px; border-radius: 50%; background: var(--pc); flex: none; }
.price-amt { font-size: 1.7rem; font-weight: 800; line-height: 1.1; margin: 4px 0 8px; color: var(--ink); }
.price-amt s { font-size: .95rem; font-weight: 500; color: var(--ink-2); margin-right: 4px; }
.price-card ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; color: var(--ink-2); display: grid; gap: 3px; }

.steps3 li:has(> .step-link) { padding: 0; }
.steps3 .step-link { display: flex; gap: 14px; align-items: center; width: 100%; padding: 11px 14px; color: inherit; text-decoration: none; border-radius: 16px; }
.steps3 .step-link:hover { background: rgba(255,255,255,.08); }
.steps3 .step-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Publicar por pasos ---------- */
.pub-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: st; }
.pub-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--ink-2); padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.pub-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: .8rem; flex: none; }
.pub-steps li.on { color: var(--ink); border-color: var(--accent); }
.pub-steps li.on::before { background: var(--accent); color: #1d1206; }
.pub-steps li.done { border-color: var(--primary); }
.pub-steps li.done::before { background: var(--primary); color: #fff; content: "✓"; }
form:not(.is-stepped) .pub-steps, form:not(.is-stepped) [data-go] { display: none; }
.step-title { font-size: 1.6rem; margin: 0 0 12px; }
.cat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .cat-pick { grid-template-columns: repeat(3, 1fr); } }
.cat-opt { position: relative; cursor: pointer; margin: 0; }
.cat-opt input { position: absolute; opacity: 0; }
.cat-opt span { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, transform .15s; }
.cat-opt svg { width: 30px; height: 30px; padding: 6px; box-sizing: content-box; border-radius: 12px; background: var(--primary-50); color: var(--primary); }
.cat-opt b { font-size: .95rem; line-height: 1.25; }
.cat-opt:hover span { border-color: var(--primary); transform: translateY(-1px); }
.cat-opt input:checked + span { border-color: var(--primary); background: var(--primary-50); }
.cat-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.step-back { margin-top: 14px; }
.cat-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--primary-50); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .95rem; }
.cat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; background: #FAFBF9; border: 1px dashed var(--line); border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 16px; }
.cat-fields[hidden] { display: none; }
@media (max-width: 480px) { .cat-fields { grid-template-columns: 1fr; } }
.cat-back { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.cat-back i { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #FFC21A; color: #1d1206; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(255, 170, 0, .35); }
.cat-back:hover i { transform: translateX(-2px); }
.cat-now { font-size: .85rem; color: var(--primary); text-align: right; }
.cat-chosen { padding: 10px 12px; }
.cat-back { gap: 8px; }
@media (max-width: 420px) { .cat-now { font-size: .75rem; } }
/* QR de pago: en celular debajo del número, en computadora al lado */
.yape-box img { order: 2; }
@media (max-width: 639px) { .yape-box { flex-direction: column; align-items: center; text-align: center; } .yape-box > div { align-items: center; } .yape-box img { width: 200px; height: 200px; } }

/* ---------- Paquetes (tarjetas grandes) ---------- */
.narrow-page:has(.plans) { max-width: 980px; }
.narrow-page:has(.pub-step[data-step="1"][hidden]) { max-width: 640px; }
.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 18px; } }
.plan { position: relative; display: block; margin: 0; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-box { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 18px; border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--pc) 28%, #E3E8E5); background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 5%, #fff), #fff 60%);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.plan:hover .plan-box { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--pc) 16%, transparent); }
.plan input:checked + .plan-box { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 18%, transparent); }
.plan input:focus-visible + .plan-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.plan-reco { position: absolute; top: -13px; right: 16px; display: inline-flex; align-items: center; gap: 6px; background: var(--pc); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 14px color-mix(in srgb, var(--pc) 35%, transparent); }
.plan-reco svg { width: 14px; height: 14px; color: var(--pc); }
.plan-top { display: flex; align-items: flex-start; gap: 14px; }
.plan-ico { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, #fff); }
.plan-ico svg { width: 30px; height: 30px; }
.plan-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.plan-name b { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); line-height: 1.15; }
.plan-name em { font-style: normal; font-weight: 700; font-size: .88rem; color: var(--pc); line-height: 1.3; }
.plan-price { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.plan-price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; white-space: nowrap; }
.plan-price strong i { font-style: normal; font-size: .95rem; font-weight: 700; color: var(--pc); }
.plan-price small { font-size: .74rem; color: var(--ink-2); white-space: nowrap; }
.plan-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--pc) 14%, #E8ECEA); }
.plan-feats > span { display: flex; align-items: center; gap: 8px; font-size: .78rem; line-height: 1.25; color: var(--ink-2); }
.plan-feats svg { flex: none; width: 22px; height: 22px; color: var(--pc); }
.plan-feats svg.wa { color: #1DA851; }
.plan-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-extras.one { grid-template-columns: 1fr; }
.plan-extras > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 9%, #fff); font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.plan-extras > span > svg { flex: none; width: 24px; height: 24px; color: var(--pc); }
.plan-extras b { color: var(--pc); font-weight: 800; }
.plan-extras small { display: block; font-size: .74rem; color: var(--ink-2); }
.plan-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 12px; background: var(--pc); color: #fff;
  font-weight: 800; font-size: 1rem; box-shadow: 0 6px 14px color-mix(in srgb, var(--pc) 28%, transparent); }
.plan-btn svg { width: 20px; height: 20px; }
@media (max-width: 420px) {
  .plan-box { padding: 16px 14px; }
  .plan-ico { width: 48px; height: 48px; border-radius: 14px; }
  .plan-ico svg { width: 26px; height: 26px; }
  .plan-price strong { font-size: 1.35rem; }
  .plan-feats { gap: 6px; }
  .plan-feats > span { flex-direction: column; text-align: center; gap: 4px; font-size: .72rem; }
  .plan-extras > span { padding: 9px 10px; font-size: .76rem; }
}
.cat-opt.is-off { opacity: .35; pointer-events: none; }
.packages .plans { grid-column: 1 / -1; }
.plans { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan, .plan-box, .plan-feats > span, .plan-extras > span { min-width: 0; }
.plan-price s { font-size: .95rem; font-weight: 700; color: #8A9490; }
.plan-price .plan-count { font-size: .8rem; font-weight: 800; color: var(--pc); white-space: nowrap; margin-top: 2px; }
.pay-pack { display: block; margin-top: 8px; font-style: normal; font-size: .82rem; font-weight: 700; background: rgba(255,255,255,.14); border-radius: 10px; padding: 6px 10px; }
.plan-many { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 9%, #fff); font-size: .84rem; color: var(--ink-2); line-height: 1.3; }
.plan-many > svg { flex: none; width: 24px; height: 24px; color: var(--pc); }
.plan-many > span { flex: 1; min-width: 0; }
.plan-many strong { color: var(--pc); font-weight: 800; }
.plan-many em { flex: none; font-style: normal; font-size: .74rem; font-weight: 700; color: var(--pc); background: #fff; border-radius: 999px; padding: 3px 9px; }

/* ---------- Instalar app ---------- */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(6, 36, 32, .22), var(--ring); animation: ib-in .35s ease-out; }
.install-bar[hidden] { display: none; }
.install-bar > img { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ib-text b { font-size: .92rem; color: var(--ink); }
.ib-text span { font-size: .78rem; color: var(--ink-2); }
.ib-close { position: absolute; top: -10px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; color: var(--ink-2);
  font-size: 1.1rem; line-height: 1; box-shadow: 0 4px 10px rgba(0,0,0,.15); cursor: pointer; }
.ib-ios { flex-basis: 100%; font-size: .82rem; color: var(--ink-2); background: var(--primary-50); border-radius: 10px; padding: 8px 10px; }
.ib-ios svg { vertical-align: -3px; color: var(--primary); }
body.has-install .wa-float { bottom: 104px; }
@keyframes ib-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Aviso emergente (suave) ---------- */
.toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 90; width: min(380px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #E3E8E5; box-shadow: 0 10px 28px rgba(6, 36, 32, .14); animation: toast-in .3s ease-out; }
.toast.out { opacity: 0; transform: translate(-50%, -10px); transition: .35s; }
.toast-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.toast b { display: block; font-size: .9rem; color: var(--ink); }
.toast p { margin: 1px 0 0; font-size: .8rem; color: var(--ink-2); line-height: 1.3; }
.toast button { flex: none; margin-left: auto; border: 0; background: none; font-size: 1.15rem; line-height: 1; color: #9AA5A1; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.form-hint-soft { margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--primary); text-align: center; }

/* ---------- Anuncios sin pagar (panel del usuario) ---------- */
.unpaid-box { margin: 0 0 16px; padding: 16px; border-radius: 18px; background: #FFF6EE; border: 1.5px solid #FFD2AE; display: flex; flex-direction: column; gap: 10px; }
.ub-head { display: flex; gap: 12px; align-items: flex-start; }
.ub-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #FF7A1A; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.15rem; }
.ub-head b { display: block; font-size: 1rem; color: #7A3B06; }
.ub-head p { margin: 2px 0 0; font-size: .88rem; color: #5B4636; line-height: 1.4; }
.ub-item { display: flex; flex-direction: column; gap: 8px; }
.ub-item + .ub-item { padding-top: 10px; border-top: 1px dashed #FFD2AE; }
.ub-title { font-size: .84rem; font-weight: 700; color: #5B4636; }
.ub-item form { margin: 0; }
.ub-note { margin: 4px 0 0; color: #B4530A; font-weight: 700; }
