/* =====================================================================
   Portal de Alquileres — Hoja de estilos de la MAQUETA
   Archivo : alquileres/maqueta/assets/maqueta.css
   Fecha   : 2026-10-19
   Propósito: sistema visual de la marca nueva (nombre de trabajo "Umbral").
              Es deliberadamente DISTINTO al de Yulia (crema + dorado +
              Cormorant): verde pino + arena + terracota, Fraunces + Manrope.
              Ver docs/DECISIONES.md D-001.
   Uso     : la incluyen todas las páginas de maqueta/. Cuando se construya
             el sitio real, este archivo es la base de app/assets/css/base.css.

   Índice
     1. Tokens (colores, tipografía, radios, sombras)
     2. Base y utilidades
     3. Botones, chips y badges
     4. Encabezado y pie
     5. Home: hero, buscador, ciudades, pasos, FAQ
     6. Tarjeta de anuncio (listados)
     7. Página de ciudad: filtros + mapa
     8. Ficha del anuncio: galería, contacto, características
     9. Asistente de publicación
    10. Panel del anunciante
    11. Gestión interna (moderación)
    12. Responsive
    13. Ajustes tras la revisión visual
    14. Ubicación, flujo de pago y bloques SEO
    15. Cuenta con Google
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca. Para cambiar la paleta, tocar solo este bloque. */
  --brand-pine:   #1f3d35;   /* principal: encabezados, fondos oscuros */
  --brand-pine-2: #2f5a4d;   /* hover / variante */
  --brand-clay:   #b85f3c;   /* acento: CTA principal, precio */
  --brand-clay-2: #d4876a;
  --brand-sand:   #f6f2ea;   /* fondo general */
  --brand-sand-2: #ece5d8;   /* fondos de sección alternos */

  --ink:   #18221f;          /* texto principal */
  --ink-2: #3c4743;          /* texto secundario */
  --muted: #6e7873;          /* texto terciario, etiquetas */
  --line:  #e0d8c9;          /* bordes */
  --white: #ffffff;

  --ok:    #2f7d57;  --ok-bg:   #e3f1e8;
  --warn:  #a8701a;  --warn-bg: #fbf0d9;
  --bad:   #b23b3b;  --bad-bg:  #f8e1df;
  --wa:    #1fa855;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(24,34,31,.06), 0 4px 14px rgba(24,34,31,.06);
  --shadow-2: 0 10px 40px rgba(24,34,31,.14);
  --wrap: 1200px;
}

/* ---------- 2. Base y utilidades ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--brand-sand); color: var(--ink);
  font-family: var(--ff-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--brand-sand-2); }
.eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-clay); font-weight: 700; margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Banda que identifica la maqueta (se elimina en producción) */
.mock-flag {
  background: var(--ink); color: #f1e9da; font-size: .78rem; text-align: center;
  padding: 6px 12px; letter-spacing: .02em;
}
.mock-flag a { color: var(--brand-clay-2); margin: 0 6px; }

