/*
Theme Name: Inmomarsa
Theme URI: https://inmomarsa.com
Author: Inmomarsa
Description: Tema inmobiliario minimalista y elegante para Inmomarsa. Cuenca, Ecuador.
Version: 1.5.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: inmomarsa
*/

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  /* ── Paleta exacta del logo Inmomarsa ── */
  /*   INMOMARSA text  → navy  #1C3C72           */
  /*   Techos/roofs    → blue  #2B6CC4            */
  /*   Olas/waves      → blue-lt #5097E0          */
  /*   Fondos          → paper #F0F5FC            */
  --white:     #FFFFFF;
  --paper:     #F0F5FC;        /* blanco azulado muy suave */
  --smoke:     #DDE8F7;        /* gris azulado — bordes suaves */
  --stone:     #A8BCDA;        /* gris-azul medio */
  --slate:     #4A618A;        /* texto secundario azulado */
  --ink:       #1C3C72;        /* navy del texto "INMOMARSA" */
  --blue:      #2B6CC4;        /* azul techos/roofs del logo */
  --blue-lt:   #5097E0;        /* azul olas/waves — hover, acentos */
  --blue-dk:   #1A4F9A;        /* azul oscuro — hover dark */
  --blue-pale: #E2EDFB;        /* fondo azul muy claro */
  --navy:      #0E2144;        /* navy profundo — hero, footer */
  /* aliases compatibles */
  --gold:      var(--blue);
  --gold-lt:   var(--blue-pale);
  --gold-dk:   var(--blue-dk);
  --wa:        #25D366;
  --wa-dk:     #1da851;
  /* ── Tipografía ── */
  --font-d:    'Montserrat', system-ui, sans-serif;
  --font-b:    'Inter', system-ui, sans-serif;
  --nav-h:   72px;
  --cx:      1200px;
  --px:      clamp(1.25rem, 5vw, 3.5rem);
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --sh-sm: 0 1px 4px rgba(0,0,0,0.06);
  --sh-md: 0 4px 24px rgba(15,31,61,0.10);
  --sh-lg: 0 8px 40px rgba(15,31,61,0.14);
  --sh-xl: 0 20px 60px rgba(15,31,61,0.18);
}

/* =========================================================
   RESET + BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.skip-link {
  position: absolute;
  transform: translateY(-100%);
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
}

/* =========================================================
   CONTAINER + SECTION
   ========================================================= */
.im-wrap {
  width: 100%;
  max-width: var(--cx);
  margin-inline: auto;
  padding-inline: var(--px);
}

.im-section {
  padding-block: clamp(88px, 11vw, 140px) 0;
}

.im-section--paper {
  background: var(--paper);
}

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

.im-section--smoke {
  background: var(--smoke);
}

/* =========================================================
   LOADER
   ========================================================= */
#im-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s, visibility 0.5s;
}

#im-loader.is-out {
  opacity: 0;
  pointer-events: none;
}

.im-loader-logo {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: white;
}

.im-loader-logo span {
  color: var(--gold);
}

.im-loader-bar {
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.im-loader-fill {
  height: 100%;
  background: var(--gold);
  width: 0;
  animation: im-loader-fill 1.2s ease forwards;
}

@keyframes im-loader-fill {
  to { width: 100%; }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#im-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--smoke);
  transition: background 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

/* Transparent nav on home hero */
body.home #im-nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

body.home #im-nav:not(.scrolled) .im-logo-text,
body.home #im-nav:not(.scrolled) .im-logo-text span {
  color: white;
}

body.home #im-nav:not(.scrolled) .im-nav-links a:not(.im-nav-cta) {
  color: rgba(255,255,255,0.80);
}

body.home #im-nav:not(.scrolled) .im-nav-links a:not(.im-nav-cta):hover {
  color: white;
  background: rgba(255,255,255,0.07);
}

body.home #im-nav:not(.scrolled) .im-hamburger span {
  background: rgba(255,255,255,0.80);
}

body.home #im-nav:not(.scrolled) .im-logo img {
  filter: brightness(0) invert(1);
}

