/*
 * asesor.css — página pública del asesor (`/<slug>/`, asesor_publico.html) y su 404
 * (asesor_no_disponible.html). Prefijo `as-`. Independiente: no requiere Tailwind.
 *
 * Mismo lenguaje visual que landing.css / publico.css: fondo hueso, bordes piedra,
 * tarjetas blancas, sombras suaves, Inter + Instrument Serif en acentos.
 *
 * Color de acento: lo fija un script en <head> a partir de `PerfilAsesor.color1`
 * (si es inválido o demasiado claro se usa #136dec):
 *   --as-accent      decorativo (anillos, brillos, fondos suaves)
 *   --as-accent-ink  texto/botones sobre fondo claro (≥ 4.5:1)
 *   --as-on-accent   texto sobre --as-accent-ink
 */

:root {
  --as-bg: #fbfaf7;
  --as-bg-2: #f5f1ea;
  --as-card: #ffffff;
  --as-border: #ebe5da;
  --as-border-strong: #ddd4c4;
  --as-text: #1c1917;
  --as-muted: #6b6259;
  --as-subtle: #736a60;
  --as-primary: #136dec;
  --as-peach: #fb923c;
  --as-amber: #f59e0b;
  --as-wa: #15803d;
  --as-wa-2: #116a32;
  --as-accent: var(--as-primary);
  --as-accent-ink: #1061d4;
  --as-on-accent: #ffffff;
  --as-accent-soft: color-mix(in srgb, var(--as-accent) 9%, #fff);
  --as-radius: 18px;
  --as-radius-lg: 22px;
  --as-radius-sm: 12px;
  --as-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 1px rgba(28, 25, 23, 0.03);
  --as-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px -14px rgba(28, 25, 23, 0.18);
  --as-shadow-lg: 0 2px 4px rgba(28, 25, 23, 0.04), 0 32px 64px -24px rgba(60, 40, 20, 0.32);
  --as-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --as-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --as-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --as-bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body.as {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--as-bg);
  color: var(--as-text);
  font: 400 15px/1.55 var(--as-sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: var(--as-bar-h);
}
body.as > main { flex: 1; }
body.as ::selection { background: var(--as-accent-ink); color: #fff; }
.as img { max-width: 100%; display: block; }
.as :where(a) { color: inherit; text-decoration: none; }
.as :where(button, input, select) { font: inherit; color: inherit; }
.as h1, .as h2, .as h3, .as p { margin: 0; }
.as ul { list-style: none; margin: 0; padding: 0; }

.as :where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--as-accent-ink);
  outline-offset: 3px;
}
.as :where(a, button):focus-visible { border-radius: 12px; }

.as-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--as-text); color: #fff !important; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14px; transition: top 0.2s;
}
.as-skip:focus { top: 12px; }
.as-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: middle; flex-shrink: 0; user-select: none; }
.as-ico-wa { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }

.as-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .as-container { padding: 0 32px; } }