/* ---------- 3. Botones, chips y badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .95rem var(--ff-body); border-radius: 999px; padding: 12px 22px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--clay { background: var(--brand-clay); color: #fff; }
.btn--clay:hover { background: #a3502f; }
.btn--pine { background: var(--brand-pine); color: #fff; }
.btn--pine:hover { background: var(--brand-pine-2); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.chip.is-on { background: var(--brand-pine); color: #fff; border-color: var(--brand-pine); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.badge svg { width: 13px; height: 13px; }
.badge--star  { background: var(--brand-clay); color: #fff; }
.badge--owner { background: rgba(255,255,255,.94); color: var(--brand-pine); }
.badge--agency{ background: rgba(255,255,255,.94); color: #5b4a8a; }
.badge--ver   { background: var(--ok-bg); color: var(--ok); }
.badge--ok    { background: var(--ok-bg); color: var(--ok); }
.badge--warn  { background: var(--warn-bg); color: var(--warn); }
.badge--bad   { background: var(--bad-bg); color: var(--bad); }
.badge--mute  { background: #ecebe7; color: var(--muted); }

/* ---------- 4. Encabezado y pie ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(246,242,234,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-pine); }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--ff-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.site-nav a:hover, .site-nav a.is-active { color: var(--brand-clay); }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; margin-left: auto; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

.site-footer { background: var(--brand-pine); color: #d9e2dd; padding: 56px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font: 700 .8rem var(--ff-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #d9e2dd; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo svg rect { fill: var(--brand-pine-2); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #a9bab2; }

/* ---------- 5. Home ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,24,.15) 0%, rgba(15,28,24,.35) 45%, rgba(15,28,24,.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: #e9efe9; }

.search {
  margin-top: 28px; background: var(--white); color: var(--ink); border-radius: var(--r-lg);
  padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px; box-shadow: var(--shadow-2);
  max-width: 980px;
}
.search label { display: block; padding: 8px 16px; border-radius: var(--r); }
.search label:hover { background: var(--brand-sand); }
.search label + label { border-left: 1px solid var(--line); }
.search small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search select { width: 100%; border: 0; background: transparent; font: 600 1rem var(--ff-body); color: var(--ink); padding: 2px 0; appearance: none; cursor: pointer; }
.search .btn { border-radius: var(--r); padding: 0 26px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -1px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--brand-sand-2); display: grid; place-items: center; color: var(--brand-pine); }
.trust__icon svg { width: 22px; height: 22px; }
.trust strong { display: block; font-size: 1rem; }
.trust span { color: var(--muted); font-size: .9rem; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section-head a { font-weight: 700; color: var(--brand-clay); text-decoration: none; white-space: nowrap; }

.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.city { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; display: block; }
.city img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.city:hover img { transform: scale(1.05); }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,28,24,.88)); }
.city__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.city__txt h3 { font-size: 1.6rem; margin: 0 0 4px; }
.city__txt span { font-size: .88rem; color: #e3ebe6; }

.steps { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.steps ol { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: s; }
.steps ol li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps ol li::before { content: counter(s, decimal-leading-zero); font-family: var(--ff-display); font-size: 1.6rem; color: var(--brand-clay); }
.steps ol li strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.price-card { background: var(--brand-pine); color: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-2); }
.price-card .amount { font-family: var(--ff-display); font-size: 3rem; line-height: 1; margin: 10px 0 4px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; color: #dfe8e3; font-size: .95rem; }
.price-card li svg { width: 18px; height: 18px; color: var(--brand-clay-2); flex: none; margin-top: 3px; }
.price-card .pending { display: inline-block; font-size: .72rem; background: rgba(255,255,255,.12); padding: 3px 8px; border-radius: 6px; color: #f3d9cc; }

.scam {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--brand-clay); border-radius: var(--r); padding: 22px 24px;
}
.scam svg { width: 28px; height: 28px; color: var(--brand-clay); flex: none; }
.scam p { margin: 0; color: var(--ink-2); }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-clay); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- 6. Tarjeta de anuncio ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--brand-sand-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card__count { position: absolute; bottom: 10px; right: 10px; background: rgba(15,28,24,.7); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: flex; gap: 5px; align-items: center; }
.card__count svg { width: 13px; height: 13px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__price { font-family: var(--ff-display); font-size: 1.45rem; color: var(--brand-clay); font-weight: 600; }
.card__price small { font-family: var(--ff-body); font-size: .78rem; color: var(--muted); font-weight: 600; }
.card__title { font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.card__loc { font-size: .87rem; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.card__loc svg { width: 14px; height: 14px; }
.facts { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 17px; height: 17px; color: var(--brand-pine-2); }

/* ---------- 7. Página de ciudad ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 22px 0 8px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--brand-clay); }
.data-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 22px 0; }
.data-box div { background: var(--white); padding: 16px 20px; }
.data-box strong { display: block; font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; color: var(--brand-pine); }
.data-box span { font-size: .82rem; color: var(--muted); }
.data-box--4 { grid-template-columns: repeat(4, 1fr); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; position: sticky; top: 70px; background: var(--brand-sand); z-index: 50; }
.split { display: grid; grid-template-columns: 1fr 440px; gap: 26px; align-items: start; }
.split .grid-cards { grid-template-columns: repeat(2, 1fr); }
.map-sticky { position: sticky; top: 150px; height: calc(100vh - 175px); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.map-sticky #map { height: 100%; }
.price-pin { background: var(--white); color: var(--ink); font: 800 .78rem var(--ff-body); padding: 5px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; border: 1.5px solid var(--white); }
.price-pin.is-star { background: var(--brand-clay); color: #fff; }

/* ---------- 8. Ficha del anuncio ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 8px; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery img:first-child { grid-row: span 2; }
.gallery .btn { position: absolute; right: 16px; bottom: 16px; background: var(--white); }
.listing { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-top: 32px; align-items: start; }
.listing__head .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.listing__head h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.feature svg { width: 22px; height: 22px; color: var(--brand-pine-2); margin-bottom: 8px; }
.feature strong { display: block; font-size: 1.05rem; }
.feature span { font-size: .8rem; color: var(--muted); }
.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 1.5rem; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.spec dt, .spec span:first-child { color: var(--muted); }
.spec span:last-child { font-weight: 700; text-align: right; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { display: inline-flex; gap: 7px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.amen svg { width: 16px; height: 16px; color: var(--ok); }
.map-box { height: 340px; border-radius: var(--r-lg); overflow: hidden; }
.map-note { font-size: .85rem; color: var(--muted); margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.map-note svg { width: 16px; height: 16px; }

.contact { position: sticky; top: 94px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 26px; }
.contact .price { font-family: var(--ff-display); font-size: 2.2rem; color: var(--brand-clay); font-weight: 600; line-height: 1.1; }
.contact .exp { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.contact .owner { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-pine); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.contact .owner small { display: block; color: var(--muted); font-size: .8rem; }
.contact .actions { display: grid; gap: 10px; }
.contact .meta { font-size: .8rem; color: var(--muted); margin-top: 14px; display: flex; justify-content: space-between; }
.report-link { background: none; border: 0; color: var(--muted); font: 600 .8rem var(--ff-body); text-decoration: underline; cursor: pointer; padding: 0; }

.lightbox { position: fixed; inset: 0; background: rgba(10,16,14,.94); z-index: 3000; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox .lb-count { position: absolute; bottom: 22px; color: #cfd8d3; font-size: .9rem; }

.modal { position: fixed; inset: 0; background: rgba(10,16,14,.55); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__box { background: var(--white); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 460px; box-shadow: var(--shadow-2); }
.modal__box label { display: flex; gap: 10px; padding: 9px 0; font-weight: 600; font-size: .95rem; cursor: pointer; }

/* ---------- 9. Asistente de publicación ---------- */
.wizard { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 0 30px; list-style: none; padding: 0; }
.stepper li { font-size: .82rem; font-weight: 700; color: var(--muted); padding-top: 12px; border-top: 4px solid var(--line); }
.stepper li.is-done { color: var(--brand-pine); border-color: var(--brand-pine); }
.stepper li.is-current { color: var(--brand-clay); border-color: var(--brand-clay); }
.panel { background: var(--white); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 18px; }
.step { display: none; } .step.is-active { display: block; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.fields--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .85rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .78rem; }
.field input, .field select, .field textarea {
  font: 500 .98rem var(--ff-body); color: var(--ink); background: var(--brand-sand);
  border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-pine-2); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice label { border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; cursor: pointer; text-align: center; font-weight: 700; transition: border-color .2s, background .2s; }