.im-logo a {
  display: flex;
  align-items: center;
}

.im-logo img {
  height: 52px;
  max-width: 180px;
  object-fit: contain;
  transition: height 0.3s;
}

#im-nav.scrolled .im-logo img {
  height: 40px;
}

.im-logo-text {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.45s;
}

.im-logo-text span {
  color: var(--gold);
  transition: color 0.45s;
}

.im-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.im-nav-links a {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  color: var(--slate);
  border-radius: var(--r-xs);
  transition: color 0.25s, background 0.25s;
}

.im-nav-links a:hover,
.im-nav-links a.is-active {
  color: var(--gold);
  background: transparent;
}

.im-nav-cta {
  background: var(--blue) !important;
  color: white !important;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 10px 22px;
  border-radius: var(--r-xs);
  margin-left: 8px;
  transition: background 0.3s;
}

.im-nav-cta:hover {
  background: var(--blue-dk) !important;
}

#im-nav.scrolled {
  box-shadow: var(--sh-sm);
}

/* =========================================================
   HAMBURGER
   ========================================================= */
.im-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.im-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: 0.3s var(--ease);
}

.im-hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.im-hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.im-hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* =========================================================
   MOBILE NAV
   ========================================================= */
.im-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--navy);
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}

.im-mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.im-mobile-nav a {
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  padding: 18px var(--px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: block;
  transition: color 0.2s;
}

.im-mobile-nav a:hover {
  color: white;
}

.im-mobile-cta {
  margin: 28px var(--px) 0;
  background: var(--gold);
  color: white !important;
  border-radius: var(--r-xs);
  text-align: center;
  padding: 15px;
  letter-spacing: 0.16em;
  font-weight: 500;
  display: block;
}

/* =========================================================
   HERO
   ========================================================= */
.im-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
}

.im-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.im-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 8s ease;
}

.im-hero:hover .im-hero-bg img {
  transform: scale(1.03);
}

.im-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,24,53,0.92) 0%, rgba(9,24,53,0.50) 45%, rgba(9,24,53,0.18) 100%);
  z-index: 1;
}

.im-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.im-hero-inner {
  max-width: var(--cx);
  margin: 0 auto;
  padding: 0 var(--px) 80px;
}

.im-hero-tag {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.im-hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.im-hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 24px;
  max-width: 16ch;
}

.im-hero-h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold);
}

.im-hero-p {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255,255,255,0.60);
  max-width: 460px;
  margin-bottom: 44px;
}

.im-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.im-hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.im-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.im-kpi-n {
  font-family: var(--font-d);
  font-size: 40px;
  font-weight: 400;
  color: white;
  line-height: 1;
  display: inline;
}

.im-kpi-suf {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 300;
  color: var(--gold);
}

.im-kpi-lbl {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  display: block;
}

.im-kpi-sep {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.im-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.im-btn-dark {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.im-btn-dark:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
}

.im-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.30);
}

.im-btn-outline:hover {
  background: rgba(255,255,255,0.07);
  color: white;
  border-color: rgba(255,255,255,0.65);
}

.im-btn-outline-dk {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.im-btn-outline-dk:hover {
  background: var(--ink);
  color: white;
}

.im-btn-gold {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.im-btn-gold:hover {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
  box-shadow: 0 4px 24px rgba(184,148,74,0.35);
}

.im-btn-wa {
  background: var(--wa);
  color: white;
  border-color: var(--wa);
}

.im-btn-wa:hover {
  background: var(--wa-dk);
  border-color: var(--wa-dk);
}

/* =========================================================
   SECTION HEADS
   ========================================================= */
.im-sh {
  margin-bottom: 64px;
}

.im-sh--center {
  text-align: center;
}

.im-sh--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.im-eyebrow {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.im-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  display: block;
}

.im-sh--center .im-eyebrow {
  justify-content: center;
}

.im-sh--center .im-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  display: block;
}

.im-h2 {
  font-family: var(--font-d);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.im-h2 em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold);
}

.im-h2--light {
  color: white !important;
}

