/* ===========================================
   MONTES BLANCO REAL ESTATE — Boutique Luxury
   =========================================== */

/* ---------- RESET & TOKENS ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta */
  --navy: #0d2340;
  --navy-dark: #081730;
  --navy-deep: #050f24;
  --gold: #c8a45c;
  --gold-soft: #d9b97a;
  --gold-dark: #a8853f;
  --cream: #f8f5f0;
  --cream-warm: #efe9dd;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-soft: #5a5a5a;
  --line: rgba(13, 35, 64, 0.12);
  --line-gold: rgba(200, 164, 92, 0.35);
  --shadow-sm: 0 4px 12px rgba(13, 35, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 35, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 35, 64, 0.16);

  /* Tipografía */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tamaños / espaciado */
  --container: 1280px;
  --container-narrow: 980px;
  --radius: 4px;
  --radius-lg: 12px;
  --nav-h: 84px;

  /* Transiciones */
  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t: 320ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

p { color: var(--text-soft); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--dark p { color: rgba(248, 245, 240, 0.75); }

.section--cream { background: var(--cream); }

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  padding: 0 32px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.section-head .lead {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: #002349;
  box-shadow: 0 1px 0 rgba(200, 164, 92, 0.18);
  transition: height var(--t);
}

.nav.is-scrolled {
  height: 70px;
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.nav__brand-logo {
  height: var(--nav-h);
  width: auto;
  display: block;
  object-fit: cover;
  background: #002349;
  transition: height var(--t);
}

.nav.is-scrolled .nav__brand-logo { height: 70px; }

.nav__brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav__brand-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav__brand-stack { display: flex; flex-direction: column; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__menu a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav__menu a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t), left var(--t);
}

.nav__menu a:hover { color: var(--gold-soft); }
.nav__menu a:hover::after { width: 100%; left: 0; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background var(--t), color var(--t);
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--navy);
}

/* En pantallas anchas: menú perfectamente centrado en la barra,
   con la marca a la izquierda y el selector de idioma a la derecha */
@media (min-width: 1100px) {
  .nav__inner { position: relative; }
  .nav__inner > nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Custom language switcher (Google Translate hidden behind the scenes) */
.nav__translate { display: flex; align-items: center; margin-left: 4px; }

.gt-switch { position: relative; }

.gt-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.gt-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
/* Bandera vectorial (flag-icons): mismo aspecto en todos los sistemas */
.gt-flag.fi {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  background-size: cover;
  background-position: center;
}
.gt-menu button .gt-flag.fi { margin-right: 4px; vertical-align: -2px; }
.gt-code { letter-spacing: 0.12em; }
.gt-caret { opacity: 0.55; }

.gt-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 10px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  display: none;
  z-index: 120;
}
.gt-switch.is-open .gt-menu {
  display: block;
}
.gt-menu li { list-style: none; }
.gt-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.gt-menu button:hover { background: var(--cream); color: var(--navy); }
.gt-menu button.is-current { background: var(--cream); color: var(--navy); font-weight: 600; }

/* Hide Google Translate widget — moved completely off-screen */
#google_translate_element {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

/* Esconder banda superior y tooltips de Google Translate */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe.goog-te-banner-frame,
iframe.goog-te-menu-frame,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

html, body {
  top: 0 !important;
  position: static !important;
}

html.translated-ltr,
html.translated-rtl,
body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}

/* Esconder los tooltips/highlights de Google Translate */
.goog-tooltip,
.goog-tooltip:hover,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-ftab,
.goog-te-ftab-link,
.goog-te-ftab-float {
  display: none !important;
}

.goog-text-highlight {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Quitar el subrayado punteado que añade el traductor a algunos textos */
font.googleTranslateBubbleDelay,
font[style*="vertical-align"] {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--t), opacity var(--t);
}

