/* =============================================================
   HABITA — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
@property --mesh-a { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --mesh-b { syntax: "<percentage>"; inherits: false; initial-value: 80%; }

:root {
  --bg:          #ececea;
  --bg-soft:     #f5f4f2;
  --glass:       rgba(255, 255, 255, 0.62);
  --glass-2:     rgba(255, 255, 255, 0.34);
  --glass-border:rgba(255, 255, 255, 0.75);
  --ink:         #1a1a1c;
  --ink-soft:    #48484c;
  --ink-mute:    #838388;
  --cream:       #fcfbfa;

  --accent:      #e0392c;   /* rojo — acento principal */
  --accent-ink:  #9c2118;   /* rojo oscuro — texto sobre fondo claro */
  --accent-2:    #2b2b2e;   /* negro cálido / carbón */
  --accent-3:    #8a8a8f;   /* gris medio */
  --danger:      #b8291c;

  --line:        rgba(26, 26, 28, 0.12);
  --line-soft:   rgba(26, 26, 28, 0.07);

  --radius-lg:   28px;
  --radius-md:   18px;
  --radius-sm:   10px;

  --shadow-soft: 0 20px 60px rgba(26, 26, 28, 0.10);
  --shadow-lift: 0 30px 70px rgba(26, 26, 28, 0.18), 0 10px 24px rgba(224, 57, 44, 0.12);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", var(--sans);

  --nav-h: 76px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. UTILITIES
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding-block: clamp(3.5rem, 7vw, 7rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.is-center { max-width: 620px; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lede { color: var(--ink-soft); font-size: 1.05rem; margin-top: .9rem; max-width: 54ch; }
em { font-family: var(--display); font-style: normal; color: var(--accent-ink); font-weight: 300; }

[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-1] { transition-delay: .06s; }
[data-reveal][data-reveal-2] { transition-delay: .12s; }
[data-reveal][data-reveal-3] { transition-delay: .18s; }
[data-reveal][data-reveal-4] { transition-delay: .24s; }

/* =============================================================
   4. TYPOGRAPHY
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
.page-hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
[data-detail-title] { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }

/* =============================================================
   5. COMPONENTS
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: .88rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26,26,28,0.08), 0 1px 3px rgba(26,26,28,0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-accent { background: var(--accent); color: var(--cream); }
.btn-accent2 { background: var(--accent-2); color: var(--cream); }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); box-shadow: none; }
.btn-outline:hover { border-color: var(--accent); box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .78rem; }
.btn-wa { background: #25d366; color: #fff; padding: .58rem 1.05rem; font-size: .82rem; box-shadow: 0 4px 14px rgba(37,211,102,0.22); }
.btn-wa:hover { box-shadow: 0 18px 40px rgba(37,211,102,0.3), 0 8px 18px rgba(26,26,28,0.12); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform; transition: transform .8s var(--ease-soft);
}

/* --- Glass surface --- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255,255,255,0.86); }
}

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(245, 244, 242, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link { position: relative; padding: .3rem 0; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-actions .btn { display: none; }
.hamburger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.hamburger svg { width: 20px; height: 20px; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-soft);
  padding: 6rem 1.5rem 3rem;
}
.nav-mobile[data-open="true"] { clip-path: inset(0 0 0 0); }
.nav-mobile a { display: block; padding: 1rem 0; font-family: var(--display); font-size: 1.7rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav-mobile .btn {
  display: flex; width: 100%; margin-top: 1.6rem; padding: .9rem 1.6rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; border-bottom: none;
}
.nav-mobile-close { position: absolute; top: 1.6rem; right: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,0.1); border-radius: 12px; z-index: 1; }

/* --- Badges / pills --- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.pill-venta { background: rgba(224,57,44,0.14); color: var(--accent-ink); }
.pill-alquiler-casa { background: rgba(43,43,46,0.10); color: var(--accent-2); }
.pill-alquiler-local { background: rgba(138,138,143,0.18); color: #55555a; }
.pill-terreno { background: rgba(107,142,35,0.16); color: #4a6b1a; }
.like-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink-soft); font-size: .85rem; font-weight: 700;
  transition: all .25s var(--ease-out); flex-shrink: 0;
}
.like-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.like-btn.is-liked { background: rgba(224,57,44,0.1); border-color: var(--accent); color: var(--accent-ink); }
.like-btn.is-liked svg { fill: var(--accent); stroke: var(--accent); }
.like-btn[disabled] { opacity: .6; cursor: default; }
.pill-featured { background: rgba(234,179,8,0.18); color: #92650a; }
.pill-featured svg { width: 12px; height: 12px; fill: #92650a; stroke: #92650a; }

/* --- Property card --- */
.prop-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  will-change: transform;
}
.prop-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.prop-art {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
}
.prop-art::before, .prop-art::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55;
}
.prop-art::before { width: 60%; aspect-ratio: 1; top: -18%; left: -10%; background: var(--art-a); }
.prop-art::after { width: 55%; aspect-ratio: 1; bottom: -20%; right: -12%; background: var(--art-b); }
.prop-art svg { position: relative; z-index: 2; width: 34%; height: 34%; color: rgba(255,255,255,0.92); }
.prop-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.prop-art-badges { position: absolute; top: .9rem; left: .9rem; right: .9rem; display: flex; justify-content: space-between; z-index: 3; }
.prop-featured-badge { position: absolute; top: .9rem; right: .9rem; width: 34%; max-width: 108px; z-index: 4; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); pointer-events: none; }
.prop-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.prop-price { font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.prop-title { font-size: 1.02rem; font-weight: 700; }
.prop-loc { font-size: .87rem; color: var(--ink-mute); display: flex; align-items: center; gap: .35rem; }
.prop-meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; color: var(--ink-soft); margin-top: .2rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); }
.prop-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.prop-meta svg { width: 15px; height: 15px; opacity: .65; }
.prop-actions { margin-top: .7rem; display: flex; gap: .5rem; }
.prop-actions .btn { flex: 1; min-width: 0; padding: .55rem .6rem; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.prop-actions svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Filter bar --- */
.filters {
  display: flex; flex-wrap: wrap; gap: .8rem; padding: 1.1rem; border-radius: var(--radius-md);
  margin-bottom: 2rem;
}
.filters select, .filters input {
  padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-soft); font-size: .9rem; min-width: 200px; flex: 1;
}
.filters .btn { flex-shrink: 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; align-items: center; }
.filter-tabs select {
  padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--glass-2); font-size: .85rem; font-weight: 600; color: var(--ink);
}
.crm-filter-row { margin-bottom: 1.2rem; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.crm-visible-select-wrap { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-mute); margin-left: auto; }
.crm-visible-select-wrap select {
  border: 1px solid var(--line-soft); border-radius: 8px; padding: .35rem .7rem; font-size: .82rem;
  background: var(--cream); font-family: inherit; color: var(--ink);
}
.crm-search-wrap {
  display: flex; align-items: center; gap: .5rem; flex: 1 1 220px; max-width: 320px;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--cream); color: var(--ink-mute);
}
.crm-search-wrap svg { flex-shrink: 0; }
.crm-search-wrap input {
  border: none; background: none; outline: none; font-size: .85rem; font-family: inherit; color: var(--ink); width: 100%;
}
.crm-search-wrap input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 640px) {
  [data-stats-type-tabs] { justify-content: center; }
  .crm-filter-row { gap: .6rem; }
  .crm-search-wrap { order: -1; flex-basis: 100%; max-width: none; }
  .crm-visible-select-wrap { margin-left: 0; }
  .filter-tab-msg { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: .3rem; }
}
.filter-tab {
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--glass-2); border: 1px solid var(--line-soft); color: var(--ink-soft);
  transition: all .3s var(--ease-out);
  white-space: nowrap; flex-shrink: 0;
}
.filter-tab.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter-tab-msg { border-color: rgba(184,41,28,0.35); color: var(--danger); }
.filter-tab-msg.is-active { background: var(--danger); color: #fff; border-color: var(--danger); }
.filter-tab-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: .3rem;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800;
}
.filter-tab-msg.is-active .filter-tab-count { background: rgba(255,255,255,0.25); }
.results-count { font-size: .9rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-mute); }