.im-sh-p {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
  max-width: 440px;
}

.im-sh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--stone);
  transition: color 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

.im-sh-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* =========================================================
   PROPERTY CARDS
   ========================================================= */
/* =========================================================
   PROPERTY CARD
   ========================================================= */
.im-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--smoke);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s;
  height: 100%;
}

.im-card:hover {
  box-shadow: 0 16px 48px rgba(14,33,68,0.16);
  transform: translateY(-6px);
  border-color: transparent;
}

/* ── Imagen ── */
.im-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  flex-shrink: 0;
}

.im-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.im-card:hover .im-card-img img {
  transform: scale(1.06);
}

.im-card-img-ph {
  width: 100%;
  height: 100%;
  background: var(--blue-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--stone);
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Badge operación (top-left) */
.im-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: white;
  font-family: var(--font-b);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  z-index: 2;
}

.im-card-badge--rent {
  background: var(--blue-lt);
}

/* Precio en overlay sobre la imagen (bottom) */
.im-card-price-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(9,24,53,0.82) 0%, rgba(9,24,53,0.30) 70%, transparent 100%);
  padding: 32px 16px 14px;
}

.im-card-price {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ── Cuerpo ── */
.im-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.im-card-loc {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 400;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.im-card-title {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0;
  flex: 1;
}

/* ── Specs row ── */
.im-card-feats {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--smoke);
}

.im-card-feat {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.im-card-feat svg {
  color: var(--blue);
  flex-shrink: 0;
}

.im-card-feat-sep {
  width: 1px;
  height: 20px;
  background: var(--smoke);
  flex-shrink: 0;
}

/* ── Footer: Ver propiedad ── */
.im-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--smoke);
}

.im-card-cta {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.2s;
}

.im-card-arrow {
  color: var(--blue);
  transition: transform 0.3s var(--ease), color 0.2s;
  flex-shrink: 0;
}

.im-card:hover .im-card-cta { color: var(--blue-dk); }
.im-card:hover .im-card-arrow { transform: translateX(4px); color: var(--blue-dk); }

/* =========================================================
   GRIDS
   ========================================================= */
.im-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.im-grid > article {
  display: flex;
  flex-direction: column;
}

.im-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.im-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================================================
   STEPS
   ========================================================= */
.im-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--smoke);
}

.im-step {
  padding: 52px 44px;
  border-right: 1px solid var(--smoke);
  background: white;
  transition: background 0.35s;
  position: relative;
}

.im-step:last-child {
  border-right: none;
}

.im-step:hover {
  background: var(--paper);
}

.im-step-n {
  font-family: var(--font-d);
  font-size: 76px;
  font-weight: 300;
  color: var(--smoke);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}

.im-step-icon {
  color: var(--gold);
  margin-bottom: 20px;
  width: 28px;
  height: 28px;
}

.im-step-icon svg {
  width: 28px;
  height: 28px;
}

.im-step-t {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.im-step-p {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
}

/* =========================================================
   ABOUT SPLIT
   ========================================================= */
.im-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.im-about-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.im-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--smoke);
}

.im-stat {
  display: flex;
  flex-direction: column;
}

.im-stat-n {
  font-family: var(--font-d);
  font-size: 50px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  display: inline;
}

.im-stat-suf {
  font-family: var(--font-d);
  font-size: 30px;
  color: var(--gold);
}

.im-stat-lbl {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
  display: block;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.im-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.im-testi {
  background: var(--paper);
  padding: 44px 36px;
  border: 1px solid var(--smoke);
  transition: box-shadow 0.4s, transform 0.4s;
}

.im-testi:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.im-testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
}

.im-testi-stars svg {
  fill: var(--gold);
  color: var(--gold);
}

.im-testi-quote {
  font-family: var(--font-b);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.62;
  margin-bottom: 32px;
}

.im-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.im-testi-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--gold-dk);
  flex-shrink: 0;
}