.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  /* Alto = pantalla visible − navbar − franja de logotipos (partners),
     para que el carrusel de logos quede justo pegado al pie, igual que en móvil */
  min-height: calc(100vh - var(--nav-h) - 210px);
  min-height: calc(100svh - var(--nav-h) - 210px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Imagen oculta de inicio para que NO se vea durante el buffer del
   video. Sólo aparece (fade-in) cuando el video termina */
.hero__media .hero__img-fallback {
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero__media .hero__img-fallback.is-visible {
  opacity: 1;
}

/* Video encima de la imagen. Fondo navy mientras buffereá para que
   no se vea el flash blanco/transparente */
.hero__media video {
  z-index: 1;
  opacity: 1;
  background: #0a1830;
  transition: opacity 2.5s ease-in-out;
}

.hero__media video.is-ended {
  opacity: 0;
  pointer-events: none;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 15, 36, 0.55) 0%, rgba(5, 15, 36, 0.35) 40%, rgba(5, 15, 36, 0.75) 100%);
}

.hero__content {
  max-width: 920px;
  padding: 120px 24px 60px;
}

/* Barra navy sólida de ancho completo, justo debajo del menú fijo */
.hero__strip {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 2;
  background: #002349;
  border-bottom: 1px solid rgba(200, 164, 92, 0.45);
}

.hero__eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 10px 24px;
  text-align: center;
  opacity: 0;
  animation: rise .9s .2s forwards;
}

.hero__eyebrow-main {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  color: var(--white);
}

/* Antiguo divisor corto: la banda y sus filetes lo sustituyen */
.hero__eyebrow-line { display: none; }

.hero__eyebrow-sub {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: clamp(0.66rem, 1.1vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero__eyebrow-sub::before,
.hero__eyebrow-sub::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* Espacio en blanco donde estaba el título del hero (mantiene el
   equilibrio visual sin texto) */
.hero__spacer {
  height: clamp(40px, 9vh, 110px);
}

.hero__lead {
  margin: 28px auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  opacity: 0;
  animation: rise 1s .6s forwards;
}

.hero__lead strong {
  color: var(--gold-soft);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s .8s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: rise 1s 1.2s forwards;
  pointer-events: none;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--white);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* En escritorio: hero + carrusel de logos forman UNA pantalla exacta.
   El contenedor mide justo el alto visible; el carrusel ocupa su alto
   natural pegado abajo y el hero se estira para rellenar el resto.
   Sin números mágicos: el carrusel nunca se corta ni deja hueco. */
@media (min-width: 769px) {
  .hero-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero-screen .hero {
    flex: 1 0 auto;
    height: auto;
  }
  .hero-screen .partners {
    flex: 0 0 auto;
  }
  .hero__content {
    padding: calc(var(--nav-h) + 24px) 24px 28px;
  }
  .hero__eyebrow { margin-bottom: 0; }
  .hero__spacer { height: clamp(16px, 3.5vh, 56px); }
  .hero__lead { margin-top: 20px; }
  .hero__scroll { bottom: 24px; }

  /* Pantallas de portátil bajas: compactar el hero para que el
     cuadro de 'Asesores Inmobiliarios' nunca se recorte ni quede
     tapado por la barra superior */
  @media (max-height: 800px) {
    .hero__content { padding: calc(var(--nav-h) + 14px) 24px 18px; }
    .hero__eyebrow {
      margin-bottom: 0;
      gap: 6px;
    }
    .hero__eyebrow-main { font-size: clamp(0.82rem, 1.3vw, 1rem); }
    .hero__eyebrow-line { width: 44px; }
    .hero__eyebrow-sub { font-size: clamp(0.64rem, 1vw, 0.74rem); }
    .hero__spacer { height: clamp(8px, 1.6vh, 22px); }
    .hero__lead { margin-top: 12px; font-size: clamp(0.92rem, 1.1vw, 1rem); }
    .hero__lead br + br { display: none; }
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all var(--t);
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 164, 92, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media img {
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
}

.about__media::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: -28px;
  bottom: -28px;
  border: 1px solid var(--gold);
  z-index: -1;
}

.about__text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.about__text p + p { margin-top: 18px; }

.about__signature {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about__signature strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 500;
}

.about__signature span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- SERVICES ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  padding: 32px 24px 76px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-gold);
}

.service__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--gold);
}

.service h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Contacto rápido: 3 burbujas que aparecen al pasar/pulsar la tarjeta */
.service__contact {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}