.as-serif { font-family: var(--as-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; padding-right: 0.05em; }
.as-h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.as-h2 .as-serif {
  font-size: 1.1em;
  background: linear-gradient(100deg, var(--as-accent-ink), color-mix(in srgb, var(--as-accent-ink) 55%, var(--as-peach)) 70%, var(--as-peach));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--as-sans); letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; background: none;
  transition: transform 0.25s var(--as-ease), background-color 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.as-btn:active { transform: scale(0.97); }
@media (hover: hover) { .as-btn:hover { transform: translateY(-1px); } }
.as-btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.as-btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.as-btn-wa { background: var(--as-wa); color: #fff !important; box-shadow: 0 10px 24px -12px rgba(21, 128, 61, 0.8); }
.as-btn-wa:hover { background: var(--as-wa-2); box-shadow: 0 14px 28px -12px rgba(21, 128, 61, 0.9); }
.as-btn-accent { background: var(--as-accent-ink); color: var(--as-on-accent) !important; }
.as-btn-accent:hover { filter: brightness(0.93); }
.as-btn-outline { background: var(--as-card); color: var(--as-text); border-color: var(--as-border-strong); box-shadow: var(--as-shadow-sm); }
.as-btn-outline:hover { background: var(--as-bg-2); }
.as-btn-ghost { color: var(--as-text); }
.as-btn-ghost:hover { background: rgba(28, 25, 23, 0.05); }
.as-btn-icon { width: 48px; padding: 0; }

/* ---------- Avatar ---------- */
.as-av {
  --s: 40px;
  width: var(--s); height: var(--s); border-radius: 999px; flex-shrink: 0;
  object-fit: cover; background: var(--as-bg-2);
}
.as-av-ini {
  display: inline-grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--as-accent) 60%, #fff) 0%, transparent 55%),
    linear-gradient(140deg, var(--as-accent-ink), color-mix(in srgb, var(--as-accent-ink) 70%, #1c1917));
  color: var(--as-on-accent);
  font-weight: 600; font-size: calc(var(--s) * 0.36); letter-spacing: -0.02em;
}
.as-av-sm { --s: 34px; box-shadow: 0 0 0 2px var(--as-card), 0 0 0 3.5px var(--as-accent); }
.as-av-lg { --s: 72px; box-shadow: 0 0 0 4px var(--as-card), 0 0 0 5.5px var(--as-accent), var(--as-shadow); }
.as-av-xl { --s: 128px; box-shadow: 0 0 0 5px var(--as-bg), 0 18px 40px -16px rgba(60, 40, 20, 0.45); }
@media (min-width: 768px) { .as-av-xl { --s: 168px; box-shadow: 0 0 0 6px var(--as-bg), 0 24px 48px -18px rgba(60, 40, 20, 0.45); } }
.as-av-xl.as-av-ini { font-family: var(--as-serif); font-style: italic; font-weight: 400; font-size: calc(var(--s) * 0.42); letter-spacing: 0; }

/* ---------- Barra superior (aparece al pasar la portada) ---------- */
.as-top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background: color-mix(in srgb, var(--as-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--as-border);
  transform: translateY(-105%);
  transition: transform 0.45s var(--as-ease);
}
.as-top.is-on { transform: none; }
.as-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.as-top-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.as-top-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .as-top .as-btn-wa { display: none; } }

/* ---------- Portada ---------- */
.as-cover {
  position: relative; overflow: hidden; background: var(--as-bg-2);
  height: 220px;
}
@media (min-width: 640px) { .as-cover { height: 300px; } }
@media (min-width: 1024px) { .as-cover { height: min(calc(100vw / 3), 460px); } }
.as-cover img { width: 100%; height: 100%; object-fit: cover; animation: as-zoom 1.6s var(--as-ease) both; }
.as-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 15, 10, 0.12), transparent 35%, transparent 55%, rgba(20, 15, 10, 0.28));
}
.as-cover-empty::after { background: linear-gradient(to bottom, transparent 60%, color-mix(in srgb, var(--as-bg) 60%, transparent)); }
.as-cover-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 55% at 18% 30%, rgba(251, 146, 60, 0.55), transparent 70%),
    radial-gradient(34% 50% at 52% 12%, rgba(245, 158, 11, 0.42), transparent 70%),
    radial-gradient(40% 60% at 84% 40%, color-mix(in srgb, var(--as-accent) 50%, transparent), transparent 70%),
    radial-gradient(45% 55% at 40% 95%, rgba(253, 186, 116, 0.5), transparent 70%),
    linear-gradient(120deg, #fff1e3, #fde7d2 40%, #f6ebe0);
  animation: as-drift 18s ease-in-out infinite alternate;
}
.as-cover-mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(120, 72, 30, 0.16) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 60%, transparent 95%);
          mask-image: linear-gradient(100deg, transparent 10%, #000 60%, transparent 95%);
}
@keyframes as-drift { to { transform: translate3d(4%, 3%, 0) scale(1.06) rotate(2deg); } }
@keyframes as-zoom { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Identidad ---------- */
.as-hero { position: relative; z-index: 2; padding-bottom: 8px; }
.as-hero-row { display: grid; justify-items: center; text-align: center; gap: 16px; margin-top: -64px; }
@media (min-width: 900px) {
  .as-hero-row {
    grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; justify-items: start; text-align: left;
    gap: 28px; margin-top: -76px;
  }
}
.as-av-wrap { position: relative; }
.as-av-badge {
  position: absolute; right: 4%; bottom: 6%;
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: var(--as-accent-ink); color: var(--as-on-accent);
  box-shadow: 0 0 0 4px var(--as-bg), var(--as-shadow);
}
.as-av-badge .material-symbols-outlined { font-size: 19px; font-variation-settings: "FILL" 1; }
@media (min-width: 768px) { .as-av-badge { width: 40px; height: 40px; } .as-av-badge .material-symbols-outlined { font-size: 22px; } }

.as-id { min-width: 0; padding-bottom: 6px; }
.as-role { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--as-accent-ink); letter-spacing: 0; }
.as-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--as-accent); box-shadow: 0 0 0 4px var(--as-accent-soft); }
.as-name {
  margin-top: 6px !important;
  font-size: clamp(2rem, 7.5vw, 3.4rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.as-org { margin-top: 8px !important; color: var(--as-muted); font-size: 15.5px; }
.as-org strong { color: var(--as-text); font-weight: 600; }

.as-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 440px; padding-bottom: 8px; }
.as-actions .as-btn-wa, .as-actions .as-btn-accent { grid-column: 1 / -1; }
.as-actions .as-btn { padding: 0 16px; }
@media (min-width: 900px) {
  .as-actions { display: flex; width: auto; max-width: none; }
}
.as-bio {
  margin: 20px auto 0 !important; max-width: 62ch; text-align: center;
  font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.6; color: #443d36; text-wrap: pretty;
}
@media (min-width: 900px) { .as-bio { margin: 22px 0 0 calc(168px + 28px) !important; text-align: left; } }

/* ---------- Cifras ---------- */
.as-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 32px !important;
}
@media (min-width: 768px) { .as-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 44px !important; } }
.as-stat {
  position: relative; overflow: hidden;
  background: var(--as-card); border: 1px solid var(--as-border); border-radius: var(--as-radius);
  padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--as-shadow-sm);
}
.as-stat-n { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.as-stat-l { font-size: 13.5px; color: var(--as-muted); font-weight: 500; }
.as-stat-main { border-color: color-mix(in srgb, var(--as-accent) 25%, var(--as-border)); background: linear-gradient(150deg, var(--as-accent-soft), var(--as-card) 70%); }
.as-stat-main .as-stat-n { color: var(--as-accent-ink); }
.as-stat-main::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--as-accent) 22%, transparent), transparent 70%);
}