.im-testi-name {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.im-testi-role {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 300;
  color: var(--slate);
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.im-cta-strip {
  background: var(--navy);
  padding: clamp(88px, 11vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

.im-cta-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.im-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.im-cta-eyebrow {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.im-cta-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  display: block;
}

.im-cta-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  display: block;
}

.im-cta-h2 {
  font-family: var(--font-d);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  color: white;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.im-cta-h2 em {
  font-style: normal;
  font-weight: 800;
  color: var(--blue-lt);
}

.im-cta-p {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.40);
  margin-bottom: 48px;
  line-height: 1.75;
}

.im-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.im-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.im-footer-inner {
  padding: 88px 0 0;
}

.im-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.im-fcol-logo {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
  display: block;
}

.im-fcol-logo span {
  color: var(--gold);
}

.im-fcol-desc {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.30);
  line-height: 1.78;
  margin-bottom: 24px;
}

.im-fcol-head {
  font-family: var(--font-b);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
}

.im-fcol-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.im-fcol-links a {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  padding: 7px 0;
  transition: color 0.2s;
  display: block;
}

.im-fcol-links a:hover {
  color: white;
}

.im-footer-bar {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.im-footer-copy {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.20);
  letter-spacing: 0.05em;
}

/* =========================================================
   SCROLL TOP
   ========================================================= */
#im-scroll-top {
  position: fixed;
  bottom: 32px;
  left: 24px;
  right: auto;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.10);
}

#im-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#im-scroll-top:hover {
  background: var(--blue-dk);
}

/* =========================================================
   PAGE HEADER
   ========================================================= */
.im-page-head {
  background: var(--navy);
  padding: calc(var(--nav-h) + 64px) 0 88px;
  position: relative;
}

.im-page-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.im-page-head h1 {
  font-family: var(--font-d);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  color: white;
  letter-spacing: -0.02em;
}

.im-page-head h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold);
}

.im-page-head p {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-top: 18px;
}

.im-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  margin-bottom: 28px;
}

.im-breadcrumb a {
  color: rgba(255,255,255,0.30);
  transition: color 0.2s;
}

.im-breadcrumb a:hover {
  color: var(--gold);
}

.im-breadcrumb span {
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   ARCHIVE / FILTER
   ========================================================= */
.im-filter-bar {
  background: white;
  border-bottom: 1px solid var(--smoke);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  padding: 24px 0;
}

.im-filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.im-filter-select {
  font-family: var(--font-b);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--stone);
  padding: 10px 32px 10px 14px;
  background: white;
  color: var(--ink);
  border-radius: var(--r-xs);
  cursor: pointer;
  min-width: 140px;
  transition: border-color 0.25s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7672' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}

.im-filter-select:focus {
  outline: none;
  border-color: var(--gold);
}

.im-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.im-chip {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--stone);
  background: white;
  color: var(--slate);
  cursor: pointer;
  border-radius: var(--r-xs);
  transition: 0.25s;
}

.im-chip.is-active,
.im-chip:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.im-results-bar {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.im-results-count {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--slate);
}

/* =========================================================
   SINGLE PROPERTY
   ========================================================= */
.im-prop-hero {
  width: 100%;
  aspect-ratio: 21/8;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  position: relative;
}

.im-prop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.im-prop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 88px;
}

.im-prop-price {
  font-family: var(--font-d);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.im-prop-title {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
}

.im-prop-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.im-prop-badge {
  font-family: var(--font-b);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--stone);
  color: var(--slate);
  border-radius: var(--r-xs);
}

.im-prop-badge--op {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.im-prop-feats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--smoke);
  border: 1px solid var(--smoke);
  margin-bottom: 44px;
}

.im-prop-feat {
  background: white;
  padding: 20px;
  text-align: center;
}

.im-prop-feat-n {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  display: block;
}

.im-prop-feat-lbl {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
  display: block;
}

.im-prop-desc {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.8;
}

.im-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 32px;
}

.im-gallery-thumb {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
}

.im-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.im-gallery-thumb:hover img {
  transform: scale(1.05);
}