.service:hover .service__contact,
.service:focus-within .service__contact,
.service.is-contact-open .service__contact {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line-gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(13, 35, 64, 0.08);
  transform: scale(0.85);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.service__dot svg { width: 18px; height: 18px; }

.service:hover .service__dot,
.service:focus-within .service__dot,
.service.is-contact-open .service__dot {
  opacity: 1;
  transform: scale(1);
}

.service__dot:nth-child(1) { transition-delay: .05s; }
.service__dot:nth-child(2) { transition-delay: .12s; }
.service__dot:nth-child(3) { transition-delay: .19s; }

.service__dot:hover,
.service__dot:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: scale(1.1);
  outline: none;
}

/* ---------- PROPERTIES (CTA externos) ---------- */
.portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--text);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.portal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portal__brand {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.portal__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 70%;
  background: transparent;
  padding: 0;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(13, 35, 64, 0.14);
  transition: transform var(--t);
}

/* Fotocasa: pastilla pequeña con su color de marca */
.portal__logo--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 9px 18px;
  border-radius: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(13, 35, 64, 0.14);
}

/* Misma pastilla para ambos; solo cambia el color de marca */
.portal--idealista .portal__logo--text { background: #e1f56f; color: #1a1a1a; }
.portal--fotocasa .portal__logo--text { background: #2d39af; color: #ffffff; }

.portal:hover .portal__logo {
  transform: scale(1.04);
}

.portal__body {
  padding: 26px 30px 30px;
}

.portal__label {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.portal h3 {
  color: var(--navy);
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.portal p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.portal__arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-dark);
  transition: color var(--t-fast);
}

.portal:hover .portal__arrow { color: var(--gold); }

.portal__arrow svg {
  transition: transform var(--t);
}
.portal:hover .portal__arrow svg { transform: translateX(6px); }

/* ---------- PARTNERS CAROUSEL (compact, right after hero) ---------- */
.partners {
  padding: clamp(20px, 3vw, 40px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.partners__title {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.partners__marquee {
  position: relative;
  overflow: hidden;
}

/* Degradado en los bordes via pseudo-elementos (no mask-image,
   que provoca repaint constante del contenido al hacer scroll) */
.partners__marquee::before,
.partners__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.partners__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.partners__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.partners__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: max-content;
  animation: partners-scroll 17s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.partners__marquee:hover .partners__track {
  animation-play-state: paused;
}

.partner {
  flex: 0 0 156px;
  width: 156px;
  height: 96px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity .3s, filter .3s;
}
.partner:hover { filter: grayscale(0); opacity: 1; }
.partner img {
  max-height: 70px;
  max-width: 132px;
  width: auto;
  object-fit: contain;
}

/* Ajustes individuales — vía max-height (no transform: scale, que
   provoca repaints al combinarse con el translateX del carrusel) */
.partner img[src*="SANTANDER"],
.partner img[src*="NEINOR"] {
  max-height: 86px;
  max-width: 140px;
}
.partner img[src*="SOLVIA"],
.partner img[src*="CAIXA"],
.partner img[src*="BASICO"] {
  max-height: 52px;
  max-width: 112px;
}
.partner__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
  white-space: nowrap;
  display: inline-block;
}

@keyframes partners-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- VISIT (oficina + mapa) ---------- */
.visit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--line);
}

/* Galería mosaico: 1 grande + 8 pequeñas en escritorio */
.visit__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--cream);
}

.visit__thumb {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--cream-warm);
  cursor: pointer;
  aspect-ratio: 1;
  transition: transform var(--t), box-shadow var(--t);
}

.visit__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.visit__thumb:hover {
  z-index: 1;
  box-shadow: 0 8px 22px rgba(13, 35, 64, 0.18);
}

.visit__thumb:hover img {
  transform: scale(1.06);
}

.visit__thumb--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.visit__thumb--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.visit__info {
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visit__info h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 24px;
}

.visit__info p { margin-bottom: 16px; }

.visit__details {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.visit__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.visit__detail svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 2px;
}