/* --- Grid --- */
.prop-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* --- Glass feature/pricing/testimonial cards --- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: rgba(255,255,255,0.85); }
}

.feature-card { display: flex; flex-direction: column; gap: .9rem; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff;
}
.feature-icon svg { width: 22px; height: 22px; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card.is-highlight { border: 1.5px solid var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  padding: .35rem .9rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.plan-name { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.plan-desc { color: var(--ink-mute); font-size: .88rem; margin-top: .2rem; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin: 1.2rem 0; }
.plan-price .amount { font-family: var(--display); font-size: 2.5rem; font-weight: 800; }
.plan-price .period { color: var(--ink-mute); font-size: .95rem; }
.plan-price-tax { color: var(--ink-mute); font-size: .68rem; font-weight: 600; }
.plan-features { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.6rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.plan-features svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.plan-note { font-size: .78rem; color: var(--ink-mute); margin-top: .9rem; line-height: 1.4; }
.plan-card-free { align-items: center; text-align: center; }
.plan-card-free .plan-features { align-items: center; }
.plan-card-free .plan-features li { justify-content: center; }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; text-align: left; font-weight: 700; font-size: 1rem;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .4s var(--ease-soft); }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-soft); }
.faq-a-inner { padding-bottom: 1.3rem; color: var(--ink-soft); font-size: .93rem; max-width: 62ch; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.stat-item { text-align: center; padding: 1.4rem .5rem; }
.stat-value { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--accent-ink); }
.stat-label { font-size: .85rem; color: var(--ink-mute); margin-top: .3rem; }

/* --- Testimonials --- */
.testi-card { display: flex; flex-direction: column; gap: 1.1rem; height: 100%; }
.testi-quote { color: var(--ink-soft); font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.5; }
.testi-who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.testi-avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; flex-shrink: 0;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi-name { font-weight: 700; font-size: .92rem; }
.testi-role { font-size: .82rem; color: var(--ink-mute); }

/* --- Forms --- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-soft); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.password-field-wrap { position: relative; display: block; width: 100%; }
.password-field-wrap input { padding-right: 2.6rem; width: 100%; }
.password-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: .3rem; margin: 0; cursor: pointer;
  color: var(--ink-mute); display: flex; align-items: center; justify-content: center;
}
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle:hover { color: var(--ink); }

/* --- Fotos de propiedades: desalentar descarga casual (clic derecho, arrastrar, guardar en móvil) --- */
img[src*="uploads/properties/"] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .6rem; margin-top: .8rem; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(20,20,22,0.65); color: #fff; border: none; display: grid; place-items: center; cursor: pointer;
}
.photo-thumb-remove svg { width: 13px; height: 13px; }
.photo-thumb-remove:hover { background: var(--danger); }
.photo-thumb-main-btn {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(20,20,22,0.65); color: #fff; border: none; display: grid; place-items: center; cursor: pointer;
}
.photo-thumb-main-btn svg { width: 13px; height: 13px; }
.photo-thumb-main-btn:hover { background: #92650a; }
.photo-thumb-main-badge {
  position: absolute; bottom: 4px; left: 4px; padding: .15rem .5rem; border-radius: 999px;
  background: rgba(234,179,8,0.92); color: #1a1a1c; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; gap: .2rem;
}
.photo-thumb-main-badge svg { width: 11px; height: 11px; fill: #1a1a1c; stroke: #1a1a1c; }

.video-preview { position: relative; margin-top: .8rem; max-width: 280px; }
.video-preview video { width: 100%; border-radius: var(--radius-sm); display: block; background: #000; }
.video-preview-remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(20,20,22,0.65); color: #fff; border: none; display: grid; place-items: center; cursor: pointer;
}
.video-preview-remove svg { width: 13px; height: 13px; }
.video-preview-remove:hover { background: var(--danger); }
button.detail-thumb.is-video { display: grid; place-items: center; background-color: var(--accent-2); }
button.detail-thumb.is-video svg { width: 34%; height: 34%; color: #fff; }

.cta-submit { position: relative; overflow: hidden; }
.cta-submit-label { display: inline-flex; align-items: center; gap: .5rem; transition: opacity .3s; }
.cta-submit.is-sending .cta-submit-label { opacity: 0; }
.cta-submit-spinner {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.cta-submit.is-sending .cta-submit-spinner { opacity: 1; }
.cta-submit-spinner::after {
  content: ""; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
  display: none; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-md);
  background: rgba(43,43,46,0.05); border: 1px solid rgba(43,43,46,0.15); color: var(--ink); margin-top: 1rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.form-error {
  display: none; padding: .9rem 1.1rem; border-radius: var(--radius-md);
  background: rgba(224,57,44,0.08); border: 1px solid rgba(224,57,44,0.3); color: var(--accent-ink);
  font-size: .88rem; margin-bottom: 1rem;
}
.form-error.is-visible { display: block; }
.dash-status:not(.active) { background: rgba(138,138,143,0.16); color: var(--ink-mute); }

/* --- Footer --- */
.footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--ink-mute); font-size: .9rem; margin-top: .8rem; max-width: 32ch; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; color: var(--ink-mute); }
.footer-col a { display: block; padding: .4rem 0; font-size: .92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--ink-mute); }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line-soft); display: grid; place-items: center; }
.footer-social svg { width: 17px; height: 17px; }