.im-prop-contact-card {
  background: var(--paper);
  border: 1px solid var(--smoke);
  padding: 36px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.im-prop-contact-h {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}

.im-prop-contact-p {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  color: var(--slate);
  margin-bottom: 24px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
#im-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#im-lightbox.is-open {
  display: flex;
}

#im-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.im-lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-d);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.im-lb-close:hover {
  color: white;
}

.im-lb-prev,
.im-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  font-size: 24px;
  transition: color 0.2s;
}

.im-lb-prev {
  left: 16px;
}

.im-lb-next {
  right: 16px;
}

.im-lb-prev:hover,
.im-lb-next:hover {
  color: white;
}

/* =========================================================
   CONTACT / INFO
   ========================================================= */
.im-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.im-cinfo-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--smoke);
}

.im-cinfo-item:first-child {
  border-top: 1px solid var(--smoke);
}

.im-cinfo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-lt);
  color: var(--gold);
  flex-shrink: 0;
}

.im-cinfo-label {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
  display: block;
}

.im-cinfo-value {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  display: block;
}

.im-contact-form-card {
  background: var(--paper);
  border: 1px solid var(--smoke);
  border-radius: var(--r-md);
  padding: clamp(24px, 5vw, 48px);
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.im-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.im-value-card {
  padding: 40px;
  border: 1px solid var(--smoke);
  background: white;
  transition: box-shadow 0.35s;
}

.im-value-card:hover {
  box-shadow: var(--sh-md);
}

.im-value-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}

.im-value-icon svg {
  width: 24px;
  height: 24px;
}

.im-value-t {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}

.im-value-p {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.75;
}

.im-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.im-team-card {
  overflow: hidden;
}

.im-team-av {
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 16px;
}

.im-team-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.im-team-card:hover .im-team-av img {
  transform: scale(1.04);
}

.im-team-name {
  font-family: var(--font-d);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}

.im-team-role {
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.im-team-bio {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  color: var(--slate);
  margin-top: 8px;
  line-height: 1.65;
}

.im-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.im-tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--smoke);
  align-items: start;
}

.im-tl-item:first-child {
  border-top: 1px solid var(--smoke);
}

.im-tl-year {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.im-tl-title {
  font-family: var(--font-d);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.im-tl-text {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
}

/* =========================================================
   FORMS
   ========================================================= */
.im-form-group {
  margin-bottom: 20px;
}

.im-label {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  display: block;
}

.im-input,
.im-select,
.im-textarea {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  border: 1px solid var(--stone);
  border-radius: var(--r-xs);
  padding: 13px 16px;
  color: var(--ink);
  background: white;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.im-input:focus,
.im-select:focus,
.im-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,74,0.10);
}

.im-form-btn {
  width: 100%;
  background: var(--gold);
  color: white;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px;
  border: none;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.im-form-btn:hover {
  background: var(--gold-dk);
}

.im-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#im-contact-alert {
  padding: 14px 18px;
  border-radius: var(--r-xs);
  font-family: var(--font-b);
  font-size: 14px;
  display: none;
}

#im-contact-alert.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

#im-contact-alert.error {
  display: block;
  background: #ffeaea;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* =========================================================
   404
   ========================================================= */
.im-404-wrap {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--px);
}

.im-404-num {
  font-family: var(--font-d);
  font-size: clamp(100px, 20vw, 200px);
  font-weight: 300;
  color: var(--smoke);
  line-height: 1;
  letter-spacing: -0.06em;
  display: block;
  margin-bottom: -20px;
}

.im-404-title {
  font-family: var(--font-d);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}

/* =========================================================
   BLOG
   ========================================================= */
.im-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.im-blog-card {
  border: 1px solid var(--smoke);
  overflow: hidden;
  transition: box-shadow 0.35s, transform 0.35s;
}

.im-blog-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}

.im-blog-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.im-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.im-blog-card:hover .im-blog-thumb img {
  transform: scale(1.04);
}

.im-blog-body {
  padding: 24px;
}

.im-blog-date {
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 10px;
}

.im-blog-title {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
}

.im-blog-title a {
  color: inherit;
}

.im-blog-title a:hover {
  color: var(--gold);
}

