:root {
  --ink: #101019;
  --cyan: #189bad;
  --cyan-deep: #087788;
  --apricot: #fcd49e;
  --paper: #f8f7f3;
  --white: #ffffff;
  --muted: #6e7279;
  --line: rgba(16, 16, 25, 0.12);
  --shadow: 0 24px 70px rgba(16, 16, 25, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(16,16,25,.78);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--cyan); color: #fff; font-size: 13px; letter-spacing: .08em;
}
.brand-name { font-size: 14px; }
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a { padding: 11px 14px; border-radius: 12px; font-size: 13px; color: rgba(255,255,255,.8); transition: .2s ease; }
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-toggle { display: none; background: transparent; border: 0; width: 42px; height: 42px; border-radius: 12px; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: white; }

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  padding: 156px max(32px, calc((100vw - 1180px)/2)) 90px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
  background: var(--ink);
  color: #fff;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
}
.hero-orbit { position: absolute; border-radius: 999px; pointer-events: none; }
.orbit-one { width: 640px; height: 640px; right: -220px; top: -160px; border: 105px solid rgba(24,155,173,.9); }
.orbit-two { width: 460px; height: 460px; right: 60px; bottom: -310px; border: 78px solid var(--apricot); opacity: .9; }
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.eyebrow i { width: 26px; height: 2px; background: var(--apricot); border-radius: 99px; }
.eyebrow.dark { color: var(--muted); }
.eyebrow.dark i { background: var(--cyan); }
.hero h1 {
  max-width: 760px;
  margin: 22px 0 24px;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero h1 em { color: var(--apricot); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 20px; border-radius: 16px; font-weight: 800; font-size: 14px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: #fff; box-shadow: 0 12px 34px rgba(24,155,173,.28); }
.button-primary:hover { background: #1aabba; }
.button-ghost { border: 1px solid rgba(255,255,255,.18); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.07); }
.quick-contact { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.52); font-size: 12px; }
.quick-contact .dot { color: var(--apricot); }
.hero-visual { min-height: 520px; display: grid; place-items: center; }
.logo-card {
  position: relative;
  width: min(470px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 34px;
  border-radius: 54px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 40px 100px rgba(0,0,0,.38);
  transform: rotate(2deg);
}
.logo-card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(16,16,25,.08); border-radius: 44px; }
.logo-card img { width: 90%; position: relative; z-index: 2; }
.logo-halo { position: absolute; width: 110%; height: 110%; border-radius: 60px; background: linear-gradient(145deg, rgba(24,155,173,.5), rgba(252,212,158,.32)); filter: blur(42px); opacity: .6; z-index: -1; }
.floating-note { position: absolute; padding: 11px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(16,16,25,.72); backdrop-filter: blur(14px); font-size: 12px; font-weight: 700; box-shadow: 0 18px 30px rgba(0,0,0,.22); }
.floating-note span { color: var(--apricot); }
.note-one { left: -20px; top: 90px; }
.note-two { right: -38px; bottom: 90px; }

.intro-strip { padding: 24px 32px; text-align: center; background: var(--cyan); color: white; }
.intro-strip p { margin: 0; font-size: clamp(15px, 2vw, 19px); }
.intro-strip strong { color: var(--apricot); }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 720px; }
.section-heading h2, .contact-copy h2 { margin: 18px 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.section-heading p, .contact-copy p { margin: 0; max-width: 640px; color: var(--muted); line-height: 1.8; font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.service-card { position: relative; min-height: 330px; padding: 30px; border-radius: 30px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-card.featured { background: var(--ink); color: white; border-color: transparent; }
.service-card.featured p { color: rgba(255,255,255,.62); }
.card-number { position: absolute; right: 24px; top: 24px; color: rgba(16,16,25,.3); font-size: 12px; font-weight: 800; }
.featured .card-number { color: rgba(255,255,255,.34); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: rgba(24,155,173,.12); color: var(--cyan); font-size: 25px; font-weight: 800; }
.featured .card-icon { background: var(--apricot); color: var(--ink); }
.service-card h3 { margin: 52px 0 12px; font-size: 24px; letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.card-line { position: absolute; left: 30px; right: 30px; bottom: 30px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan) 0 46%, var(--apricot) 46% 70%, rgba(16,16,25,.08) 70%); }
.featured .card-line { background: linear-gradient(90deg, var(--cyan) 0 46%, var(--apricot) 46% 70%, rgba(255,255,255,.1) 70%); }

.statement { position: relative; overflow: hidden; min-height: 600px; padding: 110px max(32px, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; background: var(--ink); color: white; }
.statement-shape { position: absolute; width: 760px; height: 760px; right: -170px; top: -440px; border-radius: 50%; border: 100px solid var(--cyan); box-shadow: 0 0 0 85px rgba(252,212,158,.92); opacity: .94; }
.statement-content { position: relative; z-index: 2; max-width: 790px; }
.statement blockquote { margin: 22px 0; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -.05em; font-weight: 700; }
.statement-content p { max-width: 570px; color: rgba(255,255,255,.6); line-height: 1.8; }
.statement-pill { position: relative; z-index: 2; min-width: 250px; padding: 24px; border-radius: 24px; background: var(--apricot); color: var(--ink); box-shadow: var(--shadow); }
.statement-pill span { display: block; margin-bottom: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; opacity: .6; }
.statement-pill strong { font-size: 20px; letter-spacing: -.03em; }

.contact { padding-top: 90px; padding-bottom: 100px; }
.contact-panel { padding: 56px; border-radius: 38px; background: white; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr .9fr; gap: 60px; box-shadow: 0 30px 90px rgba(16,16,25,.08); }
.contact-copy h2 { font-size: clamp(38px, 4.4vw, 58px); }
.contact-actions { display: grid; align-content: center; gap: 12px; }
.contact-link { position: relative; display: grid; gap: 7px; padding: 22px 54px 22px 22px; border-radius: 20px; border: 1px solid var(--line); transition: transform .2s ease, background .2s ease; overflow: hidden; }
.contact-link::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cyan); }
.contact-link:nth-child(2)::before { background: var(--apricot); }
.contact-link:hover { transform: translateX(4px); background: #fafafa; }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-link strong { font-size: clamp(15px, 2vw, 19px); }
.contact-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--cyan); }