/* --- WhatsApp float --- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,0.38);
  transition: transform .4s var(--ease-soft);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 21px; height: 21px; }

.msg-float {
  position: fixed; right: 1.1rem; bottom: 4.7rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--danger); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(184,41,28,0.38);
  transition: transform .4s var(--ease-soft);
}
.msg-float:hover { transform: scale(1.08); }
.msg-float svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.msg-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--danger);
  animation: float-pulse 1.8s ease-out infinite; z-index: 0;
}
@keyframes float-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}
.msg-float-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center;
  display: block; box-sizing: border-box; border: 2px solid var(--cream); z-index: 1; font-variant-numeric: tabular-nums;
}

/* --- Marquee --- */
.marquee { overflow: hidden; position: relative; padding-block: 1.4rem; }
#categorias { padding-top: clamp(2rem, 4vw, 3rem); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track {
  display: inline-flex; gap: 2.6rem; white-space: nowrap; will-change: transform;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink-mute);
  animation: marqueeScroll 26s linear infinite;
}
.marquee-track span.dot { color: var(--accent); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   6. SECTIONS
   ============================================================= */

/* --- Hero mesh gradient (page-wide background) --- */
.hero-mesh {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-mesh::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(at var(--mesh-a) 30%, rgba(224,57,44,0.24) 0%, transparent 55%),
    radial-gradient(at 80% var(--mesh-b), rgba(43,43,46,0.22) 0%, transparent 55%),
    radial-gradient(at 45% 85%, rgba(138,138,143,0.20) 0%, transparent 55%);
  filter: blur(60px) saturate(140%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { --mesh-a: 20%; --mesh-b: 80%; transform: scale(1) rotate(0deg); }
  50%      { --mesh-a: 55%; --mesh-b: 40%; transform: scale(1.15) rotate(8deg); }
}

/* --- Hero (home) --- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 3rem; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; gap: 2.4rem; align-items: center; text-align: center; }
.hero-copy { width: 100%; min-width: 0; }

/* --- Hero: foto a pantalla completa de fondo --- */
.hero-photo-section { min-height: 560px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 63%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 22%, rgba(236,236,234,0.78) 42%, rgba(236,236,234,0.2) 68%, rgba(236,236,234,0.08) 100%);
}
@media (min-width: 960px) {
  .hero-photo-section { min-height: 640px; display: flex; align-items: center; }
  .hero-photo-section .hero-inner { width: 100%; }
  .hero-bg::after {
    background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 24%, rgba(236,236,234,0.88) 40%, rgba(236,236,234,0.3) 62%, rgba(236,236,234,0.03) 85%);
  }
}
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero-title { max-width: 15ch; }
.hero-sub { max-width: 46ch; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 1.08rem; }