.im-blog-excerpt {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 16px;
}

.im-blog-more {
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.im-blog-more:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* =========================================================
   SKELETON
   ========================================================= */
.im-sk {
  background: linear-gradient(90deg, var(--smoke) 25%, var(--paper) 50%, var(--smoke) 75%);
  background-size: 200%;
  animation: im-sk 1.5s infinite;
  border-radius: var(--r-sm);
}

@keyframes im-sk {
  to { background-position: -200% 0; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.im-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.im-pag-btn {
  font-family: var(--font-b);
  font-size: 12px;
  padding: 10px 16px;
  border: 1px solid var(--stone);
  color: var(--slate);
  background: white;
  cursor: pointer;
  transition: 0.25s;
  border-radius: var(--r-xs);
}

.im-pag-btn:hover,
.im-pag-btn.is-active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.im-pag-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .im-grid { grid-template-columns: repeat(2, 1fr); }
  .im-footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .im-about { grid-template-columns: 1fr; gap: 48px; }
  .im-prop-layout { grid-template-columns: 1fr; }
  .im-contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .im-contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .im-hero { height: auto; min-height: 100svh; padding-top: var(--nav-h); justify-content: flex-end; }
  .im-hero-inner { padding-bottom: 60px; }
  .im-hero-h1 { font-size: clamp(40px, 12vw, 64px); }
  .im-hero-stats { gap: 20px; flex-wrap: wrap; }
  .im-steps { grid-template-columns: 1fr; }
  .im-step { border-right: none; border-bottom: 1px solid var(--smoke); }
  .im-step:last-child { border-bottom: none; }
  .im-testi-grid { grid-template-columns: 1fr; }
  .im-grid { grid-template-columns: 1fr; }
  .im-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .im-team-grid { grid-template-columns: repeat(2, 1fr); }
  .im-sh--split { flex-direction: column; align-items: flex-start; }
  .im-footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .im-footer-bar { flex-direction: column; text-align: center; }
  .im-cta-btns { flex-direction: column; align-items: center; }
  .im-form-row { grid-template-columns: 1fr; }
  .im-hamburger { display: flex; }
  .im-nav-links { display: none; }
  .im-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .im-blog-grid { grid-template-columns: 1fr; }
  .im-values-grid { grid-template-columns: 1fr; }
  .im-prop-gallery { flex-direction: column; }
  .im-prop-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .im-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .im-prop-sidebar { position: static; }
  .im-form-row { grid-template-columns: 1fr; }
  .im-filters { flex-wrap: wrap; gap: 10px; }
}

/* =========================================================
   PAGE HEAD — named elements
   ========================================================= */
.im-page-head-title {
  font-family: var(--font-d);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.im-page-head-title em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold);
}

.im-page-head-sub {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-top: 18px;
}

/* =========================================================
   FORM ALIASES (.im-form-*)
   ========================================================= */
.im-form-label {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  display: block;
}

.im-form-input {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  border: 1px solid var(--stone);
  border-radius: var(--r-xs);
  padding: 13px 16px;
  color: var(--ink);
  background: white;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.im-form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,74,0.10);
}

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

/* =========================================================
   FILTER BAR — form layout
   ========================================================= */
.im-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.im-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 130px;
}

.im-filter-label {
  font-family: var(--font-b);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
}

/* =========================================================
   PROPERTY GALLERY
   ========================================================= */
.im-prop-gallery {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  background: var(--navy);
}

.im-prop-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/6;
  overflow: hidden;
  background: var(--smoke);
}

.im-prop-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.im-prop-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.im-thumb-btn {
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--smoke);
}

.im-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.im-thumb-btn:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.im-gallery-expand {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.70);
  color: white;
  border: 1px solid rgba(255,255,255,0.20);
  padding: 10px 18px;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-xs);
  transition: background 0.25s;
}

.im-gallery-expand:hover {
  background: rgba(0,0,0,0.90);
}

/* =========================================================
   PROPERTY SPECS GRID
   ========================================================= */
