/* ===========================================================================
   Alka Inmobiliaria — diseño público (inmobiliaria online)
   Se carga después de style.css (que queda para el panel y componentes heredados).
   Tipografías: Bricolage Grotesque (títulos) + DM Sans (texto), autoalojadas.
   =========================================================================== */

:root {
  --brand: #13284b;
  --brand-2: #24477f;
  --brand-dark: #0a1630;
  --brand-ink: #060e1f;
  --mint: #f3e3c3;
  --mint-2: #fbf4e6;
  --sand: #f6f1e9;
  --accent: #f0a531;          /* dorado del logo, en versión intensa */
  --accent-soft: #fdeccb;
  --ink: #0c1527;
  --slate: #4a5468;
  --muted: #5f6779;
  --line: #ebe5d8;
  --bg: #ffffff;
  --bg-soft: #f8f4ec;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --shadow-soft: 0 24px 60px -24px rgba(6,14,31, .25);
  --shadow-card: 0 2px 4px rgba(6,14,31, .04), 0 18px 40px -18px rgba(6,14,31, .18);
  /* compatibilidad con style.css */
  --red: var(--brand); --red-dark: var(--brand-dark); --red-soft: var(--mint-2);
  --radius: var(--r); --radius-sm: var(--r-sm);
}

body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .display, .sx-display { font-family: var(--font-display); color: var(--ink); font-weight: 600; letter-spacing: -.025em; font-variation-settings: "wdth" 100; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.06; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; }
.display { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 600; letter-spacing: -.035em; }
p { line-height: 1.65; }
.lead { color: var(--slate); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; }
::selection { background: var(--brand); color: #fff; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Minititulares: solo la primera letra en mayúscula (sin versalitas) */
.eyebrow, .sx-kicker, .area-eyebrow, .footer-h, .faq-nav-title, .filters label, .hero-search label, .spec .spec-lbl, .blog-cat {
  text-transform: none !important; letter-spacing: 0 !important;
}
.eyebrow, .sx-kicker {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--brand);
}
.eyebrow::before, .sx-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.sx-kicker--light { color: #f3dcae; }
.sx-kicker--light::before { box-shadow: 0 0 0 4px rgba(240,165,49, .25); }

.sx-container, .container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--slate); font-size: 1.12rem; margin-top: 14px; max-width: 640px; }
.section-head.center p { margin-inline: auto; }