.hero-search {
  width: 100%; max-width: 760px; margin-top: 1rem;
  border-radius: var(--radius-lg); padding: 1rem;
}
.hero-search-tabs { display: flex; gap: .4rem; margin-bottom: .9rem; overflow-x: auto; }
.hero-search input, .hero-search select {
  padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-soft); font-size: .95rem;
}
.hero-search-row { display: flex; flex-direction: column; gap: .7rem; }
.hero-search-row select { flex: 1; min-width: 0; }
.hero-search .btn { width: 100%; }

/* --- Categories --- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.cat-card {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem;
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.cat-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.cat-icon svg { width: 26px; height: 26px; }
.cat-icon img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.cat-card p { color: var(--ink-mute); font-size: .92rem; }
.cat-photo {
  margin-top: auto; display: block; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/9;
}
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-soft); }
.cat-card:hover .cat-photo img { transform: scale(1.06); }

/* --- Stats section --- */
.stats-band { border-radius: var(--radius-lg); padding: 2.2rem 1.5rem; }

/* --- How it works --- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; counter-reset: step; }
.step-item { position: relative; padding-left: 3.4rem; }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 12px;
  background: var(--ink); color: var(--cream); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.step-item h4 { margin-bottom: .3rem; }
.step-item p { color: var(--ink-mute); font-size: .9rem; }

/* --- Detail page --- */
.detail-gallery { display: grid; grid-template-columns: 1fr; gap: .6rem; align-content: start; }
.detail-hero-art { aspect-ratio: 16/10; max-height: 460px; border-radius: var(--radius-lg); position: relative; overflow: hidden; display: grid; place-items: center; }
.detail-hero-art svg { width: 22%; height: 22%; color: rgba(255,255,255,0.92); position: relative; z-index: 2; }
.detail-hero-art > [data-hero-slot] { width: 100%; height: 100%; }
.detail-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.detail-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); position: relative; overflow: hidden; display: grid; place-items: center; }
.detail-thumb svg { width: 30%; height: 30%; color: rgba(255,255,255,0.85); }
.detail-hero-art img, .detail-hero-art video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.85); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18); transition: background .2s, transform .2s;
}
.hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-nav svg { width: 20px; height: 20px; }
.hero-nav-prev { left: 14px; }
.hero-nav-next { right: 14px; }
@media (max-width: 640px) {
  .detail-hero-art { max-height: 320px; }
  .hero-nav { width: 34px; height: 34px; }
  .hero-nav svg { width: 17px; height: 17px; }
}
.detail-hero-art > [data-hero-slot] img { cursor: zoom-in; }
.modal-overlay.lightbox-overlay { background: rgba(15,15,17,0.94); z-index: 300; }
.lightbox-img { width: 90vw; height: 88vh; object-fit: contain; border-radius: 10px; display: block; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-overlay .hero-nav { background: rgba(255,255,255,0.12); color: #fff; }
.lightbox-overlay .hero-nav:hover { background: rgba(255,255,255,0.25); }

button.detail-thumb {
  background-size: cover; background-position: center; border: none; padding: 0;
  cursor: pointer; opacity: .65; transition: opacity .2s;
}
button.detail-thumb:hover { opacity: .9; }
button.detail-thumb.is-active { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.detail-layout {
  display: grid; grid-template-columns: 1fr; gap: 2.4rem;
  grid-template-areas: "content" "sidebar" "related";
}
.detail-content { grid-area: content; display: flex; flex-direction: column; gap: 2.4rem; min-width: 0; }
.detail-sidebar { grid-area: sidebar; min-width: 0; }
.detail-related { grid-area: related; }
.detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 1.6rem 0; }
.spec-item { padding: 1rem; border-radius: var(--radius-sm); background: var(--bg-soft); text-align: center; }
.spec-item svg { width: 22px; height: 22px; color: var(--accent); margin: 0 auto .4rem; }
.spec-item .v { font-weight: 800; font-family: var(--display); }
.spec-item .l { font-size: .78rem; color: var(--ink-mute); }
.agent-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.agent-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; overflow: hidden; }
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-card-info { min-width: 0; }
.agent-name { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-meta { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--ink-mute); margin-top: .15rem; flex-wrap: wrap; }
.agent-meta .dot { opacity: .6; }
.agent-meta svg { flex-shrink: 0; }
.price-box { margin-bottom: 1.4rem; }
.price-box .amount { font-family: var(--display); font-size: 2.1rem; font-weight: 800; }

/* --- Profile / dashboard --- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: flex; gap: .4rem; margin-bottom: 1.6rem; background: var(--bg-soft); padding: .35rem; border-radius: 999px; }
.auth-tab { flex: 1; padding: .7rem; border-radius: 999px; font-weight: 700; font-size: .88rem; text-align: center; color: var(--ink-mute); }
.auth-tab.is-active { background: var(--ink); color: var(--cream); }
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }

.dash-note {
  display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: rgba(43,43,46,0.06); border: 1px solid rgba(43,43,46,0.16); margin-bottom: 2rem; font-size: .87rem; color: var(--ink-soft);
}
.dash-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.dash-card { padding: 1.6rem; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.dash-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dash-filter-row { margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dash-filter-row select {
  padding: .6rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-soft); font-size: .85rem; font-weight: 600; color: var(--ink);
  max-width: 240px; width: 100%; flex: 1 1 180px;
}
.dash-filter-row select:focus { border-color: var(--accent); }
.dash-filter-row .filter-tab { flex-shrink: 0; }
@media (max-width: 480px) {
  .dash-head-actions { width: 100%; }
  .dash-head-actions .btn { flex: 1; }
  .dash-filter-row { justify-content: center; }
  .dash-filter-row select { flex: 1 1 100%; }
}
[data-my-properties] { max-height: 560px; overflow-y: auto; padding-right: .4rem; -webkit-overflow-scrolling: touch; }
.dash-listing { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.dash-listing:last-child { border-bottom: 0; }
.dash-listing-art { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; }
.dash-listing-art svg { width: 24px; height: 24px; color: #fff; }
.dash-listing-art img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.dash-listing-info { flex: 1 1 120px; min-width: 0; }
.dash-listing-name-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dash-listing-info .t { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.dash-listing-info .s { font-size: .8rem; color: var(--ink-mute); }
.dash-views { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--accent-ink); font-weight: 600; margin-top: .2rem; }
.dash-views svg { width: 13px; height: 13px; flex-shrink: 0; }
.dash-listing-actions {
  display: flex; gap: .35rem; flex-wrap: nowrap; flex-shrink: 0; margin-left: auto;
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.dash-listing-actions::-webkit-scrollbar { display: none; }
.dash-listing-actions > * { flex-shrink: 0; }
.team-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; font-size: .85rem;
}
.team-add-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.account-avatar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.account-avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.account-avatar-actions .dash-note { margin: 0; padding: .7rem .9rem; font-size: .8rem; }
.dash-icon-btn {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--ink-soft);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.dash-icon-btn:hover:not([disabled]) { background: var(--ink); color: var(--cream); }
.dash-icon-btn.is-danger:hover:not([disabled]) { background: var(--danger); color: #fff; }
.dash-icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.dash-status { font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }

.crop-viewport {
  width: 260px; height: 260px; max-width: 100%; margin: 0 auto; border-radius: 50%;
  overflow: hidden; position: relative; background: var(--bg-soft); touch-action: none; cursor: grab;
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; pointer-events: none; }
.crop-zoom-range { width: 100%; margin-top: 1.2rem; accent-color: var(--accent); }
.crop-hint { font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: .5rem; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(26,26,28,0.5);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: var(--cream); border-radius: var(--radius-md); padding: 1.6rem;
  box-shadow: var(--shadow-lift);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-head h3 { margin: 0; font-size: 1.15rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--ink-soft);
  font-size: 1.3rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.modal-close:hover { background: var(--ink); color: var(--cream); }

.crm-intro-box { max-width: 480px; }
.online-duration-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.online-duration-options .btn { width: 100%; }
.online-duration-options .btn:last-child { grid-column: 1 / -1; }
.crm-intro-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.crm-intro-list li {
  font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
  padding-left: 1.5rem; position: relative;
}
.crm-intro-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-weight: 800;
}
.crm-intro-list li strong { color: var(--ink); }
.crm-intro-checkbox {
  display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-soft);
  cursor: pointer; padding-top: .8rem; border-top: 1px solid var(--line-soft);
}
.crm-intro-checkbox input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

@media (max-width: 480px) {
  .modal-overlay { padding: .7rem; }
  .crm-intro-box { padding: 1.1rem; max-height: 85vh; }
  .crm-intro-box .modal-head { margin-bottom: .8rem; }
  .crm-intro-box .modal-head h3 { font-size: 1rem; }
  .crm-intro-box .lede { font-size: .85rem; margin: 0 0 .8rem; }
  .crm-intro-list { gap: .6rem; margin-bottom: .8rem; }
  .crm-intro-list li { font-size: .8rem; line-height: 1.4; padding-left: 1.25rem; }
  .crm-intro-checkbox { font-size: .78rem; padding-top: .6rem; }
}

/* --- Estadísticas --- */
.stats-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stats-tile { padding: 1.3rem 1.4rem; }
.stats-tile .l { font-size: .82rem; color: var(--ink-mute); }
.stats-tile .v { font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin-top: .2rem; }
.stats-tile .growth { font-size: .78rem; font-weight: 700; margin-top: .4rem; display: block; }
.stats-prop-card { padding: 1.4rem 1.5rem; }
.agent-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.agent-stats-grid .stats-tile { padding: .9rem .8rem; }
.agent-stats-grid .stats-tile .v { font-size: 1.4rem; }
.interest-score { font-family: var(--display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.stats-meta-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }
.stats-crm-link { font-weight: 700; color: var(--accent-ink); margin-left: .2rem; }
.stats-crm-link:hover { text-decoration: underline; }
.stats-photo { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.stats-photo img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
@media (min-width: 720px) {
  .stats-summary-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- CRM --- */
.crm-board { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.crm-column { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 1.1rem; }
.crm-column-head {
  display: flex; justify-content: space-between; align-items: center; font-family: var(--display);
  font-weight: 800; font-size: 1.02rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-soft);
}
.crm-count { background: var(--ink); color: var(--cream); font-size: .74rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; }
.crm-column-body {
  display: flex; flex-direction: column; gap: .8rem; min-height: 12px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: .35rem;
}
.crm-card { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.crm-card-name { font-weight: 700; font-size: .92rem; }
.crm-card-meta { font-size: .78rem; color: var(--ink-mute); margin-top: .15rem; }
.crm-card-msg { font-size: .84rem; color: var(--ink-soft); margin-top: .6rem; }
.crm-card-notes {
  width: 100%; font-size: .8rem; margin-top: .7rem; padding: .5rem .6rem; border-radius: 8px;
  border: 1px solid var(--line-soft); resize: vertical; font-family: inherit; background: var(--bg-soft);
}
.crm-card-actions { display: flex; align-items: center; gap: .35rem; margin-top: .8rem; flex-wrap: wrap; }
.crm-card-actions .btn-wa { padding: .4rem .8rem; font-size: .76rem; flex: 1; justify-content: center; }
.crm-card-actions .btn-wa svg { width: 15px; height: 15px; flex-shrink: 0; }
.dash-icon-btn.has-unread {
  position: relative; color: var(--danger); border-color: rgba(184,41,28,0.35); background: rgba(184,41,28,0.08);
}
.dash-icon-btn.has-unread:hover:not([disabled]) { background: var(--danger); color: #fff; }
.dash-icon-btn.has-unread::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--cream);
}
@media (min-width: 860px) {
  .crm-board { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
.trial-banner { margin-bottom: 1.6rem; }
.glass-card.trial-banner { background: var(--accent); border-color: var(--accent); color: #fff; }
.trial-banner h3 { color: #fff; }
.trial-banner .lede { color: rgba(255,255,255,0.88); }
.trial-banner .btn-ghost { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); color: #fff; }
.trial-banner .btn-ghost:hover { background: rgba(255,255,255,0.28); }
.trial-banner .btn-accent { background: #fff; color: var(--accent-ink); border-color: #fff; }
.trial-banner .btn-accent:hover { background: rgba(255,255,255,0.88); }
.trial-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.trial-plan-card {
  display: flex; flex-direction: column; gap: .5rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 1.1rem; background: var(--bg-soft); color: var(--ink);
}
.trial-plan-name { font-family: var(--display); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.trial-plan-price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.trial-plan-price span { font-size: .74rem; font-weight: 600; color: var(--ink-mute); }
.trial-plan-card p { font-size: .82rem; color: var(--ink-soft); margin: 0; flex: 1; }
.dash-status.active { background: rgba(43,43,46,0.10); color: var(--accent-2); }
.dash-status.is-expired { background: rgba(184,41,28,0.12); color: var(--danger); }
.dash-expiry-warning { font-size: .76rem; font-weight: 700; color: #c98a12; margin-top: .3rem; }
.dash-expiry-warning.is-expired { color: var(--danger); }
.expiry-modal-item {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .8rem .9rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-soft);
}
.expiry-modal-item .t { font-weight: 700; font-size: .88rem; }
.expiry-modal-item .s { font-size: .78rem; color: var(--ink-mute); margin-top: .15rem; }
.dash-plan-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin: .6rem 0 1rem; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); border-radius: 999px; }

/* --- Final CTA --- */
.final-cta { border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.final-cta-actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.8rem; align-items: center; }

/* --- Page header (interior pages) --- */
.page-header { padding-top: calc(var(--nav-h) + 2.4rem); padding-bottom: 2rem; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }

.crm-header-actions { display: flex; align-items: flex-start; flex-shrink: 0; margin-top: .3rem; }
.status-toggle-row { display: flex; align-items: center; gap: .4rem; justify-content: flex-end; }
.status-toggle-row .crm-help-btn { order: 2; }
.status-toggle-row .status-toggle { order: 1; }
.crm-help-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--ink-mute);
  flex-shrink: 0; cursor: pointer;
}
.crm-help-btn:hover { border-color: var(--line-soft); color: var(--ink); }
.status-toggle-wrap { flex-shrink: 0; text-align: right; }
.status-toggle-hint { font-size: .75rem; color: var(--ink-mute); margin-top: .4rem; }
@media (max-width: 640px) {
  .page-header-row { flex-direction: column; align-items: flex-start; }
  .crm-header-actions { margin-top: 1.1rem; align-self: stretch; }
  .status-toggle-wrap { text-align: left; width: 100%; }
  .status-toggle-row .crm-help-btn { order: 1; }
  .status-toggle-row .status-toggle { order: 2; }
  .status-toggle-row { justify-content: flex-start; }
}

.status-toggle {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--ink-soft); font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.status-toggle:hover:not([disabled]) { border-color: var(--ink); }
.status-toggle .status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-mute); flex-shrink: 0; }
.status-toggle.is-online { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.35); color: #1e9e56; }
.status-toggle.is-online .status-dot { background: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,0.18); }

.status-badge {
  display: none; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); color: var(--ink-mute); font-size: .76rem; font-weight: 700; flex-shrink: 0;
}
.status-badge.is-visible { display: inline-flex; }
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); flex-shrink: 0; }
.status-badge.is-online { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.35); color: #1e9e56; }
.status-badge.is-online::before { background: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,0.18); }

