/* ─────────────────────────────────────────────
   Portal Los Héroes Puebla 2027 · estilos compartidos
   Misma línea visual que agua.losheroespuebla.mx
   (tokens, hero oscuro, nav en píldora, tarjetas que "flotan")
   Tema WordPress lhp-2027 (mismo CSS que el prototipo aprobado).
   ───────────────────────────────────────────── */
:root {
  color-scheme: light;
  --brand: #1a4fa0; --brand-light: #eaf0fb; --brand-mid: #4a7fd4; --brand-dark: #133b78;
  --accent: #e07b2a; --accent-light: #fdf0e0; --accent-dark: #b95f17;
  --success: #1d7a4a; --success-light: #e6f5ee;
  --warning: #b7791f; --warning-light: #fdf6e3;
  --danger: #c03030; --danger-light: #fdeaea;
  --neutral: #f0f2f6; --surface: #ffffff; --border: #e4e8ef; --border-strong: #cfd6e2;
  --text: #141e2e; --text-muted: #64748b; --text-soft: #8a97ab;
  --night: #0d1829; --night-2: #13233b;
  --wa: #1f9d55;
  /* Planes (del PDF "Paquetes") */
  --plan-gratuito: #ff6a00; --plan-gratuito-light: #fff0e4;
  --plan-basico: #0b57d0;   --plan-basico-light: #e3edfc;
  --plan-plus: #0e9aa7;     --plan-plus-light: #dcf5f7;
  --plan-premium: #5e3fbe;  --plan-premium-light: #ece7fa;
  --plan-partner: #1f2937;  --plan-partner-light: #fef3c7;
  /* Botón Buscar: mismos naranjas y transición del sitio actual */
  --cta: #f48d51; --cta-hover: #f55600;
  --radius: 14px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 16px rgba(0,0,0,.08), 0 24px 48px rgba(0,0,0,.10);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 15px; color: var(--text); background: var(--neutral);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--brand-mid); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.lucide { width: 1em; height: 1em; stroke-width: 2.1; flex-shrink: 0; vertical-align: -.125em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ───────── HERO + NAVEGACIÓN ───────── */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 16px var(--gutter-r) 112px var(--gutter-l);
  background:
    radial-gradient(ellipse at 18% 50%, rgba(26,79,160,.40) 0%, transparent 60%),
    radial-gradient(ellipse at 86% 12%, rgba(224,123,42,.20) 0%, transparent 48%),
    radial-gradient(ellipse at 60% 95%, rgba(42,120,214,.22) 0%, transparent 45%),
    var(--night);
}
.hero.compact { padding-bottom: 96px; }
.hero::before { /* trazo urbano: manzanas del fraccionamiento */
  content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 64px 40px; mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.topbar { position: relative; z-index: 20; max-width: 1120px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 2px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: rgba(255,255,255,.82); text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 9px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current=page] { background: #fff; color: var(--brand); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.nav a .lucide { font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.publish { position: relative; }
.btn-publish { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border: 0; font-weight: 800; font-size: 13.5px; padding: 11px 15px; border-radius: 12px; box-shadow: 0 8px 20px rgba(224,123,42,.35); }
.btn-publish:hover { background: var(--accent-dark); }
.publish-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; width: 290px; text-align: left; z-index: 50; }
.publish-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; text-decoration: none; color: var(--text); }
.publish-menu a:hover { background: var(--neutral); }
.publish-menu .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.publish-menu b { display: block; font-size: 14px; }
.publish-menu small { color: var(--text-muted); font-size: 12.5px; line-height: 1.35; display: block; }
.menu-toggle { display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 20px; align-items: center; justify-content: center; }
.drawer { display: none; }

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.kicker-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #cde2fb; background: rgba(42,120,214,.22); border: 1px solid rgba(205,226,251,.25); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(27px, 5vw, 44px); font-weight: 800; letter-spacing: -.9px; line-height: 1.12; }
.hero h1 span { color: #f6b37a; }
.hero-sub { font-size: 15.5px; color: rgba(255,255,255,.78); margin: 12px auto 0; max-width: 620px; text-wrap: balance; }
.hero-search { margin: 26px auto 0; max-width: 640px; display: flex; gap: 6px; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero-search .field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--text-muted); min-width: 0; }
.hero-search input { border: 0; outline: 0; width: 100%; padding: 12px 0; font-size: 15px; color: var(--text); background: transparent; min-width: 0; }
.hero-search button { border: 0; background: var(--brand); color: #fff; font-weight: 800; padding: 0 20px; border-radius: 12px; display: inline-flex; gap: 6px; align-items: center; }
.hero-search button:hover { background: var(--brand-dark); }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.hero-chips a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: inline-flex; gap: 6px; align-items: center; }
.hero-chips a:hover { background: rgba(255,255,255,.16); color: #fff; }
.crumbs { display: flex; justify-content: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }

/* ───────── CONTENEDORES ───────── */
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 860px; }
.lift { position: relative; z-index: 2; margin-top: -76px; }
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 28px; }
.card.flat { box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stack { display: grid; gap: 28px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; display: flex; align-items: center; gap: 9px; }
.section-head h2 .lucide { color: var(--brand); }
.section-head p { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.link-more { font-weight: 700; font-size: 13.5px; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.muted { color: var(--text-muted); }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--text-muted); }

/* ───────── BOTONES Y CHIPS ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 12px; padding: 11px 16px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-mid); color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17824a; }
.btn-danger { background: var(--danger-light); color: var(--danger); border-color: #f3c4c4; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--neutral); color: var(--text); border: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }
.badge-basico { background: var(--plan-basico-light); color: var(--plan-basico); }
.badge-plus { background: var(--plan-plus-light); color: #087c86; }
.badge-premium { background: var(--plan-premium-light); color: var(--plan-premium); }
.badge-gratuito { background: var(--plan-gratuito-light); color: #b84d00; }
.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-ok { background: var(--success-light); color: var(--success); }
.badge-no { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--brand-light); color: var(--brand); }

/* ───────── ACCESOS "PUBLICA" ───────── */
.publish-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 14px; align-items: stretch; }
.publish-intro h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.publish-intro p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.publish-intro .steps { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.publish-intro .steps span { display: flex; gap: 8px; align-items: center; }
.publish-intro .steps .lucide { color: var(--success); }
.p-tile { border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s, box-shadow .15s; background: #fff; }
.p-tile:hover { border-color: var(--brand-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.p-tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; }
.p-tile b { font-size: 16px; }
.p-tile small { color: var(--text-muted); font-size: 13px; line-height: 1.4; flex: 1; }
.p-tile .go { font-weight: 800; font-size: 13px; color: var(--brand); display: inline-flex; gap: 4px; align-items: center; }
.ico-negocio { background: var(--accent-light); color: var(--accent-dark); }
.ico-inmueble { background: var(--brand-light); color: var(--brand); }
.ico-empleo { background: var(--success-light); color: var(--success); }

/* ───────── GIROS ───────── */
.giro-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.giro { text-decoration: none; color: var(--text); text-align: center; display: grid; gap: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.giro .img { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.giro .img img { width: 100%; height: 100%; object-fit: cover; }
.giro:hover .img { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ───────── TARJETAS DE NEGOCIO ───────── */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.biz { background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.biz:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.biz .thumb { aspect-ratio: 4/3; background: var(--neutral); position: relative; overflow: hidden; }
.biz .thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz .thumb .badge { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.biz .body { padding: 13px 15px 15px; display: grid; gap: 5px; flex: 1; align-content: start; }
.biz h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; line-height: 1.25; }
.biz .meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }
.biz .foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.biz .stars { color: #e3a008; font-weight: 700; display: inline-flex; gap: 3px; align-items: center; }
.biz.is-featured { border-color: transparent; box-shadow: 0 0 0 2px var(--plan-plus), var(--shadow-md); }
.biz.is-featured.premium { box-shadow: 0 0 0 2px var(--plan-premium), var(--shadow-md); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 28px; letter-spacing: -.5px; }

/* ───────── DIRECTORIO: FILTROS ───────── */
.layout-side { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 18px; padding: 20px; }
.filters h3 { font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.filters .checks { display: grid; gap: 6px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-weight: 700; font-size: 14px; }
.featured-row { background: linear-gradient(135deg, var(--plan-plus-light), var(--plan-premium-light)); border-radius: 20px; padding: 16px; margin-bottom: 20px; }
.featured-row .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--plan-premium); display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty .lucide { font-size: 34px; color: var(--text-soft); margin-bottom: 8px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ───────── FORMULARIOS ───────── */
.input, .select, .textarea { width: 100%; border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; background: #fff; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand-mid); box-shadow: 0 0 0 4px rgba(74,127,212,.15); }
.textarea { min-height: 110px; resize: vertical; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-row { display: grid; gap: 6px; min-width: 0; }
.f-row.full { grid-column: 1 / -1; }
.f-row label, .f-label { font-size: 13.5px; font-weight: 700; }
.f-row .req { color: var(--danger); }
.f-help { font-size: 12.5px; color: var(--text-muted); }
.f-err { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.f-row.invalid .input, .f-row.invalid .select, .f-row.invalid .textarea { border-color: var(--danger); }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.checks-grid .check { border: 1.5px solid var(--border); border-radius: 11px; padding: 9px 11px; }
.checks-grid .check:has(input:checked) { border-color: var(--brand-mid); background: var(--brand-light); }
.drop { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 18px; text-align: center; color: var(--text-muted); font-size: 13px; background: #fafbfd; cursor: pointer; display: grid; gap: 4px; justify-items: center; }
.drop:hover { border-color: var(--brand-mid); color: var(--brand); }
.drop .lucide { font-size: 22px; }
.drop.has-file { border-style: solid; border-color: var(--success); color: var(--success); background: var(--success-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.locked-field { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-muted); background: #fafbfd; }
.locked-field .lucide { font-size: 18px; }

/* Stepper (igual que el formulario de reportes de Agua) */
.stepper { display: flex; gap: 6px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 2px; }
.stepper .st { flex: 1; min-width: 92px; display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-soft); }
.stepper .st i { height: 5px; border-radius: 9px; background: var(--border); display: block; }
.stepper .st.done { color: var(--success); } .stepper .st.done i { background: var(--success); }
.stepper .st.on { color: var(--brand); } .stepper .st.on i { background: var(--brand); }
.step-title { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 4px; }
.step-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Selector de plan */
.plan-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan-opt { position: relative; border: 2px solid var(--border); border-radius: 16px; padding: 16px 14px 14px; cursor: pointer; display: grid; gap: 4px; align-content: start; background: #fff; transition: border-color .15s, box-shadow .15s; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .name { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.plan-opt .price { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.plan-opt .price small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan-opt ul { list-style: none; display: grid; gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.plan-opt li { display: flex; gap: 6px; } .plan-opt li .lucide { color: var(--success); margin-top: 2px; }
.plan-opt:has(input:checked) { border-color: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 16%, transparent); }
.plan-opt:has(input:focus-visible) { outline: 3px solid var(--brand-mid); outline-offset: 2px; }
.plan-opt .tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: #fff; font-size: 13px; }
.plan-opt:has(input:checked) .tick { background: var(--pc); border-color: var(--pc); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Confirmación con folio */
.done-box { text-align: center; padding: 10px 0; }
.done-box .big { width: 70px; height: 70px; border-radius: 50%; background: var(--success-light); color: var(--success); display: grid; place-items: center; margin: 0 auto 14px; font-size: 34px; }
.folio { display: inline-flex; gap: 10px; align-items: center; font-size: 26px; font-weight: 800; letter-spacing: 1px; background: var(--neutral); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 10px 18px; margin: 14px 0; font-variant-numeric: tabular-nums; }
.timeline { display: grid; gap: 0; text-align: left; max-width: 460px; margin: 18px auto 0; }
.timeline .tl { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline .tl::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--border); }
.timeline .tl:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--neutral); color: var(--text-soft); border: 2px solid var(--border); }
.timeline .tl.ok .dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline .tl.now .dot { background: var(--warning-light); border-color: var(--warning); color: var(--warning); }
.timeline b { font-size: 14px; display: block; } .timeline small { color: var(--text-muted); font-size: 13px; }

/* ───────── FICHA DE NEGOCIO ───────── */
.biz-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.biz-head .logo { width: 96px; height: 96px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.biz-head .logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-head .biz-name { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }
.biz-head .meta { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.biz-head .meta span { display: inline-flex; gap: 5px; align-items: center; }
.cover { aspect-ratio: 21/7; border-radius: 18px; overflow: hidden; background: var(--neutral); margin-top: 20px; position: relative; display: grid; place-items: center; }
.cover .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(28px) saturate(1.2); opacity: .55; }
.cover .fg { position: relative; height: 84%; width: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.cover .ph { position: absolute; inset: 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 24px; }
.block { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
.block:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.block h2 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.block h2 .lucide { color: var(--brand); }
.block p { max-width: 68ch; }
.block p + p { margin-top: 10px; }
.locked { border: 1.5px dashed var(--border-strong); border-radius: 16px; padding: 18px; background: repeating-linear-gradient(-45deg, #fafbfd, #fafbfd 10px, #f4f6fa 10px, #f4f6fa 20px); color: var(--text-muted); font-size: 13.5px; display: flex; gap: 12px; align-items: center; }
.locked .lucide { font-size: 20px; flex-shrink: 0; }
.locked b { color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery .g { aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.video-ph { aspect-ratio: 16/9; border-radius: 16px; background: linear-gradient(135deg, #13233b, #1a4fa0); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.video-ph .play { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 28px; backdrop-filter: blur(4px); }
.video-ph small { position: absolute; bottom: 12px; left: 14px; font-size: 12px; opacity: .8; }
.tiktok-ph { aspect-ratio: 9/14; max-width: 220px; border-radius: 18px; background: linear-gradient(160deg, #111, #2b2b2b); color: #fff; display: grid; place-items: center; position: relative; }
.media-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.map-ph { aspect-ratio: 16/8; border-radius: 16px; overflow: hidden; position: relative; background: #e8eef5; }
.map-ph > svg { width: 100%; height: 100%; display: block; }
.map-ph .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: var(--danger); font-size: 44px; line-height: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.map-ph .map-cta { position: absolute; right: 12px; bottom: 12px; }
.side-box { padding: 20px; display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.side-box h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.kv { display: grid; gap: 9px; font-size: 14px; }
.kv div { display: flex; gap: 10px; align-items: flex-start; }
.kv .lucide { color: var(--brand); margin-top: 3px; font-size: 16px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--neutral); color: var(--text); font-size: 18px; text-decoration: none; }
.socials a:hover { background: var(--brand-light); color: var(--brand); }
.visits { display: flex; gap: 10px; align-items: center; background: var(--neutral); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.visits b { font-size: 18px; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--border-strong); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.seg button[aria-pressed=true] { background: var(--pc, var(--brand)); color: #fff; }
.review { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0; }
.review .stars { color: #e3a008; font-size: 13px; }
.rating-sum { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.rating-sum .n { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.catalog .item { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.catalog .item b { font-size: 14px; } .catalog .item span { color: var(--accent-dark); font-weight: 800; }

/* ───────── BANNER 300×250 ───────── */
.ad { width: 300px; max-width: 100%; aspect-ratio: 300/250; border-radius: 16px; overflow: hidden; position: relative; text-decoration: none; color: #fff; display: block; box-shadow: var(--shadow-md); }
.ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,24,41,.92), rgba(13,24,41,.15) 60%); }
.ad .txt { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 4px; }
.ad .txt b { font-size: 19px; line-height: 1.15; letter-spacing: -.3px; }
.ad .txt small { font-size: 12.5px; opacity: .85; }
.ad .tag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.88); color: var(--text); padding: 3px 7px; border-radius: 6px; }
.ad-label { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px; }

/* ───────── PLANES ───────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; position: relative; }
.plan .top { background: var(--pc); color: #fff; padding: 16px 18px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.plan .price { padding: 18px 18px 6px; font-size: 38px; font-weight: 800; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 14px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.plan .inc { padding: 0 18px 10px; font-size: 13px; font-weight: 800; color: var(--pc); }
.plan ul { list-style: none; padding: 0 18px; display: grid; gap: 9px; flex: 1; font-size: 13.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .lucide { color: var(--pc); margin-top: 3px; }
.plan .cta { padding: 18px; }
.plan.pop { box-shadow: 0 0 0 3px var(--plan-plus), var(--shadow-lg); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.compare th, .compare td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--pc); }
.compare .yes { color: var(--success); font-size: 18px; } .compare .no { color: var(--border-strong); }
.table-scroll { position: relative; overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.footnote { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }

/* ───────── INMUEBLES / EMPLEOS ───────── */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.prop .thumb { aspect-ratio: 4/3; }
.prop .price { font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: var(--text); font-variant-numeric: tabular-nums; }
.prop .price small { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.specs { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.specs span { display: inline-flex; gap: 4px; align-items: center; }
.job { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.job:hover { border-color: var(--brand-mid); box-shadow: var(--shadow-md); }
.job .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; }
.job h3 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.job .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.job .meta span { display: inline-flex; gap: 5px; align-items: center; }
.job .pay { text-align: right; font-weight: 800; font-size: 15px; white-space: nowrap; }
.job .pay small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.jobs { display: grid; gap: 12px; }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row .input { padding: 9px 10px; }

/* ───────── NOTICIAS ───────── */
.news-lead { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.news-card { background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--border); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.news-card .body { padding: 15px 17px 17px; display: grid; gap: 8px; align-content: start; flex: 1; }
.news-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.news-card.lead h3 { font-size: 24px; letter-spacing: -.6px; }
.news-card .excerpt { color: var(--text-muted); font-size: 14px; }
.byline { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-muted); }
.byline .avatar { width: 26px; height: 26px; font-size: 11px; }
.byline b { color: var(--text); font-weight: 700; }
.cat { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-dark); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-side { display: grid; gap: 12px; align-content: start; }
.news-mini { display: grid; grid-template-columns: 92px 1fr; gap: 12px; text-decoration: none; color: var(--text); align-items: center; }
.news-mini .thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.news-mini b { font-size: 14px; line-height: 1.3; display: block; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--border-strong); background: #fff; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.tabs button[aria-pressed=true] { background: var(--text); border-color: var(--text); color: #fff; }
.article { font-size: 16.5px; line-height: 1.7; }
.article p { max-width: 68ch; margin-bottom: 16px; }
.article h2 { font-size: 21px; margin: 24px 0 10px; letter-spacing: -.4px; }
.article blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; color: var(--text-muted); font-style: italic; margin: 18px 0; }
.author-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.author-card .avatar { width: 64px; height: 64px; font-size: 22px; }
.newsletter { background: var(--night); color: #fff; border-radius: 20px; padding: 22px; display: grid; gap: 10px; }
.newsletter p { color: rgba(255,255,255,.75); font-size: 13.5px; }
.newsletter form { display: flex; gap: 6px; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 160px; border-color: transparent; }

/* ───────── EMERGENCIAS / REPORTES ───────── */
.emg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.emg { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.emg .num { font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; user-select: all; }
.emg .head { display: flex; gap: 10px; align-items: center; }
.emg .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--danger-light); color: var(--danger); flex-shrink: 0; }
.emg b { font-size: 14.5px; line-height: 1.3; }
.emg.big { border-color: #f3c4c4; background: linear-gradient(180deg, #fff, #fff6f6); }
.rep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rep { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: grid; grid-template-columns: 50px 1fr; gap: 14px; text-decoration: none; color: var(--text); align-items: start; transition: border-color .15s, box-shadow .15s; }
.rep:hover { border-color: var(--brand-mid); box-shadow: var(--shadow-md); }
.rep .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; }
.rep b { font-size: 16px; display: block; margin-bottom: 3px; }
.rep small { color: var(--text-muted); font-size: 13.5px; }

/* ───────── BANDAS CTA ───────── */
.band { border-radius: 22px; padding: 24px 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.band .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; }
.band h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.band p { font-size: 14px; opacity: .8; }
.band.wa { background: #e7f6ee; color: #0f4d2c; } .band.wa .ico { background: var(--wa); color: #fff; }
.band.water { background: var(--night); color: #fff; } .band.water .ico { background: rgba(42,120,214,.3); color: #9ec5f4; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 100; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px); }
/* ───────── PIE ───────── */
.footer { background: var(--night); color: rgba(255,255,255,.72); margin-top: 64px; font-size: 14px; }
.footer .in { max-width: 1120px; margin: 0 auto; padding: 44px var(--gutter-r) 26px var(--gutter-l); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer img { height: 38px; width: auto; margin-bottom: 12px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.footer ul { list-style: none; display: grid; gap: 7px; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .socials a { background: rgba(255,255,255,.08); color: #fff; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.1); }
.footer .legal .in { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 18px; font-size: 12.5px; flex-wrap: wrap; }

/* ───────── RESPONSIVO ───────── */
@media (max-width: 1080px) {
  .nav, .top-actions .btn-publish span { display: none; }
  .menu-toggle { display: inline-flex; }
  .drawer { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(13,24,41,.6); }
  .drawer[hidden] { display: none; }
  .drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--night); padding: calc(18px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 18px 18px; display: grid; gap: 4px; align-content: start; overflow-y: auto; }
  .drawer .panel a { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 700; padding: 12px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: center; font-size: 15px; }
  .drawer .panel a[aria-current=page] { background: #fff; color: var(--brand); }
  .drawer .panel .sep { height: 1px; background: rgba(255,255,255,.12); margin: 8px 0; }
  .drawer .close { justify-self: end; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; display: grid; place-items: center; margin-bottom: 6px; }
  .publish-grid { grid-template-columns: 1fr 1fr 1fr; }
  .publish-intro { grid-column: 1 / -1; }
  .giro-grid { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer .in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .layout-side, .detail, .two-col, .news-lead { grid-template-columns: minmax(0, 1fr); }
  .filters, .side-box { position: static; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .plan-pick { grid-template-columns: 1fr 1fr; }
  .rep-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .card { padding: 20px 18px; border-radius: 18px; }
  .hero { padding-bottom: 100px; }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 12px; justify-content: center; }
  .publish-grid { grid-template-columns: minmax(0, 1fr); }
  .giro-grid { grid-template-columns: repeat(3, 1fr); }
  .f-grid, .pay-opts { grid-template-columns: minmax(0, 1fr); }
  .plan-pick, .plans { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .biz-head { grid-template-columns: 72px minmax(0, 1fr); }
  .biz-head .logo { width: 72px; height: 72px; border-radius: 16px; }
  .biz-head > .actions { grid-column: 1 / -1; }
  .job { grid-template-columns: 44px minmax(0, 1fr); }
  .job .ico { width: 44px; height: 44px; font-size: 20px; }
  .job .pay { grid-column: 2; text-align: left; }
  .band { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .footer .in { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 34px; }
  .ad { margin: 0 auto; }
}

/* ───────── WORDPRESS ───────── */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--brand); font-weight: 800; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.tabs a { border: 1px solid var(--border-strong); background: #fff; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.tabs a[aria-current=page] { background: var(--text); border-color: var(--text); color: #fff; }
.thumb img, .news-mini .thumb img, .g img { width: 100%; height: 100%; object-fit: cover; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.alert-error { background: var(--danger-light); color: var(--danger); }
.alert-ok { background: var(--success-light); color: var(--success); }
.btn[disabled], button[disabled] { opacity: .6; cursor: progress; }
.js .no-js { display: none !important; }
.pagination { margin-top: 22px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.map-real { aspect-ratio: 16/8; border-radius: 16px; overflow: hidden; position: relative; z-index: 0; background: #e8eef5; }
.map-pick { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; position: relative; z-index: 0; background: #e8eef5; cursor: crosshair; }
.leaflet-container { font-family: var(--font); }
.video-embed { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--night); }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }
.tiktok-embed { max-width: 340px; }
.giro-index { columns: 3 220px; column-gap: 28px; }
.giro-index .grp { break-inside: avoid; margin-bottom: 18px; }
.giro-index h3 { font-size: 20px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.giro-index a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--border); }
.giro-index a.has { color: var(--text); font-weight: 700; }
.letters { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 18px; }
.letters a { border: 1px solid var(--border-strong); background: #fff; min-width: 34px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted); text-decoration: none; text-align: center; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 28px; line-height: 1; color: var(--border-strong); cursor: pointer; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #e3a008; }
.stars-input input:focus-visible + label { outline: 3px solid var(--brand-mid); border-radius: 4px; }
.review-form { display: grid; gap: 10px; margin-top: 14px; }
.review-form .f-grid { gap: 10px; }
.article img, .article figure { max-width: 100%; height: auto; border-radius: 14px; margin: 18px 0; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 16px; }
.article a { font-weight: 600; }
.article .alignwide, .article .alignfull { max-width: 100%; }
.article figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.cover-news { aspect-ratio: 16/8; border-radius: 18px; overflow: hidden; margin-bottom: 22px; }
.cover-news img { width: 100%; height: 100%; object-fit: cover; }
.inm-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 10px; }
.inm-gallery .g { aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.inm-gallery .g:first-child { grid-row: span 2; aspect-ratio: auto; }
.inm-gallery a { display: block; height: 100%; }
.f-row .turnstile { min-height: 65px; }
.sending { display: inline-flex; gap: 8px; align-items: center; }
.sending svg { animation: lhp-spin 1s linear infinite; }
@keyframes lhp-spin { to { transform: rotate(360deg); } }
/* WooCommerce dentro de la tarjeta */
.woo-card .woocommerce-notices-wrapper:empty { display: none; }
.woo-card .button, .woo-card button.button, .woo-card input.button { background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; }
.woo-card .button:hover { background: var(--brand-dark); color: #fff; }
.woo-card input.input-text, .woo-card select, .woo-card textarea { border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 9px 11px; }
.woo-card table.shop_table { border-radius: 14px; }
@media (max-width: 620px) { .inm-gallery { grid-template-columns: 1fr 1fr; } .inm-gallery .g:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4/3; } }
.inm-gallery.una { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; } .inm-gallery.una .g { aspect-ratio: 16/9; grid-row: auto; } .inm-gallery.una .g:nth-child(n+2) { display: none; }

/* ═════════ CAMBIOS NOV 2026: hero con video, tarjetas en lista, banners, agenda y panel ═════════ */
.badge-partner { background: var(--plan-partner); color: #fcd34d; }

/* Botón Buscar: naranja del sitio actual con su transición */
.hero-search button { background: var(--cta); transition: background-color .3s ease, box-shadow .3s ease; }
.hero-search button:hover, .hero-search button:focus-visible { background: var(--cta-hover); box-shadow: 0 8px 18px rgba(245,86,0,.35); }

/* Acceso al panel en la barra superior */
.btn-panel { display: inline-flex; align-items: center; gap: 7px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 10px 13px; border-radius: 12px; font-weight: 800; font-size: 13.5px; text-decoration: none; }
.btn-panel:hover { background: rgba(255,255,255,.18); }
@media (max-width: 1360px) { .btn-panel span { display: none; } .btn-panel { padding: 10px 11px; } .nav a .lucide { display: none; } }

/* ───────── HERO DE INICIO (video de fondo) ───────── */
.hero.hero-home { min-height: min(780px, 100svh); display: flex; flex-direction: column; padding-bottom: 150px; overflow: hidden; background: var(--night); }
.hero-home::before { z-index: 1; opacity: .035; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--night) center / cover no-repeat; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,24,41,.82) 0%, rgba(13,24,41,.45) 38%, rgba(13,24,41,.55) 70%, rgba(13,24,41,.92) 100%); }
.hero-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.hero-video.is-ready { opacity: 1; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: max(1387px, 177.78svh); transform: translate(-50%, -50%) scale(1.06); border: 0; pointer-events: none; }
.hero-home .topbar { margin-bottom: 0; }
.hero-home .hero-inner { z-index: 2; margin: auto; padding-top: 48px; max-width: 920px; width: 100%; }
.hero-home h1 { font-size: clamp(32px, 6.2vw, 62px); letter-spacing: -1.4px; line-height: 1.05; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-home .hero-sub { font-size: 17px; color: rgba(255,255,255,.86); max-width: 640px; }
.hero-search.big { max-width: 840px; margin-top: 30px; padding: 8px; border-radius: 20px; gap: 0; align-items: stretch; }
.hero-search.big .field { padding: 0 16px; }
.hero-search.big .field + .field { border-left: 1px solid var(--border); }
.hero-search.big input, .hero-search.big select { padding: 16px 0; font-size: 15.5px; }
.hero-search select { border: 0; outline: 0; width: 100%; background: transparent; color: var(--text); appearance: none; -webkit-appearance: none; cursor: pointer; min-width: 0; }
.hero-search.big .field.loc { flex: 0 0 240px; position: relative; }
.hero-search.big .field.loc::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hero-search.big button { padding: 0 28px; font-size: 15px; border-radius: 14px; }
.hero-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-popular b { font-weight: 700; color: rgba(255,255,255,.9); margin-right: 2px; }
.hero-popular a { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); transition: background .2s; }
.hero-popular a:hover { background: rgba(255,255,255,.22); }
.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div { display: grid; text-align: center; }
.hero-stats b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.hero-stats small { font-size: 12px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.hero-pause { position: absolute; z-index: 3; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 108px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(13,24,41,.45); color: #fff; display: grid; place-items: center; font-size: 16px; backdrop-filter: blur(6px); }
.hero-pause:hover { background: rgba(13,24,41,.7); }
.publish-grid.tres { grid-template-columns: repeat(3, 1fr); }

/* ───────── TARJETA DE NEGOCIO EN LISTA (logo cuadrado + datos) ───────── */
.biz-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.biz.biz-list { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: center; }
.biz-list .logo-sq { width: 108px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--neutral); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.biz-list .logo-sq img { width: 100%; height: 100%; object-fit: cover; }
.biz-list .logo-sq .ph { font-size: 30px; }
.biz-list .info { display: grid; gap: 5px; min-width: 0; padding-right: 4px; }
.biz-list h3 { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-list .rate { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--text); }
.biz-list .rate .st { color: #e3a008; letter-spacing: 1px; font-size: 13.5px; }
.biz-list .rate small { color: var(--text-muted); font-weight: 600; }
.biz-list .rate.none { color: var(--text-soft); font-weight: 600; }
.biz-list .meta { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-list .meta .lucide { flex-shrink: 0; }
.biz-list > .badge { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.biz-list.has-badge h3 { padding-right: 78px; }

/* ───────── BANNERS (sistema de anuncios) ───────── */
.ad-zone { margin-top: 28px; }
.ad-zone .ad-label { display: flex; justify-content: space-between; gap: 10px; }
.ad-wide { position: relative; height: 240px; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 28px 40px; color: #fff; text-decoration: none; box-shadow: var(--shadow-md); isolation: isolate; }
.ad-wide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 85% 20%, rgba(255,255,255,.18), transparent 55%), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 100% 32px; }
.ad-wide b { display: block; font-size: clamp(21px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.6px; line-height: 1.12; max-width: 640px; }
.ad-wide small { display: block; font-size: 14.5px; opacity: .85; margin-top: 8px; }
.ad-wide .cta { background: #fff; color: var(--text); font-weight: 800; padding: 13px 20px; border-radius: 12px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.ad-wide .tag { position: absolute; top: 12px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.88); color: var(--text); padding: 3px 7px; border-radius: 6px; }
.ad-empty { height: 240px; border-radius: 20px; border: 2px dashed var(--border-strong); display: grid; place-items: center; text-align: center; color: var(--text-muted); font-size: 14px; background: #fafbfd; }
.ad-empty b { color: var(--text); display: block; font-size: 16px; }
.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; background: var(--neutral); border: 1px solid var(--border); border-radius: 7px; padding: 2px 7px; user-select: all; white-space: nowrap; }

/* ───────── AGENDA DE CITAS ───────── */
.agenda { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cal { border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 800; text-transform: capitalize; }
.cal-head button { border: 1px solid var(--border); background: #fff; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11px; font-weight: 800; color: var(--text-soft); text-transform: uppercase; padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--brand-light); color: var(--brand); font-weight: 700; font-size: 13.5px; }
.cal-grid button:hover:not(:disabled) { background: #d6e3f8; }
.cal-grid button:disabled { background: transparent; color: var(--text-soft); opacity: .55; cursor: default; }
.cal-grid button[aria-pressed=true] { background: var(--brand); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slots button { border: 1.5px solid var(--brand-mid); color: var(--brand); background: #fff; border-radius: 10px; padding: 9px 4px; font-weight: 700; font-size: 13.5px; }
.slots button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.slots button:disabled { border-color: var(--border); color: var(--text-soft); text-decoration: line-through; cursor: default; }
.agenda-side { display: grid; gap: 12px; align-content: start; }
.agenda-ok { border-radius: 16px; background: var(--success-light); color: #0f4d2c; padding: 18px; display: grid; gap: 6px; }

/* ───────── PANEL DEL NEGOCIO ───────── */
.panel-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-nav { padding: 12px; display: grid; gap: 3px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.panel-user { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.panel-user .logo-sq { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--neutral); }
.panel-user .logo-sq img { width: 100%; height: 100%; object-fit: cover; }
.panel-user b { font-size: 14px; line-height: 1.2; display: block; }
.panel-nav a, .panel-nav button.lnk { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px; border: 0; background: transparent; text-align: left; width: 100%; }
.panel-nav a:hover, .panel-nav button.lnk:hover { background: var(--neutral); }
.panel-nav a[aria-current=page] { background: var(--brand-light); color: var(--brand); }
.panel-nav a .lock { margin-left: auto; color: var(--text-soft); font-size: 13px; }
.panel-main { display: grid; gap: 18px; min-width: 0; }
.panel-main > .card { padding: 22px 24px; }
.panel-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.panel-title h2 { font-size: 19px; font-weight: 800; letter-spacing: -.4px; display: flex; gap: 9px; align-items: center; }
.panel-title h2 .lucide { color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; background: #fff; }
.kpi .l { font-size: 12.5px; color: var(--text-muted); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.kpi .n { font-size: 26px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--success); font-weight: 700; }
.kpi .d.flat { color: var(--text-soft); }
.bars { display: flex; gap: 5px; align-items: flex-end; height: 130px; padding-top: 10px; }
.bars span { flex: 1; background: var(--bc, var(--brand-mid)); opacity: .55; border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; }
.bars span:last-child, .bars span:hover { opacity: 1; }
.bars span:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-soft); margin-top: 6px; }
.tbl-wrap { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.status-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.login-card { max-width: 480px; margin: 0 auto; }
.demo-accounts { display: grid; gap: 8px; }
.demo-accounts button { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--border); background: #fff; border-radius: 14px; padding: 10px 12px; text-align: left; }
.demo-accounts button:hover { border-color: var(--brand-mid); }
.demo-accounts .logo-sq { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--neutral); }
.demo-accounts .logo-sq img { width: 100%; height: 100%; object-fit: cover; }
.demo-accounts .logo-sq .ph { font-size: 14px; }

@media (max-width: 860px) {
  .panel-wrap, .agenda { grid-template-columns: minmax(0, 1fr); }
  .panel-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .panel-user { display: none; }
  .panel-nav a, .panel-nav button.lnk { white-space: nowrap; width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-search.big .field.loc { flex-basis: 190px; }
}
@media (max-width: 620px) {
  .hero.hero-home { min-height: auto; padding-bottom: 116px; }
  .hero-home .hero-inner { padding-top: 26px; }
  .hero-search.big { flex-direction: column; }
  .hero-search.big .field + .field { border-left: 0; border-top: 1px solid var(--border); }
  .hero-search.big .field.loc { flex-basis: auto; }
  .hero-search.big button { padding: 14px; justify-content: center; }
  .hero-stats { gap: 18px; }
  .hero-pause { bottom: 96px; }
  .publish-grid.tres { grid-template-columns: minmax(0, 1fr); }
  .biz-grid { grid-template-columns: minmax(0, 1fr); }
  .biz.biz-list { grid-template-columns: 92px minmax(0, 1fr); }
  .biz-list .logo-sq { width: 92px; height: 92px; }
  .ad-wide { height: auto; min-height: 240px; grid-template-columns: minmax(0, 1fr); padding: 24px 22px; align-content: center; }
  .ad-wide .cta { justify-self: start; }
  .panel-main > .card { padding: 18px 16px; }
}
.ad-label .code { text-transform: none; letter-spacing: 0; font-weight: 600; }
.biz-list .logo-sq { position: relative; } .biz-list .logo-sq .badge { position: absolute; left: 6px; bottom: 6px; font-size: 9.5px; padding: 2px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.panel-main > * { min-width: 0; } .tbl-wrap .tbl { min-width: 520px; }

/* ───────── Ajustes del tema WordPress para lo nuevo ───────── */
.ad-zone-cuadro { margin-top: 0; }
.ad-zone-cuadro .ad-label { display: block; }
a.ad-empty { text-decoration: none; }
.ad-empty.cuadro { height: auto; aspect-ratio: 300/250; max-width: 300px; }
.ad-empty span b { margin-bottom: 4px; }
.ad-wide.ad-img { padding: 0; display: block; background: var(--neutral); }
.ad-wide.ad-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-wide.ad-tira { height: auto; min-height: 90px; aspect-ratio: 728/90; padding: 14px 22px; }
.ad-wide.ad-tira b { font-size: 18px; }
.ad-html { margin: 0 auto; max-width: 100%; overflow: hidden; }
.article .ad-zone { margin: 24px 0; }
.hero-search.big .field.loc select { padding-right: 22px; }
.login-card .login-username label, .login-card .login-password label { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 6px; }
.login-card form p { margin-bottom: 12px; }
.login-card input[type=text], .login-card input[type=password] { width: 100%; border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; font-size: 14.5px; }
.login-card .login-remember label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.login-card .button-primary { width: 100%; background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.login-card .button-primary:hover { background: var(--brand-dark); }
.agenda-load { padding: 24px; text-align: center; color: var(--text-muted); }
.panel-main .f-grid { margin-top: 4px; }
.panel-main .drop { min-height: 96px; }
.cambio-aviso { border-radius: 14px; background: var(--warning-light); color: #7a5410; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.panel-select { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.hero-pause .i-play, .hero-pause[data-estado=pausado] .i-pause { display: none; } .hero-pause[data-estado=pausado] .i-play { display: block; }
.rating-sum .stars svg { fill: currentColor; }