/* ---------- Sección inmuebles ---------- */
.as-props { padding-top: 64px; padding-bottom: 24px; }
@media (min-width: 900px) { .as-props { padding-top: 88px; } }
.as-sec-head { display: grid; gap: 10px; margin-bottom: 22px; }
.as-sec-sub { color: var(--as-muted); font-size: 15.5px; max-width: 60ch; }

.as-tools {
  display: grid; gap: 12px; padding: 12px; margin: 0;
  background: var(--as-card); border: 1px solid var(--as-border); border-radius: var(--as-radius-lg);
  box-shadow: var(--as-shadow-sm);
}
html:not(.as-js) .as-tools { display: none; }

.as-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px; padding: 2px; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--as-border-strong); background: var(--as-card);
  font-size: 14px; font-weight: 600; color: var(--as-text);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--as-ease);
}
@media (max-width: 419px) { .as-chip { padding: 0 12px; } }
.as-chip:hover { background: var(--as-bg-2); }
.as-chip:active { transform: scale(0.96); }
.as-chip[aria-pressed="true"] { background: var(--as-text); border-color: var(--as-text); color: #fff; }
.as-chip-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 12px; font-variant-numeric: tabular-nums; background: var(--as-bg-2); color: var(--as-muted);
}
.as-chip[aria-pressed="true"] .as-chip-n { background: rgba(255, 255, 255, 0.18); color: #fff; }

.as-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) {
  .as-fields { grid-template-columns: minmax(170px, 1fr) repeat(3, auto); }
  .as-field select { flex: none; width: auto; max-width: 210px; }
}
.as-field {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 44px; padding: 0 12px; border-radius: var(--as-radius-sm);
  background: var(--as-bg); border: 1px solid var(--as-border); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.as-field:focus-within { border-color: var(--as-accent-ink); background: var(--as-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--as-accent) 18%, transparent); }