.im-prop-specs {
  margin: 32px 0;
  padding: 32px 0;
  border-top: 1px solid var(--smoke);
  border-bottom: 1px solid var(--smoke);
}

.im-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--smoke);
  border: 1px solid var(--smoke);
}

.im-spec-item {
  background: white;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.im-spec-icon {
  color: var(--gold);
}

.im-spec-icon svg {
  display: block;
}

.im-spec-val {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.im-spec-lbl {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
}

/* =========================================================
   PROPERTY SINGLE — layout pieces
   ========================================================= */
.im-prop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  padding-block: 64px 88px;
}

.im-prop-main > * + * {
  margin-top: 48px;
}

.im-prop-head {
  /* section intro */
}

.im-prop-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.im-prop-price-box {
  background: var(--paper);
  border: 1px solid var(--smoke);
  padding: 32px;
}

.im-prop-contact-form {
  background: var(--paper);
  border: 1px solid var(--smoke);
  padding: 32px;
}

.im-prop-desc,
.im-prop-amenidades,
.im-prop-video,
.im-prop-tour,
.im-prop-mapa {
  /* spacing handled by + * selector above */
}

/* =========================================================
   LIGHTBOX — template-specific IDs
   ========================================================= */
.im-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.im-lightbox.is-open {
  display: flex;
}

.im-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.im-lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.im-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,0.7);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, border-color 0.2s;
}

.im-lightbox-close:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.im-lightbox-prev,
.im-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.im-lightbox-prev { left: 24px; }
.im-lightbox-next { right: 24px; }

.im-lightbox-prev:hover,
.im-lightbox-next:hover {
  color: white;
  background: rgba(255,255,255,0.12);
}

.im-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-b);
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.12em;
}

/* =========================================================
   CONTACT — layout
   ========================================================= */
.im-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.im-form-row {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1024px) {
  .im-contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .im-form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   SKELETON PULSE
   ========================================================= */
@keyframes im-pulse {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}

@media (max-width: 480px) {
  .im-hero-stats { display: none; }
  .im-hero-btns { flex-direction: column; }
  .im-prop-feats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   INMOMARSA BLUE OVERRIDE — tipografía + colores de marca
   ========================================================= */

/* Resets de peso para tipografía Montserrat en diseño */
.im-hero-h1       { font-weight: 800; letter-spacing: -0.03em; }
.im-h2            { font-weight: 700; }
.im-h2 em         { font-style: normal; font-weight: 800; color: var(--blue-lt); }
.im-hero-h1 em    { font-style: normal; color: var(--blue-lt); }
.im-cta-h2        { font-weight: 800; }
.im-cta-h2 em     { font-style: normal; color: var(--blue-lt); }
.im-step-t        { font-weight: 700; }
.im-fcol-logo     { font-weight: 800; letter-spacing: 0.08em; }
.im-loader-logo   { font-weight: 800; letter-spacing: 0.20em; }
.im-logo-text     { font-weight: 800; letter-spacing: 0.08em; }
.im-eyebrow       { color: var(--blue); }
.im-stat-n        { font-weight: 800; }
.im-kpi-n         { font-weight: 800; }
.im-spec-val      { font-weight: 700; }
.im-testi-quote   { font-style: normal; font-weight: 500; }
.im-page-head-title { font-weight: 800; }

/* Nav — fondo blanco sólido excepto en hero home */
#im-nav {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 rgba(30,101,192,0.08);
  border-bottom: none;
}

#im-nav.scrolled {
  box-shadow: var(--sh-md);
}

body.home #im-nav:not(.scrolled) {
  background: rgba(9,24,53,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
}

/* Footer — navy del logo */
.im-footer          { background: var(--navy); }
.im-cta-strip       { background: var(--navy); }