.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 44px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 20px; color: var(--muted); font-size: 12px; }
.site-footer div { display: grid; gap: 4px; }
.site-footer strong { color: var(--ink); font-size: 14px; }
.site-footer p { margin: 0; }

.whatsapp-fab { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; background: var(--cyan); box-shadow: 0 12px 38px rgba(24,155,173,.35); transition: transform .2s ease; }
.whatsapp-fab:hover { transform: translateY(-4px) rotate(-2deg); }
.whatsapp-fab svg { width: 29px; height: 29px; fill: white; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; gap: 40px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 460px; }
  .logo-card { width: min(430px, 88vw); }
  .cards { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .service-card h3 { margin-top: 34px; }
  .statement { grid-template-columns: 1fr; align-items: end; }
  .statement-pill { width: fit-content; }
  .contact-panel { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .site-header { top: 10px; width: calc(100% - 20px); padding: 0 14px; height: 62px; border-radius: 18px; }
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; right: 0; width: 210px; padding: 10px; border-radius: 18px; background: rgba(16,16,25,.96); border: 1px solid rgba(255,255,255,.1); display: none; flex-direction: column; align-items: stretch; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px; }
  .hero { min-height: auto; padding: 126px 22px 70px; }
  .hero h1 { font-size: clamp(44px, 13vw, 65px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 380px; }
  .logo-card { border-radius: 38px; padding: 24px; }
  .logo-card::before { border-radius: 30px; }
  .floating-note { font-size: 10px; }
  .note-one { left: -4px; top: 44px; }
  .note-two { right: -6px; bottom: 42px; }
  .section { width: min(100% - 36px, 1180px); padding: 78px 0; }
  .section-heading h2, .contact-copy h2 { font-size: 42px; }
  .statement { padding: 82px 22px; min-height: 650px; }
  .statement blockquote { font-size: 44px; }
  .statement-shape { width: 530px; height: 530px; right: -280px; top: -250px; border-width: 70px; box-shadow: 0 0 0 60px rgba(252,212,158,.92); }
  .contact-panel { padding: 28px; border-radius: 28px; }
  .site-footer { width: calc(100% - 36px); align-items: start; flex-direction: column; }
}

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

/* --- v4: navegación, redes sociales y mini chat --- */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  padding: 0 12px 0 14px;
}
.brand { min-width: max-content; gap: 10px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--cyan), var(--cyan-deep));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 13px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.48); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.brand-name { display: none; }
.main-nav {
  justify-self: center;
  gap: 2px;
  padding: 4px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}