.as-field :focus-visible { outline: none; }
.as-field-search, .as-field-sort { grid-column: 1 / -1; }
@media (min-width: 720px) { .as-field-search, .as-field-sort { grid-column: auto; } }
.as-field .material-symbols-outlined { color: var(--as-subtle); font-size: 20px; }
.as-field-l { font-size: 12.5px; font-weight: 600; color: var(--as-muted); flex-shrink: 0; }
.as-field input, .as-field select {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 14.5px; font-weight: 500;
}
.as-field input::placeholder { color: #8a8077; }
.as-field input::-webkit-search-cancel-button { cursor: pointer; }
.as-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6259' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
  text-overflow: ellipsis;
}

.as-count { margin: 18px 2px 14px !important; font-size: 14px; color: var(--as-muted); font-weight: 500; }
.as-count strong { color: var(--as-text); font-weight: 600; }

/* ---------- Tarjetas ---------- */
.as-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1040px) { .as-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.as-cell { min-width: 0; display: flex; }
.as-cell[hidden] { display: none; }

.as-card {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: var(--as-card); border: 1px solid var(--as-border); border-radius: var(--as-radius-lg);
  overflow: hidden; box-shadow: var(--as-shadow-sm);
  transition: box-shadow 0.35s var(--as-ease), transform 0.35s var(--as-ease), border-color 0.3s;
}
.as-card:focus-visible { border-radius: var(--as-radius-lg) !important; }
.as-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--as-bg-2); overflow: hidden; }
.as-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--as-ease); }
.as-card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.16), transparent 30%, transparent 72%, rgba(0,0,0,0.22)); }
@media (hover: hover) {
  .as-card:hover { box-shadow: var(--as-shadow-lg); transform: translateY(-4px); border-color: var(--as-border-strong); }
  .as-card:hover .as-card-media img { transform: scale(1.05); }
  .as-card:hover .as-card-more { color: var(--as-accent-ink); }
  .as-card:hover .as-card-more .material-symbols-outlined { transform: translateX(4px); }
}
.as-card-empty {
  height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--as-subtle); font-size: 13px; font-weight: 500;
  background: repeating-linear-gradient(135deg, var(--as-bg-2) 0 12px, #f1ece3 12px 24px);
}
.as-card-empty .material-symbols-outlined { font-size: 34px; }
.as-card-badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.as-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  background: rgba(255, 255, 255, 0.95); color: var(--as-text); box-shadow: var(--as-shadow-sm);
}
.as-badge .material-symbols-outlined { font-size: 15px; }
.as-badge-accent { background: var(--as-accent-ink); color: var(--as-on-accent); }
.as-badge-warm { background: #fff4e5; color: #9a3412; }
.as-card-n {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  height: 26px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(20, 17, 15, 0.62); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.as-card-n .material-symbols-outlined { font-size: 15px; }
.as-card-body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.as-card-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.as-card-price small { font-size: 0.55em; font-weight: 600; color: var(--as-muted); margin-right: 4px; letter-spacing: -0.01em; }
.as-card-price .as-card-per { margin: 0 0 0 3px; }
.as-card-alt { font-size: 13.5px; color: var(--as-muted); font-weight: 500; margin-top: 2px !important; font-variant-numeric: tabular-nums; }
.as-card-title {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.as-card-loc { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--as-muted); min-width: 0; }
.as-card-loc span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-card-loc .material-symbols-outlined { font-size: 17px; color: var(--as-accent-ink); }
.as-card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: #3a332d; padding-top: 11px; border-top: 1px solid var(--as-border); }
.as-card-facts > span { display: inline-flex; align-items: center; gap: 5px; }
.as-card-facts .material-symbols-outlined { font-size: 17px; color: var(--as-subtle); }
.as-card-more {
  margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--as-text); transition: color 0.2s;
}
.as-card-more .material-symbols-outlined { font-size: 18px; transition: transform 0.3s var(--as-ease); }

.as-empty {
  text-align: center; padding: 56px 20px; border: 1px dashed var(--as-border-strong); border-radius: var(--as-radius-lg);
  color: var(--as-muted); display: grid; gap: 10px; justify-items: center; background: color-mix(in srgb, var(--as-card) 60%, transparent);
}
.as-empty[hidden] { display: none; }
.as-empty-ico {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 4px;
  background: linear-gradient(135deg, #fff4e8, #ffe7cc); color: #b45309; box-shadow: inset 0 0 0 1px #fbd9b0;
}
.as-empty-ico .material-symbols-outlined { font-size: 30px; }
.as-empty strong { color: var(--as-text); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.as-empty .as-btn { margin-top: 6px; }

/* ---------- Contacto ---------- */
#contacto { padding-top: 56px; padding-bottom: 72px; }
.as-contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: 44px 20px 36px; border-radius: 28px;
  background: var(--as-card); border: 1px solid var(--as-border); box-shadow: var(--as-shadow-lg);
}
@media (min-width: 768px) { .as-contact { padding: 64px 48px 52px; } }
.as-contact-glow {
  position: absolute; inset: -40% -10% auto; height: 90%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 25% 40%, rgba(251, 146, 60, 0.20), transparent 70%),
    radial-gradient(40% 55% at 75% 30%, color-mix(in srgb, var(--as-accent) 18%, transparent), transparent 70%);
}
.as-contact-id { margin-bottom: 6px; }
.as-contact-lead { color: var(--as-muted); font-size: 16px; line-height: 1.6; max-width: 52ch; text-wrap: pretty; }
.as-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; width: 100%; }
@media (max-width: 559px) {
  .as-contact-actions .as-btn { flex: 1 1 calc(50% - 5px); }
  .as-contact-actions .as-btn-wa { flex-basis: 100%; }
}