/* Botón principal — azul del logo */
.im-btn-dark        { background: var(--blue); border-color: var(--blue); }
.im-btn-dark:hover  { background: var(--blue-dk); border-color: var(--blue-dk); }
.im-btn-gold        { background: var(--blue); border-color: var(--blue); }
.im-btn-gold:hover  { background: var(--blue-dk); border-color: var(--blue-dk); box-shadow: 0 4px 24px rgba(31,101,192,0.35); }
.im-nav-cta         { background: var(--blue) !important; }
.im-nav-cta:hover   { background: var(--blue-dk) !important; }
.im-mobile-cta      { background: var(--blue); }


/* Page header background */
.im-page-head { background: var(--navy); }
.im-page-head::after { background: rgba(255,255,255,0.05); }

/* Inputs focus — azul */
.im-form-input:focus,
.im-input:focus,
.im-select:focus,
.im-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,101,192,0.12);
}

/* Steps hover */
.im-step:hover { background: var(--blue-pale); }

/* Testimonial stars */
.im-testi-stars svg { fill: var(--blue-lt); color: var(--blue-lt); }


/* Pagination active */
.im-pag-btn.is-active,
.im-pag-btn:hover    { background: var(--blue); border-color: var(--blue); }

/* CTA eyebrow */
.im-cta-eyebrow { color: var(--blue-lt); }
.im-cta-eyebrow::before, .im-cta-eyebrow::after { background: var(--blue-lt); }

/* Scroll top */
#im-scroll-top:hover { background: var(--blue); }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.im-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Slides container */
.im-slider-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.im-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: opacity;
}

.im-slide.is-active {
  opacity: 1;
}

.im-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  transition: transform 7s ease;
}

.im-slide.is-active img {
  transform: scale(1);
}

/* Slider dots */
.im-slider-dots {
  position: absolute;
  bottom: 40px;
  right: var(--px);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.im-sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.im-sdot.is-active {
  background: white;
  transform: scale(1.4);
}

/* Slider progress bar */
.im-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue-lt);
  z-index: 10;
  width: 0%;
  transition: none;
}

.im-slider-progress.is-running {
  transition: width 5s linear;
  width: 100%;
}

/* Hero tag without decorative line prefix */
.im-hero-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

/* Property quick-search bar */
.im-hero-search {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 860px;
  margin-top: 44px;
  box-shadow: 0 8px 40px rgba(9,24,53,0.22);
}

.im-hs-select {
  flex: 1;
  min-width: 140px;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--smoke);
  border-radius: var(--r-xs);
  padding: 11px 14px;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F65C0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.im-hs-select:focus {
  outline: none;
  border-color: var(--blue);
}

.im-hs-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--r-xs);
  padding: 12px 28px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.im-hs-btn:hover { background: var(--blue-dk); }

/* Logo image in nav */
.im-logo img {
  height: 48px;
  max-width: 200px;
  object-fit: contain;
}

#im-nav.scrolled .im-logo img { height: 38px; }

body.home #im-nav:not(.scrolled) .im-logo img {
  filter: brightness(0) invert(1);
}

/* About section paper bg */
.im-about-media img {
  border-radius: var(--r-md);
}

/* Testi card — use blue-pale */
.im-testi {
  background: var(--blue-pale);
  border-color: var(--smoke);
}

.im-testi-av {
  background: var(--blue);
  color: white;
}

/* Steps number color */
.im-step-n { color: var(--smoke); }

/* Footer social icons */
.im-fcol-head { color: var(--blue-lt); border-color: rgba(255,255,255,0.06); }

@media (max-width: 768px) {
  .im-hero-search { flex-direction: column; }
  .im-hs-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.im-wa-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 14px 20px 14px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.40), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, padding 0.3s;
  overflow: hidden;
}

.im-wa-fab:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.50), 0 4px 12px rgba(0,0,0,0.18);
}

.im-wa-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.im-wa-label {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Anillo pulsante */
.im-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: rgba(37,211,102,0.35);
  animation: im-wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes im-wa-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* En móvil: solo ícono, sin texto */
@media (max-width: 640px) {
  .im-wa-fab {
    padding: 15px;
    border-radius: 50%;
    bottom: 20px;
    right: 16px;
  }
  .im-wa-label { display: none; }
  #im-scroll-top { bottom: 20px; left: 16px; }
}