.main-nav a { padding: 10px 13px; }
.main-nav a:hover { background: rgba(255,255,255,.09); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--apricot);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #ffdda9; }
.mobile-socials { display: none; }
.button-dark { margin-top: 28px; background: var(--ink); color: white; width: fit-content; }
.button-dark:hover { background: #20202b; }

.cards { grid-template-columns: repeat(6, 1fr); }
.service-card { grid-column: span 2; }
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }

.contact-side { display: grid; align-content: center; gap: 16px; }
.social-box { padding: 18px; border-radius: 22px; background: var(--ink); color: white; }
.social-title { display: block; margin: 1px 2px 13px; font-size: 11px; color: rgba(255,255,255,.58); }
.social-title strong { color: var(--apricot); }
.social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.social-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s ease, transform .2s ease;
}
.social-link:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.social-link svg { width: 22px; height: 22px; fill: var(--cyan); }
.social-link:nth-child(2) svg { fill: var(--apricot); }
.social-link span { min-width: 0; display: grid; }
.social-link strong { font-size: 12px; }
.social-link small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.46); font-size: 9px; }
.social-link b { font-size: 14px; color: rgba(255,255,255,.36); }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; }
.footer-socials { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.footer-socials a { transition: color .2s ease; }
.footer-socials a:hover { color: var(--cyan); }

.chat-launcher {
  position: fixed;
  z-index: 59;
  right: 20px;
  bottom: 91px;
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(16,16,25,.93);
  color: white;
  box-shadow: 0 15px 45px rgba(16,16,25,.24);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.chat-launcher:hover { transform: translateY(-3px); background: #1b1b26; }
.chat-launcher-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 5px rgba(252,212,158,.11); }

.chat-panel {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 151px;
  width: min(390px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid rgba(16,16,25,.1);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(16,16,25,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header {
  min-height: 78px;
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: white;
}
.chat-header > div { display: grid; gap: 5px; }
.chat-header strong { font-size: 16px; letter-spacing: -.02em; }
.chat-status { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.56); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  font-family: inherit; font-size: 25px; font-weight: 400; line-height: 1;
  cursor: pointer;
}
.chat-body { padding: 17px; }
.chat-message { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.chat-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--cyan); color: white; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.chat-message p { margin: 0; padding: 11px 13px; border-radius: 5px 16px 16px 16px; background: #f3f4f3; color: #4d5157; font-size: 12px; line-height: 1.55; }
.chat-topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.chat-topics button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #565b61;
  font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.2;
  cursor: pointer;
  transition: .18s ease;
}
.chat-topics button:hover, .chat-topics button.selected { border-color: var(--cyan); background: rgba(24,155,173,.09); color: var(--cyan-deep); }
.chat-field { display: grid; gap: 7px; }
.chat-field > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.chat-field textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: #fbfbfa;
  color: var(--ink);
  font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chat-field textarea:focus { border-color: rgba(24,155,173,.7); box-shadow: 0 0 0 3px rgba(24,155,173,.09); }
.chat-send {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--cyan);
  color: white;
  font-family: inherit; font-size: 12px; font-weight: 800; line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.chat-send:hover { transform: translateY(-1px); background: var(--cyan-deep); }
.chat-note { margin: 9px 4px 1px; color: #8b8e93; font-size: 9px; line-height: 1.45; text-align: center; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-cta { display: none; }
  .cards { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 10px 0 12px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 12px; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav {
    top: 72px;
    right: 0;
    width: min(270px, calc(100vw - 20px));
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(16,16,25,.97);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px; }
  .mobile-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding-top: 7px; margin-top: 5px; border-top: 1px solid rgba(255,255,255,.08); }
  .mobile-socials a { background: rgba(255,255,255,.05); text-align: center; }
  .social-links { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 13px; align-items: start; }
  .chat-launcher { right: 12px; bottom: 85px; max-width: calc(100vw - 90px); min-height: 44px; padding: 0 13px; }
  .chat-panel { right: 12px; bottom: 140px; width: calc(100vw - 24px); max-height: calc(100vh - 160px); overflow-y: auto; border-radius: 22px; }
  .whatsapp-fab { right: 12px; bottom: 14px; }
}


/* --- v6: correcciones de navegación y selección del mini chat --- */
#inicio, #soluciones, #propiedades, #enfoque, #contacto { scroll-margin-top: 105px; }

.chat-topics button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.chat-topics button.selected {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 7px 18px rgba(24,155,173,.20);
}

.chat-topics button.selected::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.chat-selection {
  min-height: 18px;
  margin: -4px 2px 12px;
  color: var(--cyan-deep);
  font-size: 10px;
  font-weight: 700;
}


/* --- Servicios destacados para propietarios e inversionistas --- */
.client-paths { padding-top: 30px; }
.client-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
}
.client-path-card {
  position: relative;
  min-height: 470px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 36px;
}
.client-path-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -160px;
  top: -150px;
  border: 48px solid rgba(252,212,158,.38);
  border-radius: 50%;
  pointer-events: none;
}
.client-path-sell {
  background: #fff;
  border: 1px solid var(--line);
}
.client-path-sell::after { border-color: rgba(24,155,173,.08); }
.client-path-invest {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 26px 70px rgba(24,155,173,.18);
}
.client-path-kicker {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .58;
}
.client-path-card h3 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 20px 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.client-path-card p {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.client-path-invest p { color: rgba(255,255,255,.76); }
.client-path-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 30px 0 36px;
  padding: 0;
  list-style: none;
}
.client-path-card li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  font-weight: 700;
}
.client-path-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.client-path-invest li::before { color: var(--apricot); }
.client-path-card .button {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--apricot); }