.chat-online-cta { position: relative; overflow: visible; white-space: normal; text-align: center; line-height: 1.3; }
.online-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #25d366; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6); animation: online-pulse 1.8s ease-out infinite;
}
@keyframes online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.unread-alert {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px;
  background: rgba(184,41,28,0.08); border: 1px solid rgba(184,41,28,0.35); color: var(--danger);
  font-weight: 700; font-size: .85rem; flex-shrink: 0; margin-top: .3rem;
}
.unread-alert:hover { background: var(--danger); color: #fff; }
.unread-alert:hover .unread-alert-dot { background: #fff; }
.unread-alert-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex-shrink: 0;
  animation: alert-pulse 1.8s ease-out infinite;
}
@keyframes alert-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184,41,28,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(184,41,28,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,41,28,0); }
}
@media (max-width: 640px) {
  .unread-alert { margin-top: 1.1rem; }
}

/* --- Chat interno (CRM) --- */
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.chat-messages {
  display: flex; flex-direction: column; gap: .5rem; max-height: 320px; overflow-y: auto;
  padding: .4rem .2rem; margin-bottom: .8rem; scroll-behavior: smooth;
}
.chat-bubble { max-width: 82%; padding: .6rem .9rem; border-radius: 16px; font-size: .87rem; line-height: 1.4; word-wrap: break-word; }
.chat-bubble-self { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.chat-bubble-other { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.chat-bubble-time { display: block; font-size: .68rem; opacity: .6; margin-top: .25rem; }
.chat-identity-fields { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-bottom: .8rem; }
@media (min-width: 420px) {
  .chat-identity-fields { grid-template-columns: 1fr 1fr; }
}
.chat-input-row { display: flex; align-items: flex-end; gap: .6rem; }
.chat-input-row textarea {
  flex: 1; resize: none; max-height: 90px; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-soft); font-family: inherit; font-size: .88rem;
}
.chat-input-row textarea:focus { border-color: var(--accent); }
.chat-send-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; transition: transform .2s var(--ease-out);
}
.chat-send-btn:hover:not([disabled]) { transform: scale(1.06); }
.chat-send-btn[disabled] { opacity: .5; cursor: not-allowed; }