.choice label svg { width: 30px; height: 30px; display: block; margin: 0 auto 8px; color: var(--brand-pine-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--brand-clay); background: #fbf2ed; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggles label { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.toggles input { position: absolute; opacity: 0; pointer-events: none; }
.toggles label:has(input:checked) { background: var(--brand-pine); color: #fff; border-color: var(--brand-pine); }
.pick-map { height: 300px; border-radius: var(--r); overflow: hidden; margin-top: 6px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.drop { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 34px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-over { border-color: var(--brand-clay); background: #fbf2ed; }
.drop svg { width: 40px; height: 40px; color: var(--brand-clay); margin: 0 auto 10px; }
.drop strong { display: block; font-size: 1.05rem; }
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.ph { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--brand-sand-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .ph-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,28,24,.75); color: #fff; cursor: pointer; font-size: .9rem; }
.ph .ph-cover { position: absolute; left: 6px; top: 6px; }
.ph .ph-size { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(15,28,24,.85)); color: #fff; font-size: .68rem; font-weight: 700; padding: 14px 6px 5px; }
.ph.is-loading::after { content: "Optimizando…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(246,242,234,.85); font-size: .75rem; font-weight: 700; }
.saving { margin-top: 14px; padding: 12px 16px; background: var(--ok-bg); color: var(--ok); border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; display: none; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: .92rem; }
.bank { background: var(--brand-sand); border-radius: var(--r); padding: 18px 20px; font-size: .92rem; }
.bank code { font-size: 1.05rem; font-weight: 800; color: var(--brand-clay); background: var(--white); padding: 2px 8px; border-radius: 6px; }
.done-box { text-align: center; padding: 40px 20px; }
.done-box .ring { width: 80px; height: 80px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.done-box .ring svg { width: 40px; height: 40px; }

/* ---------- 10. Panel del anunciante ---------- */
.dash { padding: 36px 0 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--white); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-1); }
.kpi span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font-family: var(--ff-display); font-size: 2rem; font-weight: 600; color: var(--brand-pine); margin-top: 4px; }
.kpi em { font-style: normal; font-size: .8rem; color: var(--ok); font-weight: 700; }
.alert { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; }
.alert--warn { background: var(--warn-bg); color: #6e4a0f; }
.alert svg { width: 22px; height: 22px; flex: none; }
.alert .btn { margin-left: auto; }
.my-list { display: grid; gap: 14px; }
.my-item { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-1); display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; padding: 14px; align-items: center; }
.my-item img { width: 170px; height: 120px; object-fit: cover; border-radius: var(--r-sm); }
.my-item h3 { font-family: var(--ff-body); font-size: 1rem; font-weight: 800; margin: 6px 0 4px; }
.my-item .stats { display: flex; gap: 16px; font-size: .84rem; color: var(--muted); margin-top: 8px; }
.my-item .stats b { color: var(--ink); }
.my-item .acts { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--brand-pine-2); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; }
.bars div.wa { background: var(--wa); }
.bars-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 22px; }

/* ---------- 11. Gestión interna ---------- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #c9d3ce; padding: 22px 16px; }
.admin-side .logo { color: #fff; margin-bottom: 26px; }
.admin-side .logo small { font-family: var(--ff-body); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-clay-2); display: block; }
.admin-side a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: #c9d3ce; font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.admin-side a.is-active, .admin-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side a b { background: var(--brand-clay); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
.admin-side .health { margin-top: 26px; font-size: .78rem; background: rgba(47,125,87,.18); color: #9fd8b8; padding: 12px; border-radius: var(--r-sm); }
.admin-main { padding: 28px 34px 60px; background: #f3f1ec; }
.q-item { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 20px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.q-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.risk { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; flex: none; }
.risk--g { background: var(--ok-bg); color: var(--ok); }
.risk--y { background: var(--warn-bg); color: var(--warn); }
.risk--r { background: var(--bad-bg); color: var(--bad); }
.q-strip { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; }
.q-strip img { width: 96px; height: 70px; object-fit: cover; border-radius: 6px; flex: none; }
.q-alerts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.q-alerts li { display: flex; gap: 10px; align-items: center; font-size: .88rem; background: #faf8f4; padding: 8px 12px; border-radius: 8px; }
.q-alerts li b { font-family: ui-monospace, monospace; font-size: .74rem; }
.q-side { border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.q-side .check label { display: flex; gap: 8px; font-size: .85rem; padding: 4px 0; }
.q-side select { font: 500 .9rem var(--ff-body); padding: 9px; border-radius: 8px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: #faf8f4; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: transform .3s; z-index: 4000; }
.toast.is-on { transform: translateX(-50%) translateY(0); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .map-sticky { position: relative; top: 0; height: 360px; order: -1; }
  .listing { grid-template-columns: 1fr; }
  .contact { position: static; }
  .q-item { grid-template-columns: 1fr; }
  .q-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .search { grid-template-columns: 1fr 1fr; }
  .search label + label { border-left: 0; }
  .search .btn { grid-column: 1 / -1; padding: 14px; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .grid-cards, .split .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .two-col { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .data-box--4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-main { padding: 20px 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { min-height: 560px; }
  .grid-cards, .split .grid-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .gallery img:nth-child(n+4) { display: none; }
  .fields, .fields--3, .spec, .summary { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 22px 18px; }
  .data-box { grid-template-columns: 1fr; }
  .my-item { grid-template-columns: 1fr; }
  .my-item img { width: 100%; height: 180px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .header-cta .btn { padding: 9px 14px; font-size: .82rem; }
}

/* ---------- 13. Ajustes tras la revisión visual (2026-10-19) ---------- */
a.chip { text-decoration: none; }
.two-col .panel + .panel { margin-top: 0; }
.admin-side a.logo { justify-content: flex-start; padding: 0; }
.admin-side a.logo:hover { background: none; }
.admin-main, .split > *, .listing > * { min-width: 0; }   /* evita que tablas y grillas ensanchen la página en móvil */

/* ---------- 14. Ubicación, flujo de pago y bloques SEO (2026-10-23) ---------- */
/* Asistente: 3 formas de cargar la ubicación (D-014) */
.ubi-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.ubi-panel small { display: block; margin-bottom: 8px; }
.ubi-input { display: flex; gap: 8px; margin-bottom: 6px; }
.ubi-input input { flex: 1; min-width: 0; }
.ubi-estado { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); font-size: .86rem; background: var(--brand-sand); color: var(--muted); }
.ubi-estado--ok { background: var(--ok-bg); color: var(--ok); }
.ubi-estado--warn { background: var(--warn-bg); color: #6e4a0f; }
.ubi-estado--bad { background: var(--bad-bg); color: var(--bad); }
.ubi-estado code { font-size: .8rem; }
.ubi-exacta { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .92rem; cursor: pointer; }
.field .ubi-exacta input { margin-top: 4px; width: auto; flex: none; padding: 0; }
.ubi-exacta small { display: block; color: var(--muted); font-size: .8rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-clay); font-family: var(--ff-body); font-size: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Paso 4: cómo sigue (revisión → link de pago → publicación) */
.flow { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }

/* Ficha: precio vs. zona y línea de revisión (E-E-A-T) */
.zona-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.zona-bar > div { background: var(--white); padding: 16px 18px; }
.zona-bar strong { display: block; font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600; color: var(--brand-pine); }
.zona-bar span { font-size: .84rem; color: var(--muted); }
.revisado { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.revisado svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.revisado a { color: var(--brand-clay); }
.map-note .btn { flex: none; }

/* Email del link de pago y página /pagar/<token> */
.mail-wrap { max-width: 640px; margin: 36px auto 60px; padding: 0 16px; }
.mail-meta { background: var(--white); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; padding: 14px 20px; font-size: .85rem; color: var(--muted); }
.mail-meta b { color: var(--ink); }
.mail { background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.mail-head { background: var(--brand-pine); color: #fff; padding: 22px 28px; }
.mail-head .logo { color: #fff; }
.mail-head .logo svg rect { fill: var(--brand-pine-2); }
.mail-body { padding: 28px; }
.mail-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: var(--brand-sand); border-radius: var(--r); padding: 12px; margin: 18px 0; align-items: center; }
.mail-card img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-sm); }
.mail-foot { padding: 18px 28px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .zona-bar { grid-template-columns: 1fr; }
  .ubi-input { flex-direction: column; }
  .mail-card { grid-template-columns: 1fr; }
  .mail-card img { width: 100%; height: 160px; }
}
/* Moderación: el bloque de texto junto al score ocupa el resto y se ajusta (no salta abajo ni desborda en móvil) */
.q-head { flex-wrap: nowrap; align-items: flex-start; }
.q-head > div:last-child, .q-item > div { flex: 1; min-width: 0; }

/* ---------- 15. Cuenta con Google (D-015) ---------- */
/* Botón con los colores y el logo oficiales de "Sign in with Google" (pautas de marca de Google) */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 260px; padding: 12px 22px;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 999px; font: 600 .98rem 'Manrope', system-ui, sans-serif; cursor: pointer; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.g-user { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px; background: var(--brand-sand); border-radius: var(--r); }
.g-user small { display: block; color: var(--muted); font-size: .85rem; }
.g-user .badge { margin-left: auto; }
.g-chooser { max-width: 400px; }
.g-acc { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 4px; cursor: pointer; font-family: var(--ff-body); }
.g-acc:hover { background: var(--brand-sand); }
.g-acc small { display: block; color: var(--muted); }
.g-acc .avatar { width: 38px; height: 38px; font-size: .85rem; }
.welcome-steps { text-align: left; max-width: 520px; margin: 0 auto; }
@media (max-width: 640px) {
  .btn-google { width: 100%; min-width: 0; }
  .g-user .badge { margin-left: 0; }
}
/* El atributo hidden debe ganarle a los display de los componentes (.field es flex, etc.) */
[hidden] { display: none !important; }
/* Radios/checkbox ocultos de .toggles dentro de .field: sin el width:100% de .field input (ensanchaban la página) */
.field .toggles input, .field .choice input { width: auto; padding: 0; }
/* Móvil: "Ingresar" sigue visible (es la única puerta al panel). Logo y botones más compactos para que entren en 360 px */
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .logo span { font-size: 1.3rem; }
  .header-cta { gap: 6px; }
  .header-cta .btn { padding: 8px 12px; font-size: .8rem; }
}

/* ---------- 16. Lanzamiento: banda de promo y estados vacíos (2026-11-22) ---------- */
.promo-band { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fbf2ed; border: 1px solid #f0d3c5; border-radius: var(--r-lg); padding: 20px 24px; }
.promo-band strong { color: var(--brand-pine); }
.vacio { text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 44px 24px; }
.vacio p { max-width: 560px; margin: 8px auto 20px; }
.trust__icon { font-weight: 800; font-size: 1.1rem; }
.search { grid-template-columns: 1fr 1fr auto; max-width: 720px; }
@media (max-width: 900px) { .search { grid-template-columns: 1fr 1fr; } }