/* ---------- Pie ---------- */
.as-foot { border-top: 1px solid var(--as-border); padding: 22px 0 26px; }
.as-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--as-muted); }
.as-foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--as-muted) !important; }
.as-foot-brand img { width: 20px; height: 20px; border-radius: 6px; }
.as-foot-brand strong { color: var(--as-text); font-weight: 600; }
.as-foot-brand:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra fija móvil ---------- */
.as-bar {
  position: fixed; inset: auto 0 0; z-index: 35;
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--as-card) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--as-border);
}
.as-bar-wa { flex: 1; }
.as-has-bar { --as-bar-h: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .as-bar { display: none; }
  .as-has-bar { --as-bar-h: 0px; }
}

/* ---------- Barra del dueño ---------- */
.as-owner-bar {
  position: fixed; left: 50%; bottom: calc(var(--as-bar-h) + 14px); z-index: 45; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  padding: 6px 6px 6px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(28, 25, 23, 0.92); color: #f5f1ea; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: as-up 0.6s 0.4s var(--as-ease) both;
}
.as-owner-bar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.as-owner-bar .material-symbols-outlined { font-size: 18px; }
.as-owner-bar a {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; flex-shrink: 0;
  background: #fff; color: var(--as-text) !important; font-weight: 600;
}
.as-owner-bar a:hover { background: var(--as-bg-2); }
.as-owner-bar a:focus-visible { outline-color: #fff; }
.as-owner #contacto { padding-bottom: 120px; }
@media (max-width: 479px) {
  .as-owner-bar { white-space: normal; line-height: 1.25; border-radius: 20px; font-size: 13px; gap: 8px; width: calc(100% - 24px); }
  .as-owner-bar > span:nth-child(2) { flex: 1; }
}
@keyframes as-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Toast ---------- */
.as-toast {
  position: fixed; left: 50%; top: 18px; z-index: 60; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--as-text); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--as-shadow-lg);
  animation: as-toast 0.4s var(--as-ease) both;
}
.as-toast[hidden] { display: none; }
.as-toast .material-symbols-outlined { font-size: 18px; color: #86efac; }
@keyframes as-toast { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Entradas ---------- */
@keyframes as-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes as-pop { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: none; } }
.as-rise { animation: as-rise 0.7s 0.1s var(--as-ease) both; }
.as-rise-2 { animation-delay: 0.2s; }
.as-rise-3 { animation-delay: 0.3s; }
.as-pop { animation: as-pop 0.8s var(--as-ease) both; }
.as-js .as-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--as-ease), transform 0.7s var(--as-ease); transition-delay: var(--d, 0ms); }
.as-js .as-reveal.is-in { opacity: 1; transform: none; }
.as-js .as-cell.as-reveal.is-in { transition-property: opacity, transform; }