.crm-chat-messages { display: flex; flex-direction: column; gap: .5rem; max-height: 45vh; overflow-y: auto; padding: .2rem; margin-bottom: .8rem; }
.lead-chat-phone { font-size: .8rem; color: var(--ink-mute); margin: .15rem 0 0; }
.chat-clear-btn {
  display: flex; align-items: center; gap: .35rem; width: fit-content; margin: 0 0 .7rem auto;
  font-size: .74rem; font-weight: 700; color: var(--ink-mute); padding: .2rem 0;
}
.chat-clear-btn:hover:not([disabled]) { color: var(--danger); }
.chat-clear-btn[disabled] { opacity: .5; cursor: not-allowed; }
.breadcrumbs { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumbs a:hover { color: var(--accent-ink); }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-search-row { flex-direction: row; flex-wrap: wrap; }
  .hero-search-row select { flex: 1 1 200px; }
  .hero-search-row .btn { flex: 1 1 100%; width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { text-align: left; align-items: flex-start; }
  .hero-title, .hero-sub { margin-inline: 0; }
  .hero-search { margin-inline: 0; }
  .footer-bottom { flex-direction: row; justify-content: center; }
}

@media (min-width: 720px) {
  .detail-specs { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn { display: inline-flex; }
  .hamburger { display: none; }
  .prop-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-related .prop-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .filters { flex-wrap: nowrap; }
  .hero { padding-top: calc(var(--nav-h) + 5rem); }
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .hero-copy { flex: 1; max-width: 560px; }
  .detail-layout {
    grid-template-columns: 1.6fr 1fr;
    grid-template-areas: "content sidebar" "related related";
  }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   9. REDUCED MOTION — only genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh::before { animation: none; }
  .marquee-track { animation-play-state: paused !important; }
}