.visit__detail strong {
  display: block;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.visit__detail span { color: var(--text-soft); }

.visit-map {
  position: relative;
  z-index: 1;
  clear: both;
  margin-top: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 380px;
}

@media (max-width: 768px) {
  .visit-map iframe { height: 300px; }
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.contact-info--center { text-align: center; }
.contact-info--center .eyebrow { margin-left: auto; margin-right: auto; }
.contact-info--center .contact-list { max-width: 540px; margin: 0 auto; text-align: left; }
.contact-info--center .contact-list li { justify-content: flex-start; text-align: left; }
.contact-info--center .contact-list a,
.contact-info--center .contact-list span { text-align: left; }

.contact-info .lead {
  color: rgba(248, 245, 240, 0.8);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 24px;
}

.contact-list li {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(200, 164, 92, 0.18);
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-list a, .contact-list span {
  color: var(--cream);
  font-size: 1rem;
  transition: color var(--t-fast);
}

.contact-list a:hover { color: var(--gold-soft); }

.contact-form {
  background: var(--white);
  padding: clamp(28px, 4vw, 44px);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-form .small {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.18);
}

.field textarea { resize: vertical; min-height: 120px; }

.field--check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.field--check input { width: auto; margin-top: 4px; }
.field--check a { color: var(--navy); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer {
  background: #002349;
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 32px;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 240px;
  margin-bottom: 20px;
  background: #002349;
}

.footer__about {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer a:hover { color: var(--gold-soft); }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- WHATSAPP FAB ---------- */
/* Stack flotante: foto de Manolo + menú de canales que despliega */
.fab-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 92px;
  height: 92px;
}

/* Menú en absolute: NO ocupa layout cuando está cerrado, así el
   .fab-stack solo cubre el botón de Manolo y no tapa el botón
   'volver arriba' que está justo encima */
.fab-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.fab-stack.is-open .fab-menu {
  pointer-events: auto;
}

.fab-name {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-gold);
  box-shadow: 0 6px 16px rgba(13, 35, 64, 0.28);
  opacity: 0;
  transform: translateY(-50%) translateX(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.fab-stack.is-open .fab-name {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
  transition-delay: .12s;
}

.fab-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 35, 64, 0.28);
  opacity: 0;
  transform: scale(0.3) translateY(24px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.fab-stack.is-open .fab-item {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
/* Aparición escalonada de abajo (más cerca de Manolo) hacia arriba */
.fab-stack.is-open .fab-item:nth-last-child(1) { transition-delay: .02s; }
.fab-stack.is-open .fab-item:nth-last-child(2) { transition-delay: .06s; }
.fab-stack.is-open .fab-item:nth-last-child(3) { transition-delay: .10s; }
.fab-stack.is-open .fab-item:nth-last-child(4) { transition-delay: .14s; }
.fab-stack.is-open .fab-item:nth-last-child(5) { transition-delay: .18s; }
.fab-stack.is-open .fab-item:nth-last-child(6) { transition-delay: .22s; }
.fab-stack.is-open .fab-item:nth-last-child(7) { transition-delay: .26s; }
.fab-item:hover { transform: scale(1.1); }
.fab-stack.is-open .fab-item:hover { transform: scale(1.1) translateY(0); }
.fab-item svg { width: 22px; height: 22px; }

.fab-item--wa { background: #25d366; }
.fab-item--email { background: var(--gold-dark); }
.fab-item--ig { background: linear-gradient(135deg, #feda75, #d62976 50%, #4f5bd5); }
.fab-item--fb { background: #1877f2; }
.fab-item--idealista { background: #e1f56f; color: #1a1a1a; }
.fab-item--fotocasa { background: #2d39af; }
.fab-item--call { background: #002349; }
.fab-item__txt {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.whatsapp-fab {
  position: relative;
  width: 92px;
  height: 92px;
  background: #fff;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: block;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(13, 35, 64, 0.28), 0 0 0 3px rgba(37, 211, 102, 0.95);
  transition: transform var(--t), box-shadow var(--t);
  overflow: visible;
}

.whatsapp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(13, 35, 64, 0.35), 0 0 0 3px #25d366;
}

.fab-stack.is-open .whatsapp-fab {
  box-shadow: 0 14px 32px rgba(13, 35, 64, 0.4), 0 0 0 3px var(--gold);
}

.whatsapp-fab .wa-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Pulso latente tipo radar alrededor de la foto de Manolo,
   invita a pulsar. Se detiene cuando el menú está abierto. */
.whatsapp-fab .wa-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #25d366;
  pointer-events: none;
  animation: fabPulse 2.4s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: 0.85; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.fab-stack.is-open .whatsapp-fab .wa-pulse {
  animation: none;
  opacity: 0;
}

/* Botón flotante 'Volver arriba' */
.back-to-top {
  position: fixed;
  right: 36px;
  bottom: 132px;
  width: 48px;
  height: 48px;
  background: #002349;
  color: var(--gold-soft);
  border: 1px solid rgba(200, 164, 92, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 89;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mientras el menú FAB está abierto, ocultamos el botón 'volver
   arriba' para que no choque visualmente con los canales */
body:has(.fab-stack.is-open) .back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.back-to-top:hover {
  background: var(--gold);
  color: #002349;
  border-color: var(--gold);
}
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- LEGAL PAGES ---------- */
.legal {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--cream);
  min-height: 100vh;
}

.legal-content {
  background: var(--white);
  padding: clamp(36px, 5vw, 72px);
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.legal-content .legal-sub {
  color: var(--gold-dark);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--navy);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul {
  margin: 12px 0 18px 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-content a { color: var(--navy); text-decoration: underline; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about,
  .visit,
  .contact-wrap {
    grid-template-columns: 1fr !important;
  }

  .about__media { max-width: 460px; margin: 0 auto; }
  .about__media::before { display: none; }

  .visit__gallery { grid-template-columns: repeat(3, 1fr); }

  .portals { grid-template-columns: 1fr 1fr; gap: 14px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }

  .nav__inner { padding: 0 18px; gap: 12px; }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #002349;
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px 40px;
    gap: 22px;
    transform: translateY(-120%);
    transition: transform var(--t);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav.is-open .nav__menu { transform: translateY(0); }

  .nav__menu li { width: 100%; }
  .nav__menu a { font-size: 1rem; display: inline-block; }

  /* Selector idioma siempre visible en navbar móvil */
  .nav__translate { margin-left: auto; }
  .gt-trigger { padding: 5px 10px; font-size: 0.72rem; gap: 6px; }
  .gt-flag.fi { width: 20px; height: 14px; }
  .gt-menu {
    right: 0;
    left: auto;
    min-width: 200px;
    top: calc(100% + 6px);
  }

  .nav__cta { display: none; }
  .nav__menu .nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
    padding: 18px 28px;
    width: 100%;
  }

  .nav__toggle { display: inline-flex; }

  .hero { min-height: calc(100vh - 130px); min-height: calc(100svh - 130px); align-items: flex-end; }
  .hero__content { padding: 90px 20px 26px; }
  .hero__spacer { height: clamp(24px, 5vh, 56px); }
  .hero__eyebrow-main { font-size: clamp(0.78rem, 2.6vw, 0.95rem); }
  .hero__lead { font-size: 0.98rem; padding: 0 6px; }
  .hero__actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .hero__actions .btn { justify-content: center; }
  .hero__scroll { display: none; }

  .about__media { max-width: 100%; margin: 0 auto; }

  .services { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service { padding: 22px 14px 64px; }
  .service__icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .service h3 { font-size: 1.1rem; margin-bottom: 10px; }
  .service p { font-size: 0.85rem; line-height: 1.5; }
  .service__contact { bottom: 20px; gap: 10px; }
  .service__dot { width: 36px; height: 36px; }
  .service__dot svg { width: 16px; height: 16px; }

  .portal__brand { height: 70px; padding: 0; }
  .portal__logo { height: 40px; max-width: 70%; }
  .portal__logo--text { height: auto; font-size: 1.05rem; padding: 8px 15px; }
  .portal__body { padding: 16px 16px 18px; }
  .portal__arrow { font-size: 0.62rem; letter-spacing: 0.12em; gap: 7px; }

  /* Apartado VISIT en móvil */
  .visit__gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; }
  .visit__thumb--lg { grid-column: span 2; grid-row: span 1; aspect-ratio: 4 / 3; }
  .visit__thumb--wide { aspect-ratio: 16 / 11; }
  .visit__info {
    padding: 32px 24px;
    background: var(--cream);
  }

  .partner { height: 84px; flex: 0 0 118px; width: 118px; min-width: 0; padding: 0 6px; }
  .partner img { max-height: 56px; max-width: 100px; }
  .partner img[src*="SANTANDER"],
  .partner img[src*="NEINOR"] { max-height: 70px; max-width: 106px; }
  .partner img[src*="SOLVIA"],
  .partner img[src*="CAIXA"],
  .partner img[src*="BASICO"] { max-height: 44px; max-width: 86px; }
  .partners__marquee::before,
  .partners__marquee::after { width: 40px; }
  .partners { padding: 12px 0; }
  .partners__title { font-size: 0.8rem; margin-bottom: 8px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .fab-stack { bottom: 20px; right: 20px; width: 72px; height: 72px; }
  .whatsapp-fab {
    width: 72px;
    height: 72px;
  }
  .fab-item { width: 46px; height: 46px; }
  .fab-item svg { width: 20px; height: 20px; }
  .fab-item__txt { font-size: 0.95rem; }

  .back-to-top {
    bottom: 112px;
    right: 24px;
    width: 42px;
    height: 42px;
  }
  .back-to-top svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .nav__brand-sub { display: none; }
  .nav__brand-mark { font-size: 1.2rem; }
  .nav__brand-logo { height: 56px; }
  .nav.is-scrolled .nav__brand-logo { height: 56px; }
  :root { --nav-h: 64px; }

  .hero { min-height: calc(100vh - 118px); min-height: calc(100svh - 118px); align-items: flex-end; }
  .hero__content { padding: 80px 16px 22px; }
  .hero__eyebrow { gap: 6px; }
  .hero__eyebrow-main { font-size: clamp(0.78rem, 3vw, 0.95rem); }
  .hero__eyebrow-sub { font-size: 0.68rem; letter-spacing: 0.28em; }
  .hero__eyebrow-line { width: 44px; }
  .hero__spacer { height: clamp(20px, 4vh, 44px); }

  .section-head h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  .about__media { max-width: 100%; margin: 0 auto; }

  .portal__brand { height: 64px; padding: 0; }
  .portal__logo { height: 36px; max-width: 70%; }
  .portal__logo--text { height: auto; font-size: 1rem; padding: 7px 14px; }
  .portal__body { padding: 12px 12px 14px; }
  .portal p { font-size: 0.84rem; line-height: 1.5; margin-bottom: 14px; }
  .portal__arrow { font-size: 0.56rem; letter-spacing: 0.06em; gap: 5px; }
  .portal__arrow svg { width: 16px; }

  .visit-map iframe { height: 260px; }

  .partner { height: 78px; flex: 0 0 104px; width: 104px; min-width: 0; padding: 0 5px; }
  .partner img { max-height: 50px; max-width: 88px; }
  .partner img[src*="SANTANDER"],
  .partner img[src*="NEINOR"] { max-height: 62px; max-width: 94px; }
  .partner img[src*="SOLVIA"],
  .partner img[src*="CAIXA"],
  .partner img[src*="BASICO"] { max-height: 40px; max-width: 76px; }
  .partner__name { font-size: 1rem; }
  .partners { padding: 10px 0; }
  .partners__title { margin-bottom: 6px; }

  .contact-list li { font-size: 0.92rem; padding: 14px 0; }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__media img,
  .hero__media video {
    animation: none;
  }

  .partners__track { animation: none; }
  .whatsapp-fab .wa-pulse { animation: none; opacity: 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============== LIGHTBOX (galería Visítenos) ============== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 36, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 200;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
body.lightbox-open { overflow: hidden; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close svg,
.lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox__close:hover { background: rgba(255, 255, 255, 0.14); transform: scale(1.06); }
.lightbox__nav--prev:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-50%) scale(1.06); }
.lightbox__nav--next:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-50%) scale(1.06); }

@media (max-width: 600px) {
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* Mapa de fondo decorativo en sección 'Nuestros inmuebles' */
#properties {
  position: relative;
  overflow: hidden;
}
#properties::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/MAP.webp') center center / cover no-repeat;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
#properties > .container {
  position: relative;
  z-index: 1;
}