/* ---------- Botones ---------- */
.sx-btn, .btn { --bg: var(--brand); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.sx-btn::after, .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-dark); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.sx-btn:hover::after, .btn-primary:hover::after { transform: none; }
.sx-btn:hover, .btn:hover { box-shadow: 0 14px 30px -12px rgba(10,22,48, .55); }
.sx-btn svg, .btn svg { width: 18px; height: 18px; }
.sx-btn--sm, .btn-sm { padding: 11px 18px; font-size: .9rem; }
.sx-btn--lg, .btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.sx-btn--light { --bg: #fff; --fg: var(--brand-ink); }
.sx-btn--light::after { background: var(--accent); }
.sx-btn--light:hover { color: #fff; }
.sx-btn--accent { --bg: var(--accent); --fg: #fff; }
.sx-btn--ghost-light { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.sx-btn--ghost-light::after { background: rgba(255,255,255,.16); }
.sx-btn--outline, .btn-outline { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.sx-btn--outline::after, .btn-outline::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mint-2); transform: scale(.4); opacity: 0; border-radius: inherit; transition: .4s var(--ease); }
.sx-btn--outline:hover::after, .btn-outline:hover::after { transform: none; opacity: 1; }
.btn-primary { --bg: var(--brand); --fg: #fff; }
.btn-dark { --bg: var(--ink); --fg: #fff; }

/* ---------- Cabecera ---------- */
.topbar { display: none; }
.sx-header { position: sticky; top: 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s, transform .45s var(--ease); background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(10,22,48,.06); }
.sx-header-inner { width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 28px; height: 78px; }
.sx-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.sx-logo-mark { width: 42px; height: 42px; transition: transform .6s var(--ease); }
.sx-logo:hover .sx-logo-mark { transform: rotate(-8deg) scale(1.06); }
.sx-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.sx-logo-text b { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.03em; font-weight: 700; }
.sx-logo-text small { font-size: .78rem; color: var(--brand); font-weight: 600; }
.sx-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sx-nav > a { position: relative; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .25s, background .25s; }
.sx-nav > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.sx-nav > a:hover::after, .sx-nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.sx-nav-mobile-only { display: none !important; }
.sx-header-cta { display: flex; align-items: center; gap: 14px; }
.sx-link-contact { color: var(--ink); text-decoration: none; font-weight: 500; }
.sx-header-cta .sx-btn--light { --bg: var(--brand); --fg: #fff; }
.sx-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.sx-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.sx-burger span:first-child { top: 18px; } .sx-burger span:last-child { top: 26px; }
body.nav-open .sx-burger span:first-child { top: 22px; transform: rotate(45deg); }
body.nav-open .sx-burger span:last-child { top: 22px; transform: rotate(-45deg); }
.sx-header.is-hidden { transform: translateY(-100%); }

/* En la portada la cabecera va transparente sobre el vídeo hasta hacer scroll */
.is-home .sx-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .sx-header:not(.is-scrolled) .sx-logo, .is-home .sx-header:not(.is-scrolled) .sx-nav > a, .is-home .sx-header:not(.is-scrolled) .sx-link-contact { color: #fff; }
.is-home .sx-header:not(.is-scrolled) .sx-logo-text small { color: #f3dcae; }
.is-home .sx-header:not(.is-scrolled) .sx-header-cta .sx-btn--light { --bg: #fff; --fg: var(--brand-ink); }
.is-home .sx-header.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-color: rgba(10,22,48,.06); box-shadow: 0 10px 30px -20px rgba(0,0,0,.3); }

@media (max-width: 1080px) {
  .sx-burger { display: block; }
  .sx-header-cta { margin-left: auto; }
  /* Sin backdrop-filter: si no, la cabecera recorta el menú a pantalla completa */
  .sx-header, .is-home .sx-header.is-scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .sx-header { background: rgba(255,255,255,.97); }
  body.nav-open .sx-header { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
  body.nav-open .sx-logo-text b { color: #fff; }
  .sx-link-contact { display: none; }
  .sx-nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; padding: 100px 28px 40px;
    background: var(--brand-ink); clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .7s var(--ease); margin: 0; }
  body.nav-open .sx-nav { clip-path: circle(150% at calc(100% - 44px) 40px); }
  .sx-nav > a { color: #fff !important; font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 600; padding: 8px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .sx-nav > a::after { display: none; }
  body.nav-open .sx-nav > a { opacity: 1; transform: none; }
  body.nav-open .sx-nav > a:nth-child(2) { transition-delay: .05s; } body.nav-open .sx-nav > a:nth-child(3) { transition-delay: .1s; }
  body.nav-open .sx-nav > a:nth-child(4) { transition-delay: .15s; } body.nav-open .sx-nav > a:nth-child(5) { transition-delay: .2s; }
  body.nav-open .sx-nav > a:nth-child(6) { transition-delay: .25s; } body.nav-open .sx-nav > a:nth-child(7) { transition-delay: .3s; }
  .sx-nav-mobile-only { display: flex !important; }
  .sx-nav-contact { flex-direction: column; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
  .sx-nav-contact a { color: #f3dcae; display: flex; gap: 10px; align-items: center; text-decoration: none; }
  body.nav-open .sx-logo, body.nav-open .sx-logo-text small { color: #fff !important; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .sx-header-cta .sx-btn { display: none; }
  .sx-header-inner { height: 68px; }
  .sx-logo-mark { width: 38px; height: 38px; }
}

/* ---------- Hero con slider (portada) ---------- */
.sx-hero { position: relative; height: 100svh; min-height: 640px; max-height: 1000px; overflow: hidden; color: #fff; background: var(--brand-ink); }
.sx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.sx-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; z-index: 1; }
.sx-slide-media { position: absolute; inset: 0; overflow: hidden; }
.sx-slide-media video, .sx-slide-media img, .sx-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.sx-slide.is-active .sx-slide-media video, .sx-slide.is-active .sx-slide-media img, .sx-slide.is-active .sx-scene { transform: scale(1); }
.sx-slide-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(5,12,28,.55) 0%, rgba(5,12,28,.1) 35%, rgba(5,12,28,.25) 60%, rgba(5,12,28,.85) 100%),
  linear-gradient(90deg, rgba(5,12,28,.55), rgba(5,12,28,0) 65%); }

/* Escenas animadas (se ven mientras no haya vídeo o si el vídeo no carga) */
.sx-scene { background: radial-gradient(120% 90% at 80% 10%, var(--sc2, #24477f) 0%, transparent 55%), radial-gradient(90% 80% at 10% 90%, var(--sc3, #f0a531) 0%, transparent 50%), var(--sc1, #0a1630); }
.sx-scene .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; animation: sx-float 18s ease-in-out infinite alternate; }
.sx-scene .blob.b1 { width: 46vw; height: 46vw; left: -8vw; top: -12vw; background: var(--sc2, #24477f); }
.sx-scene .blob.b2 { width: 34vw; height: 34vw; right: -6vw; bottom: -10vw; background: var(--sc3, #f0a531); animation-duration: 22s; }
.sx-scene .blob.b3 { width: 22vw; height: 22vw; left: 45vw; top: 20vh; background: #f5c15d; animation-duration: 26s; opacity: .3; }
.sx-scene .skyline { position: absolute; top: auto; left: -5%; right: -5%; bottom: -2px; width: 110%; height: min(26vh, 22vw); object-fit: cover; object-position: bottom; opacity: .28; filter: brightness(0) invert(1); transform: none !important; animation: sx-pan 30s linear infinite alternate; }
.sx-scene .grain { position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
@keyframes sx-float { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.12); } 100% { transform: translate(-4vw, 8vh) scale(.95); } }
@keyframes sx-pan { from { transform: translateX(0); } to { transform: translateX(-4%); } }

.sx-hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding-bottom: clamp(150px, 20vh, 220px); }
.sx-hero-text { position: absolute; left: 0; right: 0; bottom: clamp(190px, 24vh, 260px); }
.sx-slide-copy { max-width: 880px; }
.sx-slide-copy .sx-kicker { color: #fff; }
.sx-slide-copy h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; margin: 18px 0 20px; }
.sx-slide-copy h1 em { font-style: normal; color: #f5c15d; }
.sx-slide-copy p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 580px; margin-bottom: 30px; }
.sx-slide-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Animación del texto de cada diapositiva */
.sx-slide .sx-reveal-line { display: block; overflow: hidden; }
.sx-slide .sx-reveal-line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.sx-slide.is-active .sx-reveal-line > span { transform: none; transition-delay: calc(.25s + var(--i, 0) * .09s); }
.sx-slide .sx-fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform 1s var(--ease); }
.sx-slide.is-active .sx-fade-up { opacity: 1; transform: none; transition-delay: calc(.55s + var(--i, 0) * .1s); }

.sx-hero-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 92px; }
.sx-hero-nav .sx-container { display: flex; align-items: center; gap: 22px; }
.sx-dots { display: flex; gap: 10px; flex: 1; }
.sx-dot { flex: 1; max-width: 200px; background: none; border: 0; padding: 10px 0 0; color: rgba(255,255,255,.7); text-align: left; cursor: pointer; font: 500 .85rem var(--font); }
.sx-dot b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .8rem; margin-bottom: 8px; color: #fff; opacity: .6; }
.sx-dot i { display: block; height: 2px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; border-radius: 2px; }
.sx-dot i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.sx-dot.is-active b { opacity: 1; }
.sx-dot.is-active i::after { animation: sx-progress var(--dur, 7s) linear forwards; }
.sx-hero.is-paused .sx-dot.is-active i::after { animation-play-state: paused; }
@keyframes sx-progress { to { transform: scaleX(1); } }
.sx-arrows { display: flex; gap: 8px; }
.sx-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .3s, transform .3s var(--ease); }
.sx-arrow:hover { background: #fff; color: var(--brand-ink); transform: scale(1.06); }
.sx-scroll-hint { position: absolute; z-index: 3; right: 28px; top: 50%; writing-mode: vertical-rl; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .1em; display: flex; align-items: center; gap: 12px; }
.sx-scroll-hint::after { content: ""; width: 1px; height: 60px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: sx-scrollhint 2s ease-in-out infinite; }
@keyframes sx-scrollhint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) {
  .sx-dot { font-size: 0; } .sx-dot b { font-size: .75rem; }
  .sx-arrows { display: none; } .sx-scroll-hint { display: none; }
  .sx-hero-text { bottom: 170px; } .sx-hero-nav { bottom: 84px; }
  .sx-slide-ctas .sx-btn { flex: 1 1 100%; }
}

/* Buscador flotante bajo el hero */
.sx-search-wrap { position: relative; z-index: 5; margin-top: -58px; }
.sx-search { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 8px; align-items: stretch; background: #fff; border-radius: 26px; padding: 10px; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.sx-search-tabs { display: flex; background: var(--bg-soft); border-radius: 18px; padding: 4px; }
.sx-search-tabs button { border: 0; background: none; padding: 0 18px; border-radius: 14px; font: 600 .95rem var(--font); color: var(--slate); cursor: pointer; transition: .3s var(--ease); }
.sx-search-tabs button.is-on { background: var(--brand); color: #fff; }
.sx-search label { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-radius: 16px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: background .2s; }
.sx-search label:hover { background: var(--bg-soft); }
.sx-search select, .sx-search input { border: 0; background: none; font: 600 1rem var(--font); color: var(--ink); padding: 2px 0; outline: none; width: 100%; }
.sx-search .sx-btn { border-radius: 18px; }
@media (max-width: 900px) { .sx-search { grid-template-columns: 1fr 1fr; } .sx-search-tabs { grid-column: 1 / -1; } .sx-search-tabs button { flex: 1; padding: 12px; } .sx-search .sx-btn { grid-column: 1 / -1; } }

/* ---------- Marquesina de zonas ---------- */
.sx-marquee { overflow: hidden; white-space: nowrap; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sx-marquee-track { display: inline-flex; align-items: center; gap: 28px; animation: sx-marquee 60s linear infinite; }
.sx-marquee:hover .sx-marquee-track { animation-play-state: paused; }
.sx-marquee span, .sx-marquee a { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -.02em; transition: color .3s; }
.sx-marquee a:hover { color: var(--accent); }
.sx-marquee i { color: var(--accent); font-style: normal; font-size: 1.2rem; }
@keyframes sx-marquee { to { transform: translateX(-50%); } }

/* ---------- Bento "nuevo concepto" ---------- */
.sx-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.sx-tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; background: var(--bg-soft); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 240px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.sx-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.sx-tile h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.sx-tile p { color: var(--slate); max-width: 420px; }
.sx-tile .sx-tile-ic { flex: none; margin-bottom: auto; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 8px 20px -10px rgba(0,0,0,.2); }
.sx-tile .sx-tile-ic svg { width: 26px; height: 26px; }
.sx-tile--a { grid-column: span 4; grid-row: span 2; background: var(--brand-ink); color: #fff; padding: 44px; }
.sx-tile--a h3 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 3rem); max-width: 560px; }
.sx-tile--a p { color: rgba(255,255,255,.78); }
.sx-tile--b { grid-column: span 2; background: var(--mint); }
.sx-tile--c { grid-column: span 2; background: var(--accent-soft); }
.sx-tile--d { grid-column: span 3; background: var(--sand); }
.sx-tile--e { grid-column: span 3; }
.sx-tile-big { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; font-weight: 600; letter-spacing: -.05em; color: var(--brand); }
.sx-tile--a .sx-tile-big { color: #f5c15d; }
.sx-orbit { position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: sx-spin 40s linear infinite; }
.sx-orbit::before, .sx-orbit::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); top: 50%; left: -7px; }
.sx-orbit::after { left: auto; right: 60px; top: 30px; background: #f5c15d; width: 10px; height: 10px; }
.sx-orbit-2 { width: 280px; height: 280px; right: -10px; top: -10px; animation-duration: 28s; animation-direction: reverse; }
@keyframes sx-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .sx-bento { grid-template-columns: 1fr 1fr; } .sx-tile--a, .sx-tile--d, .sx-tile--e { grid-column: span 2; } .sx-tile--b, .sx-tile--c { grid-column: span 1; } }
@media (max-width: 560px) { .sx-bento { grid-template-columns: 1fr; } .sx-tile { grid-column: span 1 !important; } }

/* Comparativa */
.sx-compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 16px; }
.sx-compare th, .sx-compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.sx-compare thead th { font-weight: 600; color: var(--muted); font-size: .92rem; }
.sx-compare td:first-child { font-weight: 600; }
.sx-compare .is-us { background: var(--brand); color: #fff; font-weight: 600; }
.sx-compare thead .is-us { border-radius: 18px 18px 0 0; color: #fff; }
.sx-compare tbody tr:last-child .is-us { border-radius: 0 0 18px 18px; }
.sx-compare .sx-yes::before { content: "✓ "; color: #f5c15d; }
.sx-compare-wrap { overflow-x: auto; }
.sx-compare-wrap table { min-width: 620px; }

/* ---------- Pasos con scroll fijo ---------- */
.sx-steps { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sx-steps-sticky { position: sticky; top: 120px; }
.sx-steps-list { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: st; }
.sx-step { position: relative; padding: 34px 34px 34px 104px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s, transform .5s var(--ease); }
.sx-step::before { counter-increment: st; content: "0" counter(st); position: absolute; left: 30px; top: 30px; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--line); transition: color .4s; }
.sx-step.is-in-view { border-color: var(--brand); box-shadow: var(--shadow-card); }
.sx-step.is-in-view::before { color: var(--accent); }
.sx-step p { color: var(--slate); margin-top: 8px; }
@media (max-width: 900px) { .sx-steps { grid-template-columns: 1fr; } .sx-steps-sticky { position: static; } }

/* ---------- Tarifas ---------- */
.sx-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sx-plan { position: relative; border-radius: var(--r-lg); padding: 36px 30px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.sx-plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.sx-plan--main { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.sx-plan--main h3, .sx-plan--main .sx-price { color: #fff; }
.sx-plan--main ul { color: rgba(255,255,255,.82); }
.sx-plan-tag { position: absolute; top: 22px; right: 22px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.sx-price { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sx-price small { display: block; font-family: var(--font); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.sx-plan--main .sx-price small { color: rgba(255,255,255,.65); }
.sx-plan ul { list-style: none; display: grid; gap: 10px; color: var(--slate); flex: 1; }
.sx-plan li { display: flex; gap: 10px; }
.sx-plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231f5f52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sx-plan .sx-btn { width: 100%; }
@media (max-width: 900px) { .sx-plans { grid-template-columns: 1fr; } }

/* ---------- Zonas ---------- */
.sx-zone-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.sx-zone-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font: 600 .95rem var(--font); color: var(--slate); cursor: pointer; transition: .3s var(--ease); }
.sx-zone-tab.is-on, .sx-zone-tab:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.sx-zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sx-zone-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s; }
.sx-zone-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); opacity: 0; transition: opacity .45s; }
.sx-zone-card > * { position: relative; }
.sx-zone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; color: #fff; }
.sx-zone-card:hover::before { opacity: 1; }
.sx-zone-card b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.sx-zone-card small { color: var(--muted); font-size: .85rem; transition: color .3s; }
.sx-zone-card:hover small { color: rgba(255,255,255,.75); }
.sx-zone-card .sx-arrow-ic { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand); transition: transform .5s var(--ease), background .3s; }
.sx-zone-card:hover .sx-arrow-ic { transform: rotate(-45deg); background: #fff; }
.sx-zone-panel[hidden] { display: none; }

.sx-page-hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); background: var(--brand-ink); color: #fff; }
.sx-page-hero h1 { color: #fff; max-width: 900px; margin: 16px 0 18px; }
.sx-page-hero h1 em { font-style: normal; color: #f5c15d; }
.sx-page-hero .lead { color: rgba(255,255,255,.82); max-width: 660px; }
.sx-page-hero .breadcrumbs, .sx-page-hero .breadcrumbs a { color: rgba(255,255,255,.7); }
.sx-page-hero .sx-scene { transform: none !important; }
.sx-page-hero > .sx-container { position: relative; z-index: 1; }
.sx-page-hero--light { background: var(--bg-soft); color: var(--ink); }
.sx-page-hero--light h1 { color: var(--ink); }
.sx-page-hero--light .lead { color: var(--slate); }
.sx-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .92rem; text-decoration: none; backdrop-filter: blur(6px); transition: background .3s; }
.sx-chip:hover { background: rgba(255,255,255,.2); }
.sx-chip svg { width: 16px; height: 16px; }
.sx-page-hero--light .sx-chip { background: #fff; color: var(--ink); border-color: var(--line); }

/* ---------- Blog ---------- */
.sx-blog-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-ink); color: #fff; text-decoration: none; transition: transform .6s var(--ease), box-shadow .6s; margin-bottom: 40px; }
.sx-blog-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.sx-blog-feature .sx-cover { min-height: 380px; border-radius: 0; }
.sx-blog-feature-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.sx-blog-feature h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sx-blog-feature p { color: rgba(255,255,255,.78); }
.sx-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.sx-post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.sx-post-card .sx-cover { aspect-ratio: 16 / 11; border-radius: var(--r); }
.sx-post-card h3 { font-size: 1.32rem; transition: color .3s; }
.sx-post-card:hover h3 { color: var(--brand); }
.sx-post-card p { color: var(--slate); font-size: .98rem; }
.sx-post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; color: var(--muted); }
.sx-post-meta .sx-tag { background: var(--mint-2); color: var(--brand); font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.sx-blog-feature .sx-post-meta { color: rgba(255,255,255,.65); }
.sx-blog-feature .sx-tag { background: rgba(255,255,255,.12); color: #f3dcae; }
/* Portada generada (sin fotos): degradado + forma por categoría */
.sx-cover { position: relative; overflow: hidden; background: var(--cv1, var(--brand)); isolation: isolate; }
.sx-cover::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(60% 60% at 75% 25%, var(--cv2, #24477f), transparent 60%), radial-gradient(50% 50% at 15% 85%, var(--cv3, #f0a531), transparent 60%); transition: transform 1.2s var(--ease); z-index: -1; }
.sx-cover svg.sx-cover-art { position: absolute; right: 8%; bottom: 10%; width: 46%; height: auto; opacity: .9; transition: transform 1s var(--ease); }
.sx-cover .sx-cover-title { position: absolute; left: 22px; top: 20px; right: 22px; font-family: var(--font-display); font-size: .9rem; color: rgba(255,255,255,.85); font-weight: 600; }
.sx-post-card:hover .sx-cover::before, .sx-blog-feature:hover .sx-cover::before { transform: scale(1.12) rotate(4deg); }
.sx-post-card:hover .sx-cover-art, .sx-blog-feature:hover .sx-cover-art { transform: translateY(-8px) rotate(-3deg); }
.sx-cover--propietarios { --cv1: #0a1630; --cv2: #24477f; --cv3: #f0a531; }
.sx-cover--alquilar { --cv1: #13284b; --cv2: #5b8fe0; --cv3: #f5c15d; }
.sx-cover--vender { --cv1: #7a3a22; --cv2: #f0a531; --cv3: #f6d3a8; }
.sx-cover--zonas { --cv1: #22394f; --cv2: #4f86a8; --cv3: #f5c15d; }
.sx-cover--legal { --cv1: #2c2a3d; --cv2: #6b67a0; --cv3: #e9c27a; }
@media (max-width: 900px) { .sx-blog-feature { grid-template-columns: 1fr; } .sx-blog-feature .sx-cover { min-height: 220px; } .sx-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sx-blog-grid { grid-template-columns: 1fr; } }

/* Artículo */
.sx-read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; }
.sx-read-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; }
.sx-article-hero .sx-cover { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.sx-article { display: grid; grid-template-columns: 240px minmax(0, 720px) 1fr; gap: 56px; }
.sx-toc { position: sticky; top: 110px; align-self: start; font-size: .92rem; }
.sx-toc p { font-weight: 600; margin-bottom: 10px; }
.sx-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s; }
.sx-toc a.is-active, .sx-toc a:hover { color: var(--brand); border-color: var(--brand); }
.sx-prose { font-size: 1.1rem; line-height: 1.75; color: #24302d; }
.sx-prose > * + * { margin-top: 1.1em; }
.sx-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2em; scroll-margin-top: 110px; }
.sx-prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.sx-prose ul, .sx-prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.sx-prose li::marker { color: var(--accent); font-weight: 700; }
.sx-prose a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sx-prose blockquote { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.sx-prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.sx-prose th, .sx-prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.sx-prose th { background: var(--bg-soft); }
.sx-prose .post-lead { font-size: 1.28rem; color: var(--slate); line-height: 1.6; }
.sx-article-aside { position: sticky; top: 110px; align-self: start; }
.sx-cta-card { border-radius: var(--r-lg); padding: 28px; background: var(--brand-ink); color: #fff; display: grid; gap: 14px; }
.sx-cta-card h3 { color: #fff; }
.sx-cta-card p { color: rgba(255,255,255,.75); font-size: .95rem; }
@media (max-width: 1100px) { .sx-article { grid-template-columns: minmax(0, 1fr); } .sx-toc, .sx-article-aside { position: static; } .sx-toc { display: none; } }

/* ---------- Pie ---------- */
.site-footer { display: none; }
.sx-footer { position: relative; overflow: hidden; background: var(--brand-ink); color: rgba(255,255,255,.75); margin-top: 0; }
.sx-footer-cta { padding: clamp(70px, 10vw, 130px) 0 30px; }
.sx-footer-title { color: #fff; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.04em; margin: 16px 0 34px; max-width: 1000px; }
.sx-footer-title em { font-style: normal; color: #f5c15d; }
.sx-footer-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sx-marquee--footer { border-block: 1px solid rgba(255,255,255,.1); margin: 40px 0; }
.sx-marquee--footer span { color: rgba(255,255,255,.9); }
.sx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; position: relative; z-index: 1; }
.sx-footer-grid a { display: block; color: rgba(255,255,255,.75); text-decoration: none; padding: 5px 0; transition: color .25s, transform .35s var(--ease); }
.sx-footer-grid a:hover { color: #fff; transform: translateX(4px); }
.sx-footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.sx-footer-brand p { max-width: 340px; }
.sx-footer-contact { margin-top: 18px; display: grid; gap: 4px; }
.sx-footer-contact a, .sx-footer-contact span { display: flex !important; gap: 10px; align-items: center; }
.sx-footer-contact svg { width: 16px; height: 16px; color: #f5c15d; }
.sx-footer-h { color: #fff; font-weight: 600; margin-bottom: 12px; font-family: var(--font-display); font-size: 1.05rem; }
.sx-footer-more { color: #f5c15d !important; }
.sx-footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; position: relative; z-index: 1; }
.sx-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.sx-footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.sx-footer-bottom a:hover { color: #fff; }
.sx-footer-skyline { position: absolute; left: 0; right: 0; bottom: 60px; width: 100%; height: 220px; object-fit: cover; object-position: bottom; filter: brightness(0) invert(1); opacity: .045; pointer-events: none; }
@media (max-width: 900px) { .sx-footer-grid { grid-template-columns: 1fr 1fr; } .sx-footer-brand { grid-column: 1 / -1; } }

/* ---------- Componentes heredados, al nuevo estilo ---------- */
.prop-card { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: #fff; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.prop-price { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.form input, .form select, .form textarea { border-radius: 14px; border: 1.5px solid var(--line); padding: 14px 16px; font-family: var(--font); background: #fff; transition: border-color .25s, box-shadow .25s; }
.form label { font-size: .88rem; font-weight: 600; }
.contact-split { gap: clamp(32px, 6vw, 80px); }
.contact-split-form { border-radius: var(--r-lg); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.faq-item, .faq details { border-radius: var(--r); }
.cx-hero { background: linear-gradient(180deg, var(--mint-2) 0%, #fff 100%); }
.cx-h1 { font-family: var(--font-display); font-weight: 600; }
.cx-h1 em { color: var(--brand); }
.cta-band { border-radius: var(--r-lg); }
.fab-toggle { background: var(--brand); box-shadow: 0 12px 30px -10px rgba(10,22,48,.7); }
.cookie-consent { border-radius: var(--r); }

/* ---------- Motion: aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js [data-split].is-in .w > span { transform: none; }
.reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
}
.sx-slide-copy .h1-like { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; margin: 18px 0 20px; }
.sx-slide-copy .h1-like em { font-style: normal; color: #f5c15d; }
.sx-page-hero--light .breadcrumbs, .sx-page-hero--light .breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent) !important; }

/* Colecciones */
.sx-page-hero--tall { padding-top: clamp(90px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 130px); }
.sx-bento--3 { grid-template-columns: repeat(3, 1fr); }
.sx-bento--3 .sx-tile { grid-column: span 1 !important; }
@media (max-width: 900px) { .sx-bento--3 { grid-template-columns: 1fr; } }
.sx-empty { text-align: center; padding: clamp(40px, 6vw, 70px); border-radius: var(--r-lg); background: #fff; border: 1px dashed #d9d2c3; display: grid; gap: 12px; justify-items: center; }
.sx-empty p { color: var(--slate); }
/* Colección de lujo: página oscura y dorada */
.sx-dark-page { --accent: #e9c27a; --accent-soft: rgba(233,194,122,.15); background: #050b18; color: #d7deea; }
.sx-dark-page h1, .sx-dark-page h2, .sx-dark-page h3 { color: #f4efe6; }
.sx-dark-page .section--soft { background: #0a1630; }
.sx-dark-page .sx-kicker { color: #e9c27a; }
.sx-dark-page .lead, .sx-dark-page .sx-tile p, .sx-dark-page .sx-empty p { color: #b8c2d6; }
.sx-dark-page .sx-tile { background: #0e1d3a !important; border: 1px solid #1f3358; }
.sx-dark-page .sx-tile-ic { background: #16294d; color: #e9c27a; }
.sx-dark-page .sx-empty { background: #0e1d3a; border-color: #24477f; }
.sx-dark-page .sx-btn:not(.sx-btn--light):not(.sx-btn--ghost-light) { --bg: #e9c27a; --fg: #0a1630; }
.sx-dark-page .sx-page-hero h1 em { color: #f3dcae; }
.sx-dark-page .contact-split-form { background: #fff; color: var(--ink); }
.sx-dark-page h1 { font-weight: 500; letter-spacing: -.03em; }

/* Calculadora hipotecaria */
.sx-calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); padding: 0; background: #fff; }
.sx-calc-form { padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.sx-calc-form label { display: grid; gap: 10px; font-weight: 600; }
.sx-calc-form output { float: right; font-family: var(--font-display); color: var(--brand); font-size: 1.15rem; }
.sx-calc-form input[type=range] { width: 100%; accent-color: var(--brand); height: 6px; }
.sx-calc-form select { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-weight: 500; }
.sx-calc-result { background: var(--brand-ink); color: #fff; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.sx-calc-label { color: #f3dcae; font-weight: 600; }
.sx-calc-big { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sx-calc-result dl { display: grid; gap: 8px; margin-top: 10px; }
.sx-calc-result dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.sx-calc-result dt { color: rgba(255,255,255,.7); } .sx-calc-result dd { font-weight: 600; }
.sx-calc-warn { background: rgba(240,165,49,.18); border: 1px solid rgba(240,165,49,.5); padding: 12px 14px; border-radius: 12px; font-size: .92rem; }
.sx-calc-note { font-size: .82rem; color: rgba(255,255,255,.6); }
.sx-legal-note { margin-top: 28px; font-size: .9rem; color: var(--muted); max-width: 820px; }
.sx-tile--link { text-decoration: none; color: inherit; }
.sx-tile--link h3 { transition: color .3s; } .sx-tile--link:hover h3 { color: var(--brand); }
@media (max-width: 900px) { .sx-calc { grid-template-columns: 1fr; } }

/* ---------- Chat en directo ---------- */
.fab { display: none !important; }  /* el chat sustituye al antiguo botón flotante (el modal de contacto se mantiene) */
.sx-chat { position: fixed; right: 22px; bottom: 22px; z-index: 300; font-family: var(--font); }
.sx-chat-bubble { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(10,22,48,.75); transition: transform .4s var(--ease), background .3s; }
.sx-chat-bubble:hover { transform: scale(1.07) rotate(-4deg); background: var(--brand-dark); }
.sx-chat-bubble::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand); opacity: .5; animation: sx-ping 2.6s var(--ease) infinite; }
@keyframes sx-ping { 0% { transform: scale(.9); opacity: .6; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.sx-chat-bubble-close { display: none; font-size: 2rem; line-height: 1; }
.sx-chat.is-open .sx-chat-bubble-ic { display: none; } .sx-chat.is-open .sx-chat-bubble-close { display: block; }
.sx-chat.is-open .sx-chat-bubble::before { display: none; }
.sx-chat-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.sx-chat-teaser { position: absolute; right: 74px; bottom: 12px; white-space: nowrap; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow-card); font-size: .92rem; font-weight: 500; opacity: 0; transform: translateX(12px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease); }
.sx-chat-teaser.is-shown { opacity: 1; transform: none; }
.sx-chat-teaser.is-gone { opacity: 0 !important; transform: translateX(12px) !important; }
.sx-chat-panel { position: absolute; right: 0; bottom: 78px; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(6,14,31,.45); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: sx-chat-in .45s var(--ease); }
.sx-chat-panel[hidden] { display: none; }
@keyframes sx-chat-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.sx-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; background: var(--brand-ink); color: #fff; }
.sx-chat-head b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.sx-chat-head small { color: #f3dcae; display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.sx-chat-head > div { flex: 1; }
.sx-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee0a8; box-shadow: 0 0 0 3px rgba(94,224,168,.25); }
.sx-chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.sx-chat-avatar img { width: 26px; }
.sx-chat-headbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); }
.sx-chat-headbtn:hover { background: rgba(255,255,255,.2); }
.sx-chat-headbtn svg { width: 17px; height: 17px; }
.sx-chat-start { padding: 18px; display: grid; gap: 12px; overflow-y: auto; }
.sx-chat-start label { display: grid; gap: 5px; font-size: .85rem; font-weight: 600; }
.sx-chat-start input[type=text] { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; }
.sx-chat-start input[type=text]:focus, .sx-chat-compose textarea:focus { outline: none; border-color: var(--brand); }
.sx-chat-consent { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 400 !important; }
.sx-chat-hello { background: var(--mint-2); padding: 12px 14px; border-radius: 16px 16px 16px 4px; font-size: .95rem; }
.sx-hp { position: absolute; left: -9999px; }
.sx-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); }
.sx-msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: .95rem; line-height: 1.45; animation: sx-msg-in .35s var(--ease); }
@keyframes sx-msg-in { from { opacity: 0; transform: translateY(8px); } }
.sx-msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.sx-msg time { display: block; font-size: .7rem; opacity: .6; margin-top: 3px; text-align: right; }
.sx-msg--visitante { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.sx-msg--agente { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sx-msg--sistema { align-self: center; max-width: 92%; background: transparent; color: var(--muted); font-size: .82rem; text-align: center; padding: 4px 8px; }
.sx-chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.sx-chat-compose textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; font: inherit; max-height: 120px; }
.sx-chat-compose button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease); }
.sx-chat-compose button:hover { transform: scale(1.08) rotate(-8deg); }
@media (max-width: 520px) {
  .sx-chat { right: 14px; bottom: 14px; }
  .sx-chat-teaser { display: none; }
  .sx-chat-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: 88svh; border-radius: 22px 22px 0 0; bottom: 0; }
  .sx-chat.is-open .sx-chat-bubble { position: fixed; top: calc(12svh - 74px); right: 14px; width: 48px; height: 48px; }
}
.sx-dark-page ~ .sx-chat .sx-chat-bubble { background: #e9c27a; color: #0a1630; }

/* Desplegables del menú */
.sx-drop { position: relative; }
.sx-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.is-home .sx-header:not(.is-scrolled) .sx-drop-btn { color: #fff; }
.sx-drop-btn svg { transition: transform .35s var(--ease); }
.sx-drop:hover .sx-drop-btn svg, .sx-drop:focus-within .sx-drop-btn svg { transform: rotate(180deg); }
.sx-drop-menu { position: absolute; top: calc(100% + 6px); left: 50%; min-width: 240px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .3s; }
.sx-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sx-drop:hover .sx-drop-menu, .sx-drop:focus-within .sx-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.sx-drop-menu a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; transition: background .2s, padding .3s var(--ease); }
.sx-drop-menu a:hover { background: var(--mint-2); padding-left: 20px; color: var(--brand); }
@media (max-width: 1080px) {
  .sx-drop { display: contents; }
  .sx-drop-btn { display: none; }
  .sx-drop-menu { position: static; display: contents; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; background: none; }
  .sx-drop-menu a { color: #fff !important; font-family: var(--font-display); font-size: clamp(1.3rem, 5vw, 1.7rem); padding: 4px 0 4px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  body.nav-open .sx-drop-menu a { opacity: .85; transform: none; }
  .sx-nav { overflow-y: auto; justify-content: flex-start; }
}
.sx-chat [hidden] { display: none !important; }
/* Títulos del slider: también se adaptan a la altura de la pantalla */
.sx-slide-copy { max-width: 1040px; }
.sx-slide-copy h1, .sx-slide-copy .h1-like { font-size: clamp(2.3rem, min(6.2vw, 8.2vh), 5.6rem); }
.sx-slide-copy p { margin-bottom: 24px; }
@media (max-height: 760px) and (min-width: 701px) { .sx-hero-text { bottom: 170px; } .sx-hero-nav { bottom: 84px; } .sx-slide-copy p:not(.sx-kicker) { font-size: 1rem; } }

/* ---------- Tarjetas de inmueble ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 22px; }
.sx-prop { display: flex; flex-direction: column; border: 0 !important; background: transparent !important; box-shadow: none !important; text-decoration: none; color: var(--ink); overflow: visible !important; }
.sx-prop:hover { transform: none !important; }
.sx-prop-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); }
.sx-prop-media img, .sx-prop-media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.sx-prop:hover .sx-prop-media img { transform: scale(1.07); }
.sx-prop-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.sx-prop-badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sx-badge { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px); }
.sx-badge--alquiler { background: var(--brand); color: #fff; }
.sx-badge--venta { background: var(--accent); color: #fff; }
.sx-badge--new { background: #2c4f73; color: #fff; }
.sx-badge--lux { background: #141414; color: #e6cf9f; }
.sx-prop-count { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; }
.sx-prop-count svg { width: 14px; height: 14px; }
.sx-prop-body { padding: 16px 4px 0; display: grid; gap: 6px; }
.sx-prop-price { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.02em; }
.sx-prop-title { font-family: var(--font); font-size: 1.02rem; font-weight: 500; line-height: 1.35; transition: color .3s; }
.sx-prop:hover .sx-prop-title { color: var(--brand); }
.sx-prop-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.sx-prop-loc svg { width: 15px; height: 15px; color: var(--accent); }
.sx-prop-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--slate); font-size: .9rem; }
.sx-prop-specs span { display: inline-flex; align-items: center; gap: 6px; }
.sx-prop-specs svg { width: 16px; height: 16px; color: var(--brand); }
.badge, .badge-op, .badge-status { text-transform: none !important; letter-spacing: 0 !important; }

/* ---------- Valoración online ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sx-val-hero { padding-bottom: 150px; }
.sx-val-section { padding-top: 0; margin-top: -110px; position: relative; z-index: 2; }
.sx-val { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); border: 1px solid var(--line); padding: clamp(24px, 5vw, 52px); }
.sx-val-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sx-val-steps li.is-on { color: var(--brand); }
.sx-val-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 30px; }
.sx-val-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease); }
.sx-val-step { border: 0; padding: 0; margin: 0; display: none; }
.sx-val-step.is-on { display: block; animation: sx-step-in .55s var(--ease); }
@keyframes sx-step-in { from { opacity: 0; transform: translateX(24px); } }
.sx-val-step legend { margin-bottom: 20px; }
.sx-val-step h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); outline: none; }
.sx-val-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sx-choice input { position: absolute; opacity: 0; }
.sx-choice span { display: grid; gap: 6px; height: 100%; padding: 22px; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .25s, background .25s, transform .35s var(--ease); }
.sx-choice span svg { width: 28px; height: 28px; color: var(--brand); }
.sx-choice b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.sx-choice small { color: var(--muted); }
.sx-choice:hover span { transform: translateY(-3px); border-color: var(--brand); }
.sx-choice input:checked + span { border-color: var(--brand); background: var(--mint-2); box-shadow: 0 0 0 3px var(--mint); }
.sx-choice input:focus-visible + span { outline: 3px solid var(--accent); }
.sx-val-field { display: grid; gap: 8px; font-weight: 600; margin-bottom: 16px; }
.sx-val-field select, .sx-val-field input[type=text], .sx-val-field input[type=tel], .sx-val-field input[type=email] { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-weight: 400; background: #fff; }
.sx-val-field input[type=range] { accent-color: var(--brand); }
.sx-val-field output { float: right; font-family: var(--font-display); color: var(--brand); }
.sx-val-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sx-val-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-tag-check input { position: absolute; opacity: 0; }
.sx-tag-check span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; transition: .25s; }
.sx-tag-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.sx-val-result { background: var(--brand-ink); color: #fff; border-radius: var(--r); padding: 26px; }
.sx-val-result .sx-kicker { color: #f3dcae; }
.sx-val-result p { color: rgba(255,255,255,.8); }
.sx-val-big { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; color: #fff !important; letter-spacing: -.03em; margin: 8px 0; }
.sx-val-big small { font-size: .45em; font-weight: 500; opacity: .7; }
.sx-val-big--sm { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.sx-val-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.sx-val-nav #valNext, .sx-val-nav #valSend { margin-left: auto; }
@media (max-width: 700px) { .sx-val-choices, .sx-val-grid { grid-template-columns: 1fr; } .sx-val-steps { font-size: .72rem; } }

/* 404 */
.sx-404 { min-height: 80vh; display: flex; align-items: center; }
.sx-404-num { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 15rem); font-weight: 700; line-height: .85; letter-spacing: -.06em; color: #fff; }
.sx-404-num span { display: inline-block; color: #f5c15d; animation: sx-door 3s var(--ease) infinite; transform-origin: left center; }
@keyframes sx-door { 0%, 60%, 100% { transform: perspective(600px) rotateY(0); } 75% { transform: perspective(600px) rotateY(-55deg); } }
.sx-404 h1 { margin-inline: auto; }

/* Transiciones suaves entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sx-vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: sx-vt-in .5s var(--ease) both; }
@keyframes sx-vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes sx-vt-in { from { opacity: 0; transform: translateY(18px); } }
.sx-header { view-transition-name: header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* Portadas del blog con foto */
.sx-cover--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sx-cover--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,28,.45) 0%, rgba(5,12,28,0) 40%); pointer-events: none; }
.sx-cover--photo .sx-cover-title { z-index: 1; display: inline-block; right: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: .8rem; backdrop-filter: blur(6px); }
.sx-post-card:hover .sx-cover--photo img, .sx-blog-feature:hover .sx-cover--photo img { transform: scale(1.06); }
.sx-article-hero .sx-cover--photo { opacity: .4 !important; }
.sx-article-hero .sx-cover--photo .sx-cover-title { display: none; }
/* Crédito del pie con corazón latiendo */
.sx-credit { display: inline-flex; align-items: center; gap: 6px; }
.sx-heart { display: inline-flex; color: #ff6b6b; animation: heartbeat 1.3s ease-in-out infinite; transform-origin: center; }
.sx-heart svg { width: 15px; height: 15px; }
.sx-credit a { color: #fff !important; font-weight: 600; }

/* ---------- Agenda de citas ---------- */
.sx-cita-h { font-size: 1.25rem; margin: 30px 0 14px; }
.sx-cita-h:first-of-type { margin-top: 0; }
.sx-cita-modes { margin-top: 12px; }
.sx-cita-modes label[hidden] { display: none; }
.sx-days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.sx-day { flex: none; scroll-snap-align: start; width: 84px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; gap: 2px; text-align: center; font: inherit; transition: .25s var(--ease); }
.sx-day small { color: var(--muted); font-size: .78rem; text-transform: none; }
.sx-day b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.sx-day i { font-style: normal; font-size: .7rem; color: var(--brand); }
.sx-day:hover { border-color: var(--brand); transform: translateY(-2px); }
.sx-day.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sx-day.is-on small, .sx-day.is-on i { color: rgba(255,255,255,.8); }
.sx-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.sx-slot { padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 600 .95rem var(--font); cursor: pointer; transition: .2s; }
.sx-slot:hover { border-color: var(--brand); }
.sx-slot.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sx-cita textarea { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-weight: 400; }
.sx-cita-summary { font-weight: 600; color: var(--brand); align-self: center; }
.sx-cita-done { background: var(--brand-ink); color: #fff; border-radius: var(--r); padding: 30px; }
.sx-cita-done p { color: rgba(255,255,255,.85); }
.sx-cita-done .sx-kicker { color: #f3dcae; }
.sx-cita .sx-val-field[hidden] { display: none; }

/* Alerta de búsqueda */
.sx-alert { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--mint-2); border: 1px solid var(--mint); }
.sx-alert-copy { display: flex; gap: 16px; align-items: flex-start; }
.sx-alert-copy h3 { font-size: 1.4rem; margin-bottom: 6px; }
.sx-alert-copy p { color: var(--slate); }
.sx-alert-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.sx-alert-ic svg { width: 24px; height: 24px; }
.sx-alert-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sx-alert-form select, .sx-alert-form input[type=text], .sx-alert-form input[type=email] { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; min-width: 0; }
.sx-alert-form input[type=email] { grid-column: span 3; }
.sx-alert-form .sx-btn { padding: 12px 16px; }
.sx-alert-consent { grid-column: 1 / -1; font-size: .85rem; }
.sx-alert-status { grid-column: 1 / -1; font-weight: 600; color: var(--accent); min-height: 1em; }
.sx-alert-status.is-ok { color: var(--brand); }
@media (max-width: 900px) { .sx-alert { grid-template-columns: 1fr; } .sx-alert-form { grid-template-columns: 1fr 1fr; } .sx-alert-form input[type=email] { grid-column: 1 / -1; } .sx-alert-form .sx-btn { grid-column: 1 / -1; } }

/* Solicitud de alquiler */
.sx-detail-ctas { display: grid; gap: 8px; margin: 10px 0 14px; }
.sx-detail-ctas .sx-btn { width: 100%; }
.sx-sol-effort { margin: -4px 0 6px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.sx-sol-effort.is-ok { background: var(--mint-2); color: var(--brand); }
.sx-sol-effort.is-mid { background: #fff4e5; color: #b45309; }
.sx-sol-effort.is-low { background: #fde8e8; color: #b42318; }
.sx-upload { position: relative; display: block; border: 2px dashed #d9d2c3; border-radius: var(--r); padding: 26px; text-align: center; cursor: pointer; transition: .25s; background: var(--bg-soft); }
.sx-upload.is-over, .sx-upload:hover { border-color: var(--brand); background: var(--mint-2); }
.sx-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sx-upload span { display: grid; gap: 4px; justify-items: center; }
.sx-upload svg { width: 30px; height: 30px; color: var(--brand); }
.sx-upload small { color: var(--muted); }
.sx-upload-list { list-style: none; display: grid; gap: 4px; margin-top: 10px; font-size: .9rem; color: var(--slate); }
.sx-sol textarea { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-weight: 400; }

/* ---- Portal del inquilino ---- */
.sx-ten { max-width: 980px; }
.sx-ten-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.sx-ten-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(10,22,48,.08); display: flex; flex-direction: column; gap: 4px; }
.sx-ten-card small { font-size: .82rem; color: #68707a; }
.sx-ten-card b { font-family: var(--sx-display, inherit); font-size: 1.6rem; color: #0a1630; }
.sx-ten-card span { font-size: .85rem; color: #68707a; }
.sx-ten-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 10px; }
.sx-ten-list { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(10,22,48,.06); }
.sx-ten-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eceef1; }
.sx-ten-row small { display: block; color: #68707a; font-size: .8rem; }
.pill-alerta { background: #fde4e1; color: #b3261e; }
@media (max-width: 760px) { .sx-ten-cards, .sx-ten-cols { grid-template-columns: 1fr; } }

/* =====================================================================
   Alka · identidad 2026: azul noche + dorado del logo, con brillo y contraste
   ===================================================================== */
:root {
  --gold: #f0a531; --gold-2: #f7c862; --gold-deep: #c9811a;
  --gold-grad: linear-gradient(100deg, #f7c862 0%, #f0a531 45%, #e08a1e 100%);
  --night-grad: radial-gradient(120% 140% at 85% -10%, #24477f 0%, #13284b 38%, #0a1630 70%, #060e1f 100%);
  --sand: #f8f3ea; --bg-soft: #f8f4ec;
}
body { background: #fffdf9; }
::selection { background: #f7c862; color: #0a1630; }

/* Botones: el principal es dorado con texto azul noche y un halo que invita a pulsar */
.sx-btn { --bg: var(--gold); --fg: #0a1630; background: var(--gold-grad); box-shadow: 0 10px 30px -12px rgba(240,165,49,.7); }
.sx-btn::after { background: #0a1630; }
.sx-btn:hover { color: #fff; box-shadow: 0 16px 40px -12px rgba(240,165,49,.8); }
.sx-btn--outline, .sx-btn--ghost-light, .sx-btn--light { background: var(--bg); box-shadow: none; }
.sx-btn--outline { --fg: #0a1630; border-color: #0a1630; }
.sx-btn--outline:hover { color: #0a1630; }
.sx-btn--light { --fg: #0a1630; } .sx-btn--light::after { background: var(--gold); } .sx-btn--light:hover { color: #0a1630; }
.sx-btn--accent { --fg: #0a1630; }
.sx-plan-tag, .sx-chat-badge, .sx-badge--venta, .sx-slot.is-on { color: #0a1630; }

/* Palabras destacadas de los titulares: dorado degradado con un brillo lento */
.sx-slide-copy h1 em, .sx-page-hero h1 em, .sx-slide-copy .h1-like em, .sx-dark-page .sx-page-hero h1 em, .sx-footer-title em {
  font-style: normal; color: transparent; background: linear-gradient(100deg, #f7c862, #f0a531 40%, #fff1c9 50%, #f0a531 60%, #e08a1e);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: alkaShine 6s ease-in-out infinite;
}
.cx-h1 em, h2 em { color: var(--gold-deep); font-style: normal; }
@keyframes alkaShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sx-slide-copy h1 em, .sx-page-hero h1 em { animation: none; } }

/* Cabecera de páginas y portada: noche profunda con un resplandor dorado */
.sx-hero { background: var(--night-grad); }
.sx-kicker::before, .eyebrow::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(240,165,49,.22), 0 0 18px rgba(240,165,49,.6); }

/* Logo de imagen */
.sx-logo-img { display: block; height: 46px; width: auto; }
.sx-logo-img--light { display: none; }
.is-home .sx-header:not(.is-scrolled) .sx-logo-img--dark, .sx-dark-page .sx-header:not(.is-scrolled) .sx-logo-img--dark { display: none; }
.is-home .sx-header:not(.is-scrolled) .sx-logo-img--light, .sx-dark-page .sx-header:not(.is-scrolled) .sx-logo-img--light { display: block; }
.sx-footer-logo { height: 64px; width: auto; display: block; margin-bottom: 14px; }
@media (max-width: 640px) { .sx-logo-img { height: 36px; } }
/* Variantes de botón (por encima del dorado por defecto) */
.sx-btn--ghost-light { --bg: rgba(255,255,255,.08); --fg: #fff; background: var(--bg); box-shadow: none; }
.sx-btn--ghost-light:hover { color: #fff; }
.sx-btn--light { --bg: #fff; }
.sx-btn--outline { --bg: transparent; }
.sx-logo-img { height: 54px; }
.sx-header.is-scrolled .sx-logo-img { height: 46px; }
@media (max-width: 640px) { .sx-logo-img, .sx-header.is-scrolled .sx-logo-img { height: 38px; } }
/* Llamadas a la acción principales: dorado sobre fondos oscuros, para que salten a la vista */
.sx-hero .sx-btn--light, .sx-header .sx-btn--light, .sx-page-hero .sx-btn--light, .sx-band .sx-btn--light {
  background: var(--gold-grad); color: #0a1630; box-shadow: 0 12px 34px -10px rgba(240,165,49,.75);
}
.sx-hero .sx-btn--light::after, .sx-header .sx-btn--light::after, .sx-page-hero .sx-btn--light::after, .sx-band .sx-btn--light::after { background: #fff; }
.sx-slide-media::after { background:
  linear-gradient(180deg, rgba(5,12,28,.6) 0%, rgba(5,12,28,.2) 35%, rgba(5,12,28,.35) 60%, rgba(5,12,28,.9) 100%),
  linear-gradient(90deg, rgba(5,12,28,.7), rgba(5,12,28,0) 70%); }
.sx-plan--main ul, .sx-plan--main li { color: rgba(255,255,255,.86); }
.sx-plan--main { background: var(--night-grad); box-shadow: 0 30px 70px -30px rgba(10,22,48,.7), 0 0 0 1px rgba(240,165,49,.35); }
.sx-footer-logo { height: 84px; }
/* Hover de los botones secundarios: fondo azul noche y texto blanco (antes quedaba azul sobre azul) */
.sx-btn--outline::after, .btn-outline::after { background: #0a1630; }
.sx-btn--outline:hover, .btn-outline:hover { color: #fff; border-color: #0a1630; }
.sx-btn--ghost-light::after { background: rgba(255,255,255,.18); }
/* Colección de lujo (página oscura): fichas de inmueble con texto claro */
.sx-dark-page .sx-prop, .sx-dark-page .sx-prop-body { color: #e9e4da; }
.sx-dark-page .sx-prop-price { color: #f3dcae; }
.sx-dark-page .sx-prop-loc, .sx-dark-page .sx-prop-specs, .sx-dark-page .sx-prop-specs span, .sx-dark-page .sx-prop .admin-row-sub { color: #b8c2d6; }
.sx-dark-page .sx-prop h3, .sx-dark-page .sx-prop h3 a, .sx-dark-page .sx-prop-title { color: #f4efe6; }
.sx-dark-page .sx-prop-body { border-color: #1f3358; }
/* Portada: titulares del slider de tamaño uniforme (los largos ya no se montan sobre el resto) */
.sx-slide-copy { max-width: 920px; }
.sx-slide-copy h1, .sx-slide-copy .h1-like { font-size: clamp(2rem, min(4.4vw, 6vh), 4rem); line-height: 1.04; margin: 14px 0 16px; }
.sx-slide-copy p:not(.sx-kicker):not(.h1-like) { max-width: 640px; }
@media (max-width: 700px) { .sx-slide-copy h1, .sx-slide-copy .h1-like { font-size: clamp(1.9rem, 8.4vw, 2.5rem); } }
.sx-slide-copy .h1-like, .sx-slide-copy h1 { max-width: none; }
/* Cabecera con fotos (listados y colecciones): misma altura en todas las páginas */
.sx-page-hero--photo { position: relative; min-height: clamp(460px, 64vh, 620px); display: grid; align-items: end; padding: 140px 0 clamp(56px, 7vw, 84px); background: #060e1f; color: #fff; overflow: hidden; }
.sx-page-hero--photo > .sx-container { position: relative; z-index: 2; }
.sx-page-hero--photo h1 { color: #fff; font-size: clamp(2.1rem, min(4.6vw, 6.4vh), 3.9rem); line-height: 1.04; }
.sx-page-hero--photo .lead { color: rgba(255,255,255,.86); }
.sx-page-hero--photo .breadcrumbs, .sx-page-hero--photo .breadcrumbs a { color: rgba(255,255,255,.75); }
.sx-page-hero--photo .sx-kicker { color: #f3dcae; }
.sx-page-hero--photo .sx-scene { display: none; }
.sx-hero-slides { position: absolute; inset: 0; z-index: 0; }
.sx-hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.sx-hero-slides img.is-on { opacity: 1; transform: scale(1); }
.sx-hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,28,.55) 0%, rgba(5,12,28,.25) 40%, rgba(5,12,28,.88) 100%), linear-gradient(90deg, rgba(5,12,28,.65), rgba(5,12,28,0) 70%); }
@media (max-width: 700px) { .sx-page-hero--photo { min-height: 440px; padding-top: 120px; } }
/* H1 de la portada con aspecto de rótulo (el titular grande es un p.h1-like) */
.sx-slide-copy h1.sx-hero-h1 { font-family: var(--font); font-size: .95rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; margin: 0; color: #f3dcae; }
/* El bloque de texto del slider ocupa siempre lo mismo: el rótulo, el titular y los botones no se mueven entre diapositivas */
.sx-slide-copy .h1-like { min-height: calc(2 * 1.04em); display: flex; flex-direction: column; justify-content: flex-end; }
.sx-slide-copy > p.sx-fade-up:not(.sx-kicker) { min-height: calc(3 * 1.6em); }
@media (max-width: 700px) {
  .sx-slide-copy .h1-like { min-height: calc(3 * 1.04em); }
  .sx-slide-copy > p.sx-fade-up:not(.sx-kicker) { min-height: calc(5 * 1.6em); }
}
/* Buscador de la portada en móvil: más compacto y legible */
@media (max-width: 700px) {
  .sx-search-wrap { margin-top: -34px; }
  .sx-search { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-radius: 20px; }
  .sx-search-tabs { grid-column: 1 / -1; padding: 3px; border-radius: 14px; }
  .sx-search-tabs button { padding: 9px; font-size: .9rem; border-radius: 11px; }
  .sx-search label { padding: 6px 10px; font-size: .72rem; border-radius: 12px; background: var(--bg-soft); }
  .sx-search label:first-of-type { grid-column: 1 / -1; }
  .sx-search select, .sx-search input { font-size: .95rem; }
  .sx-search .sx-btn { grid-column: 1 / -1; padding: 12px; border-radius: 14px; }
}
/* Tarjetas de ventajas en móvil: de dos en dos y compactas */
@media (max-width: 560px) {
  .sx-bento, .sx-bento--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .sx-bento .sx-tile { grid-column: span 1 !important; min-height: 0; padding: 16px 14px; gap: 6px; border-radius: 18px; justify-content: flex-start; }
  .sx-bento .sx-tile--a { grid-column: span 2 !important; padding: 24px 20px; }
  .sx-bento .sx-tile h3 { font-size: 1rem; line-height: 1.25; }
  .sx-bento .sx-tile--a h3 { font-size: 1.35rem; }
  .sx-bento .sx-tile p { font-size: .82rem; line-height: 1.45; }
  .sx-bento .sx-tile .sx-tile-ic { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 6px; }
  .sx-bento .sx-tile .sx-tile-ic svg { width: 18px; height: 18px; }
}
.sx-slide-copy .sx-kicker, .sx-slide-copy h1.sx-hero-h1 { margin: 0; line-height: 1.3; min-height: 1.3em; }
/* Comparativa: en pantalla grande el texto completo; en móvil, entera de un vistazo */
.sx-compare .cmp-s { display: none; }
@media (max-width: 640px) {
  .sx-compare-wrap { overflow: visible; }
  .sx-compare-wrap table { min-width: 0; table-layout: fixed; }
  .sx-compare .cmp-l { display: none; } .sx-compare .cmp-s { display: inline; }
  .sx-compare th, .sx-compare td { padding: 11px 6px; font-size: .78rem; line-height: 1.3; }
  .sx-compare th:first-child, .sx-compare td:first-child { width: 36%; padding-left: 2px; }
  .sx-compare thead th { font-size: .74rem; }
  .sx-compare .is-us { text-align: center; }
  .sx-compare .sx-yes::before { content: ""; }
  .sx-compare thead .is-us { border-radius: 12px 12px 0 0; }
  .sx-compare tbody tr:last-child .is-us { border-radius: 0 0 12px 12px; }
}
/* Pasos «Cómo trabajamos» en móvil: de dos en dos y compactos */
@media (max-width: 640px) {
  .sx-steps-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sx-step { padding: 14px 12px 14px; border-radius: 16px; }
  .sx-step::before { position: static; display: block; font-size: 1.35rem; margin-bottom: 4px; }
  .sx-step h3 { font-size: .98rem; line-height: 1.25; }
  .sx-step p { font-size: .8rem; line-height: 1.45; margin-top: 4px; }
  .sx-steps-sticky .lead { margin: 12px 0 18px !important; font-size: .95rem; }
}
/* Tarjetas de zona con foto muy tenue de fondo */
.sx-zone-card { overflow: hidden; }
.sx-zone-card > .sx-zone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: saturate(.6); transition: opacity .45s, transform .8s var(--ease); z-index: 0; }
.sx-zone-card::before { z-index: 1; }
.sx-zone-card > :not(.sx-zone-bg) { z-index: 2; }
.sx-zone-card:hover > .sx-zone-bg { opacity: .35; transform: scale(1.06); }
.sx-zone-card:hover::before { opacity: .88; }
@media (max-width: 640px) {
  .sx-zone-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sx-zone-card { min-height: 96px; padding: 14px 12px; gap: 8px; border-radius: 14px; }
  .sx-zone-card b { font-size: 1rem; padding-right: 26px; line-height: 1.2; }
  .sx-zone-card small { font-size: .74rem; line-height: 1.35; }
  .sx-zone-card .sx-arrow-ic { width: 26px; height: 26px; right: 10px; top: 10px; }
  .sx-zone-card .sx-arrow-ic svg { width: 11px; height: 11px; }
}
/* Móvil: todos los bloques de tarjetas de dos en dos y compactos */
@media (max-width: 640px) {
  .services-grid, .cx-features, .cx-features--3, .cx-steps, .stats-grid, .sx-val-choices { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .service-card, .cx-feature, .cx-steps li { padding: 14px 12px !important; border-radius: 16px; }
  .service-card img { height: 70px; margin-bottom: 8px; }
  .service-card h3, .cx-feature h3, .cx-steps h3 { font-size: .98rem !important; line-height: 1.25; margin: 6px 0 4px !important; }
  .service-card p, .cx-feature p, .cx-steps p { font-size: .8rem !important; line-height: 1.45; }
  .cx-step-n { width: 30px; height: 30px; font-size: .85rem; }
  .cx-feature svg, .cx-feature .cx-ic { width: 22px; height: 22px; }
  .sx-tile { padding: 16px 14px; }
  .area-services { grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: .85rem; }
  .features-list { grid-template-columns: 1fr 1fr; }
}
.sx-bento--3 .sx-tile:last-child:nth-child(odd), .cx-features > :last-child:nth-child(odd), .services-grid > :last-child:nth-child(odd) { }
@media (max-width: 640px) {
  .sx-bento--3 .sx-tile:last-child:nth-child(odd), .cx-features > :last-child:nth-child(odd), .services-grid > :last-child:nth-child(odd), .cx-steps > :last-child:nth-child(odd) { grid-column: span 2 !important; }
}
/* Menú del móvil: logo en blanco y todo en una pantalla */
@media (max-width: 1080px) {
  body.nav-open .sx-logo-img--dark { display: none !important; }
  body.nav-open .sx-logo-img--light { display: block !important; }
  .sx-nav { padding: 88px 28px 28px; gap: 0; justify-content: flex-start; }
  .sx-nav > a { font-size: clamp(1.45rem, 6vw, 1.9rem); padding: 5px 0; }
  .sx-drop-btn { display: block; pointer-events: none; margin: 12px 0 2px; padding: 0; background: none !important; color: #f3dcae !important; font: 600 .82rem var(--font); letter-spacing: 0; text-transform: none; opacity: .85; }
  .sx-drop-btn svg { display: none; }
  .sx-drop-menu a { font-family: var(--font); font-size: 1rem !important; font-weight: 500; padding: 4px 0 !important; }
  .sx-nav-contact { margin-top: 16px; padding-top: 14px; gap: 6px; font-size: .9rem; }
}
/* Formularios en tarjeta (valorar, cita, solicitar, oferta, portal): cabecera más baja y formulario compacto */
.sx-val-hero { padding-top: clamp(96px, 9vw, 120px); padding-bottom: 120px; }
.sx-val-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.06; margin: 10px 0 12px; }
.sx-val-hero .lead { font-size: 1rem; max-width: 640px; }
.sx-val-section { margin-top: -96px; }
.sx-val { max-width: 760px; padding: clamp(18px, 3vw, 32px); border-radius: 22px; }
.sx-val-steps { font-size: .8rem; margin-bottom: 6px; }
.sx-val-step legend { margin-bottom: 12px; }
.sx-val-step h2, .sx-cita-h { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.sx-cita-h { margin: 18px 0 10px; }
.sx-val-field { gap: 5px; margin-bottom: 10px; font-size: .88rem; }
.sx-val-field select, .sx-val-field input[type=text], .sx-val-field input[type=tel], .sx-val-field input[type=email], .sx-val-field input[type=number], .sx-val-field input[type=date], .sx-val-field textarea { padding: 9px 12px; border-radius: 10px; font-size: .95rem; }
.sx-val-grid { gap: 0 12px; }
.sx-choice span { padding: 14px; gap: 4px; border-radius: 14px; }
.sx-choice span svg { width: 22px; height: 22px; }
.sx-choice b { font-size: 1rem; }
.sx-choice small { font-size: .78rem; line-height: 1.35; }
.sx-val-nav { margin-top: 16px; }
.sx-val .sx-btn { padding: 12px 22px; }
@media (max-width: 700px) {
  .sx-val-hero { padding-top: 92px; padding-bottom: 96px; }
  .sx-val-hero h1 { font-size: 1.7rem; }
  .sx-val-hero .lead { font-size: .92rem; }
  .sx-val-section { margin-top: -76px; }
  .sx-val-grid { grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .sx-val-choices { grid-template-columns: 1fr 1fr 1fr !important; gap: 6px !important; }
  .sx-choice span { padding: 10px 8px; text-align: center; justify-items: center; }
  .sx-choice small { display: none; }
  .sx-choice b { font-size: .9rem; }
}
[hidden] { display: none !important; }
/* Menú móvil aún más compacto y opción activa legible */
@media (max-width: 1080px) {
  .sx-nav { padding: 80px 26px 24px; }
  .sx-nav > a { font-size: clamp(1.3rem, 5.4vw, 1.6rem); padding: 3px 0; }
  .sx-drop-btn { margin: 9px 0 1px; }
  .sx-drop-menu a { font-size: .95rem !important; padding: 3px 0 !important; }
  .sx-drop-menu a.is-active, .sx-drop-menu a[aria-current], .sx-nav > a.is-active { background: none !important; color: #f5c15d !important; opacity: 1 !important; }
  .sx-drop-menu a:hover { background: none !important; padding-left: 0 !important; color: #f5c15d !important; }
}