@media (max-width: 980px) {
  .client-paths-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .client-paths { padding-top: 10px; }
  .client-paths-grid { margin-top: 34px; }
  .client-path-card { min-height: auto; padding: 30px 24px; border-radius: 28px; }
  .client-path-card .button { width: 100%; }
}


/* --- Propiedades disponibles --- */
.properties { padding-top: 72px; }
.properties-list { display: grid; gap: 34px; margin-top: 54px; }
.property-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16,16,25,.08);
}
.property-card-alt { background: var(--ink); color: #fff; border-color: transparent; }
.property-gallery { min-width: 0; padding: 16px; background: #ecece8; }
.property-card-alt .property-gallery { background: rgba(255,255,255,.055); }
.property-main-photo {
  position: relative;
  width: 100%;
  height: 470px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #ddd;
  cursor: zoom-in;
}
.property-main-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.property-main-photo:hover img { transform: scale(1.025); }
.photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(16,16,25,.78);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
}
.property-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 8px; }
.property-thumbs button {
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  opacity: .72;
  cursor: zoom-in;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.property-thumbs button:hover, .property-thumbs button.active { opacity: 1; border-color: var(--cyan); transform: translateY(-1px); }
.property-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.property-content { padding: 44px 44px 42px; display: flex; flex-direction: column; }
.property-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.property-code { font-size: 11px; font-weight: 800; letter-spacing: .13em; color: var(--cyan-deep); }
.property-card-alt .property-code { color: var(--apricot); }
.property-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.property-card-alt .property-status { color: rgba(255,255,255,.55); }
.property-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(24,155,173,.1); }
.property-location { color: var(--cyan-deep); font-size: 12px; font-weight: 800; line-height: 1.5; }
.property-card-alt .property-location { color: var(--apricot); }
.property-content h3 { margin: 12px 0 13px; font-size: clamp(31px, 3.3vw, 46px); line-height: 1.04; letter-spacing: -.045em; }
.property-summary { margin: 0; color: var(--muted); line-height: 1.72; font-size: 14px; }
.property-card-alt .property-summary { color: rgba(255,255,255,.65); }
.property-price { margin: 28px 0 18px; padding: 19px 21px; border-radius: 19px; background: rgba(24,155,173,.09); display: grid; gap: 4px; }
.property-card-alt .property-price { background: rgba(252,212,158,.11); }
.property-price small { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.property-card-alt .property-price small { color: rgba(255,255,255,.5); }
.property-price strong { font-size: 28px; letter-spacing: -.035em; }
.property-price-consult strong { color: var(--apricot); }
.property-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-card-alt .property-facts { border-color: rgba(255,255,255,.12); }
.property-facts > div { padding: 17px 10px 17px 0; display: grid; gap: 5px; }
.property-facts small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.property-card-alt .property-facts small { color: rgba(255,255,255,.43); }
.property-facts strong { font-size: 13px; }
.property-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 22px 0 30px; padding: 0; list-style: none; }
.property-features li { position: relative; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.property-card-alt .property-features li { color: rgba(255,255,255,.63); }
.property-features li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.property-card-alt .property-features li::before { background: var(--apricot); }
.property-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.property-gallery-link { min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; background: transparent; color: inherit; font-family: inherit; font-weight: 800; cursor: pointer; }
.property-card-alt .property-gallery-link { border-color: rgba(255,255,255,.18); }
.property-gallery-link:hover { background: rgba(24,155,173,.08); }
.properties-note { max-width: 900px; margin: 24px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.property-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px 72px;
  background: rgba(8,8,14,.94);
  backdrop-filter: blur(12px);
}
.property-lightbox.open { display: flex; }
.lightbox-stage { width: min(1120px, 88vw); height: min(80vh, 820px); margin: 0; display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 12px; }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 18px; }
.lightbox-stage figcaption { color: rgba(255,255,255,.65); text-align: center; font-size: 11px; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(255,255,255,.09); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.lightbox-close { top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 16px; font-size: 28px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border-radius: 18px; font-size: 38px; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--cyan); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .property-card { grid-template-columns: 1fr; }
  .property-card-alt { background: #fff; color: var(--ink); }
  .property-card-alt .property-gallery { background: #ecece8; }
  .property-card-alt .property-code { color: var(--cyan-deep); }
  .property-card-alt .property-status { color: var(--muted); }
  .property-card-alt .property-location { color: var(--cyan-deep); }
  .property-card-alt .property-summary { color: var(--muted); }
  .property-card-alt .property-price { background: rgba(24,155,173,.09); }
  .property-card-alt .property-price small { color: var(--muted); }
  .property-card-alt .property-facts { border-color: var(--line); }
  .property-card-alt .property-facts small { color: var(--muted); }
  .property-card-alt .property-features li { color: var(--muted); }
  .property-card-alt .property-features li::before { background: var(--cyan); }
  .property-card-alt .property-gallery-link { border-color: var(--line); }
  .property-main-photo { height: 520px; }
}

@media (max-width: 720px) {
  .properties { padding-top: 52px; }
  .properties-list { margin-top: 34px; gap: 24px; }
  .property-card { border-radius: 28px; }
  .property-gallery { padding: 9px; }
  .property-main-photo { height: 315px; border-radius: 21px; }
  .property-thumbs { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .property-thumbs::-webkit-scrollbar { display: none; }
  .property-thumbs button { flex: 0 0 78px; height: 58px; border-radius: 10px; }
  .property-content { padding: 29px 23px 27px; }
  .property-content h3 { font-size: 34px; }
  .property-facts { grid-template-columns: 1fr 1fr; }
  .property-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .property-facts > div { padding: 14px 12px 14px 0; }
  .property-features { grid-template-columns: 1fr; }
  .property-actions { display: grid; grid-template-columns: 1fr; }
  .property-actions .button, .property-gallery-link { width: 100%; }
  .property-lightbox { padding: 64px 12px 76px; }
  .lightbox-stage { width: 100%; height: 75vh; }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; width: 50px; height: 50px; border-radius: 15px; }
  .lightbox-prev { left: calc(50% - 58px); }
  .lightbox-next { right: calc(50% - 58px); }
}


/* Página independiente de propiedades */
.main-nav a.nav-active { background: rgba(255,255,255,.10); color: #fff; }
.properties-page { background: var(--paper); }
.properties-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 170px max(32px, calc((100vw - 1180px)/2)) 90px;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
}
.properties-page-orbit {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -210px;
  top: -260px;
  border-radius: 50%;
  border: 92px solid rgba(24,155,173,.9);
  box-shadow: 0 0 0 68px rgba(252,212,158,.92);
  opacity: .92;
}
.properties-page-copy { position: relative; z-index: 2; max-width: 840px; }
.properties-page-copy h1 {
  margin: 22px 0 22px;
  max-width: 820px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .99;
  letter-spacing: -.055em;
}
.properties-page-copy h1 em { color: var(--apricot); font-style: normal; }
.properties-page-copy p { max-width: 680px; margin: 0 0 30px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.8; }
.properties-page .properties { padding-top: 90px; }
.properties-page .properties .section-heading { max-width: 760px; }
.properties-contact-cta {
  margin-top: 20px;
  margin-bottom: 100px;
  padding: 46px 50px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 24px 70px rgba(16,16,25,.07);
}
.properties-contact-cta h2 { margin: 14px 0 10px; max-width: 690px; font-size: clamp(34px, 4vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.properties-contact-cta p { margin: 0; max-width: 650px; color: var(--muted); line-height: 1.7; }
.properties-contact-cta .button { flex: 0 0 auto; }

@media (max-width: 720px) {
  .properties-page-hero { min-height: 470px; padding: 132px 22px 66px; }
  .properties-page-orbit { width: 420px; height: 420px; right: -250px; top: -190px; border-width: 62px; box-shadow: 0 0 0 46px rgba(252,212,158,.92); }
  .properties-page-copy h1 { font-size: clamp(43px, 12vw, 62px); }
  .properties-page .properties { padding-top: 68px; }
  .properties-contact-cta { width: calc(100% - 36px); margin-bottom: 72px; padding: 30px 24px; flex-direction: column; align-items: stretch; }
  .properties-contact-cta .button { width: 100%; }
}


/* --- Bilingual language switch --- */
.site-header { grid-template-columns: auto 1fr auto auto; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-switch {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.language-switch a {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 9px; color: rgba(255,255,255,.65); font-size: 11px;
  font-weight: 800; letter-spacing: .05em; transition: .2s ease;
}
.language-switch a:hover { color: #fff; background: rgba(255,255,255,.08); }
.language-switch a.active { background: var(--apricot); color: var(--ink); }
@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .header-actions .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 7px; }
  .header-actions { justify-self: end; }
  .language-switch { padding: 2px; border-radius: 11px; }
  .language-switch a { min-width: 31px; height: 31px; padding: 0 6px; font-size: 10px; }
}

/* --- v12: identidad visual actualizada desde el arte vectorial oficial --- */
.brand-mark {
  width: 42px;
  height: 42px;
  padding: 5px;
  overflow: hidden;
  background: #fff;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(16,16,25,.08), 0 5px 18px rgba(0,0,0,.15);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-card {
  padding: 30px;
}
.logo-card img {
  width: 96%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 720px) {
  .brand-mark { width: 40px; height: 40px; padding: 5px; }
  .logo-card { padding: 22px; }
  .logo-card img { width: 98%; }
}