/* =====================================================================
   404 — asesor_no_disponible.html
   ===================================================================== */
.as-na { flex: 1; display: grid; place-items: center; padding: 48px 16px; position: relative; overflow: hidden; }
.as-na .as-cover-mesh { inset: -10% -20% auto; height: 60%; opacity: 0.75;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.as-na-logo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.as-na-logo img { width: 28px; height: 28px; border-radius: 8px; }
.as-na-card {
  position: relative; z-index: 1; width: 100%; max-width: 480px; text-align: center;
  background: var(--as-card); border: 1px solid var(--as-border); border-radius: 26px;
  box-shadow: var(--as-shadow-lg); padding: 40px 24px 30px; display: grid; gap: 14px; justify-items: center;
}
@media (min-width: 560px) { .as-na-card { padding: 48px 44px 36px; } }
.as-na-card h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.as-na-card h1 .as-serif { font-size: 1.1em; }
.as-na-lead { color: var(--as-muted); font-size: 15.5px; line-height: 1.6; max-width: 38ch; }
.as-na-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.as-na-foot { position: relative; z-index: 1; margin-top: 22px; font-size: 13px; color: var(--as-muted); text-align: center; }
.as-na-wrap { display: grid; justify-items: center; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .as-js .as-reveal { opacity: 1; transform: none; }
  .as-cover-mesh { animation: none; }
}

/* ---------- Enlaces del asesor (redes, web) ---------- */
[data-red] { --red: var(--as-text); }
[data-red="instagram"] { --red: #d6286f; }
[data-red="facebook"]  { --red: #1877f2; }
[data-red="tiktok"]    { --red: #111111; }
[data-red="youtube"]   { --red: #e01e1e; }
[data-red="linkedin"]  { --red: #0a66c2; }
[data-red="x"]         { --red: #111111; }
[data-red="whatsapp"]  { --red: #15803d; }
[data-red="telegram"]  { --red: #1c8ad8; }
[data-red="threads"]   { --red: #111111; }
[data-red="pinterest"] { --red: #d01f2a; }
[data-red="maps"]      { --red: #d1452b; }
[data-red="web"]       { --red: var(--as-accent-ink); }

.as-links { margin-top: 18px; }
.as-links ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
@media (min-width: 900px) {
  .as-links { margin: 18px 0 0 calc(168px + 28px); }
  .as-links ul { justify-content: flex-start; }
}
.as-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--as-card); border: 1px solid var(--as-border);
  color: var(--as-text); font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.as-link-ico {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  color: var(--red); background: color-mix(in srgb, var(--red) 10%, #fff);
}
.as-link-ico svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .as-link:hover {
    border-color: color-mix(in srgb, var(--red) 40%, var(--as-border));
    box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--red) 60%, transparent);
    transform: translateY(-1px);
  }
}

.as-contact-links {
  position: relative; list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.as-link-round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  color: var(--red); background: var(--as-card); border: 1px solid var(--as-border);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.as-link-round svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .as-link-round:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .as-link, .as-link-round { transition: none; }
  .as-link:hover, .as-link-round:hover { transform: none; }
}
