/* ==========================================================================
   Portfolio Freer
   Hoja de estilos principal
   ========================================================================== */

/* --- Tipografías propias ------------------------------------------------- */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/hanken-grotesk-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/hanken-grotesk-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hanken-grotesk-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hanken-grotesk-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hanken-grotesk-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hanken-grotesk-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hanken-grotesk-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hanken-grotesk-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hanken-grotesk-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hanken-grotesk-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/playfair-display-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/playfair-display-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --paper: #efebe2;
  --surface: #faf8f4;
  --surface-2: #e4dfd4;
  --ink: #191919;
  --ink-2: #3b3a35;
  --muted: #7a756b;
  --line: #ddd7ca;
  --line-strong: #c5bdac;

  --verde: #1d3b2e;
  --verde-hover: #12271e;
  --verde-soft: #e3e6de;
  --carreta: #4d453e;
  --carreta-soft: #e8e2d6;
  --gold: #8c7a5b;
  --gold-soft: #eae3d2;
  --logo: #1d3b2e;

  --shadow-s: 0 1px 2px rgba(15, 33, 27, .06), 0 2px 8px rgba(15, 33, 27, .05);
  --shadow-m: 0 2px 6px rgba(15, 33, 27, .07), 0 12px 32px rgba(15, 33, 27, .09);
  --shadow-l: 0 8px 24px rgba(15, 33, 27, .12), 0 32px 64px rgba(15, 33, 27, .18);

  --radius: 0px;
  --radius-lg: 0px;

  --serif: "Playfair Display", "Iowan Old Style", Palatino, Georgia, ui-serif, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(.72rem, .70rem + .1vw, .78rem);
  --step-0: 1rem;
  --step-1: clamp(1.15rem, 1.08rem + .3vw, 1.4rem);
  --step-2: clamp(1.35rem, 1.2rem + .6vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.4vw, 2.5rem);
  --step-4: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);

  --gutter: clamp(1.1rem, .6rem + 2vw, 2.5rem);
  --wrap: 1220px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a15;
    --surface: #16241d;
    --surface-2: #1e3128;
    --ink: #efebe2;
    --ink-2: #cfcabe;
    --muted: #9a958a;
    --line: #26362d;
    --line-strong: #37493e;

    --verde: #93bfa8;
    --verde-hover: #aed3bf;
    --verde-soft: #17281f;
    --carreta: #c2a98f;
    --carreta-soft: #2a231c;
    --gold: #c9ae7e;
    --gold-soft: #2a2418;
    --logo: #efebe2;

    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-m: 0 2px 6px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .4);
    --shadow-l: 0 8px 24px rgba(0, 0, 0, .5), 0 32px 64px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --paper: #0a1411;
  --surface: #11201b;
  --surface-2: #172d25;
  --ink: #e7efe9;
  --ink-2: #c2d2c8;
  --muted: #93a79c;
  --line: #22362d;
  --line-strong: #334c40;

  --verde: #55c295;
  --verde-hover: #74d5ab;
  --verde-soft: #152c23;
  --carreta: #ef8071;
  --carreta-soft: #2c1a17;
  --gold: #d7ac54;
  --gold-soft: #2a2315;
  --logo: #eef4ef;

  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .4);
  --shadow-l: 0 8px 24px rgba(0, 0, 0, .5), 0 32px 64px rgba(0, 0, 0, .55);
}

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 134px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--verde);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-head.centrado .eyebrow::before,
.ig-inner .eyebrow::before,
.hero-copy .eyebrow::before { display: none; }

.section {
  padding-block: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: 48ch;
  margin-bottom: 1.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
}

.section-head.centrado { border-top: 0; padding-top: 0; }

.section-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3rem);
  letter-spacing: -.025em;
  line-height: 1.06;
}

.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

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

/* --- Botones ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--verde);
  color: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:hover { background: var(--verde-hover); }

.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { background: var(--surface-2); border-color: var(--verde); }

.btn-sm { padding: .45rem .8rem; font-size: var(--step--1); }

/* --- Encabezado --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 118px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  color: var(--logo);
}

.logo-mark {
  height: 84px;
  width: auto;
  display: block;
}

@media (max-width: 940px) {
  .logo-mark { height: 66px; }
}

@media (max-width: 420px) {
  .logo-mark { height: 52px; }
}

.site-nav { display: flex; gap: 1.4rem; }

.site-nav a {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.site-nav a:hover { color: var(--verde); border-bottom-color: var(--verde); }

.header-tools { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  border: 0;
  padding: .4rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.lang-switch button[aria-pressed="true"] { background: var(--verde); color: var(--paper); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
}

.icon-btn:hover { border-color: var(--verde); color: var(--verde); }

.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .site-nav {
    position: fixed;
    inset: 118px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-m);
    transform: translateY(-115%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform .28s ease, opacity .2s ease, visibility 0s;
  }
  .site-nav a { padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: grid; order: 3; }
  .header-cta { display: none; }
}

/* --- Hero --------------------------------------------------------------- */

.hero { position: relative; }

.hero-media {
  position: relative;
  height: clamp(520px, 74vh, 700px);
  overflow: hidden;
  background: var(--verde-soft);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.hero-slide.on { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-slide .hero-copy { position: absolute; inset-inline: 0; bottom: clamp(2.5rem, 7vw, 5rem); z-index: 2; }

.hero-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 400;
  color: #fff;
  max-width: 18ch;
  margin-block: .5rem .5rem;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
}

.hero-loc {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.hero-precio {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  margin-top: .5rem;
}

.hero-cta {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .85rem 1.9rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.hero-cta:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px; height: 46px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.hero-nav:hover { opacity: 1; }
.hero-nav.prev { left: clamp(.3rem, 1.5vw, 1.4rem); }
.hero-nav.next { right: clamp(.3rem, 1.5vw, 1.4rem); }

.hero-puntos {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: .5rem;
}

.hero-puntos button {
  width: 30px; height: 2px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
}

.hero-puntos button.on { background: #fff; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 22, 17, .5) 0%, rgba(6, 22, 17, .12) 38%, rgba(6, 22, 17, .82) 100%),
    linear-gradient(90deg, rgba(6, 22, 17, .45) 0%, rgba(6, 22, 17, 0) 62%);
}

.hero-copy {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(2rem, 6vw, 4.5rem);
  z-index: 2;
  color: #fff;
}

.hero-copy .eyebrow { color: rgba(255,255,255,.82); }

.hero-copy h1 {
  font-size: var(--step-4);
  max-width: 17ch;
  font-weight: 400;
  letter-spacing: -.02em;
  margin-block: .65rem .9rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .4);
}

.hero-copy p {
  max-width: 44ch;
  color: rgba(255, 255, 255, .9);
  font-size: var(--step-1);
  line-height: 1.55;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .35);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.4rem;
  padding-bottom: .3rem;
  align-self: flex-start;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  transition: border-color .2s ease, gap .2s ease;
}

.hero-cta::after { content: "\2192"; font-size: 1.05em; }

.hero-cta:hover { border-bottom-color: #fff; gap: .85rem; }

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

/* --- Buscador ----------------------------------------------------------- */

.searchbar {
  position: relative;
  z-index: 3;
  margin-top: -2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-m);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}

@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr 1fr; margin-top: -1.5rem; }
  .searchbar .field:first-child { grid-column: 1 / -1; }
  .searchbar .btn { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

.field label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .6rem .7rem;
  font-size: var(--step--1);
}

.field select { appearance: none; padding-right: 2rem; cursor: pointer; }

.field.select-wrap { position: relative; }

.field.select-wrap::after {
  content: "";
  position: absolute;
  right: .75rem;
  bottom: 1.05rem;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 18%, transparent);
}

/* --- Cifras ------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}

.stat { background: var(--paper); padding: 1.25rem 1.35rem; }

.stat b {
  display: block;
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat span { font-size: var(--step--1); color: var(--muted); }

/* --- Filtros ------------------------------------------------------------ */

.filters {
  position: sticky;
  top: 118px;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
  padding-block: .7rem;
  margin-bottom: 1.4rem;
}

.filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.chip:hover { border-color: var(--verde); color: var(--verde); }

.chip[aria-pressed="true"] {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--paper);
}

.filters select {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .42rem 1.8rem .42rem .85rem;
  font-size: var(--step--1);
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.filters .spacer { margin-left: auto; }

.results-count {
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.link-reset {
  background: none;
  border: 0;
  font-size: var(--step--1);
  color: var(--carreta);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: .2rem;
}

/* --- Grilla de propiedades ---------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(.9rem, .5rem + 1vw, 1.5rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: border-color .25s ease;
  animation: cardIn .45s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
  z-index: 3;
}

.card:hover::before { transform: scaleX(1); }

.card:hover { border-color: var(--ink); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--verde-soft), var(--surface-2));
  overflow: hidden;
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.card:hover .card-media img { transform: scale(1.05); }

.badges {
  position: absolute;
  top: .7rem; left: .7rem;
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.badge {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.badge-venta { background: var(--verde); color: var(--paper); }
.badge-alquiler { background: var(--carreta); color: var(--paper); }
.badge-featured { background: var(--gold-soft); color: var(--gold); }
.badge-luxury { background: var(--ink); color: var(--paper); }

.fav {
  position: absolute;
  top: .7rem; right: .7rem;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  cursor: pointer;
  color: var(--ink-2);
  box-shadow: var(--shadow-s);
  transition: color .18s ease, transform .18s ease;
}

.fav:hover { transform: scale(1.08); color: var(--carreta); }

.fav[aria-pressed="true"] { color: var(--carreta); }

.fav[aria-pressed="true"] svg { fill: currentColor; }

.fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .95rem 1rem 1.05rem;
  flex: 1;
}

.card-loc {
  font-size: var(--step--1);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.card h3 { font-size: var(--step-1); }

.card-price {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.card-price small { font-size: .5em; font-weight: 500; color: var(--muted); }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.spec { display: flex; align-items: center; gap: .35rem; }

.spec svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: none; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

.empty h3 { font-size: var(--step-2); color: var(--ink); margin-bottom: .5rem; }

/* --- Zonas -------------------------------------------------------------- */

.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.zone {
  position: relative;
  border: 0;
  padding: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  font: inherit;
}

.zone img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }

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

.zone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 17, .05) 35%, rgba(6, 22, 17, .82) 100%);
}

.zone-label {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2;
  text-align: left;
}

.zone-label strong { display: block; font-family: var(--serif); font-size: var(--step-1); font-weight: 500; }

.zone-label span { font-size: var(--step--1); color: rgba(255, 255, 255, .82); }

/* --- Servicios ---------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service { background: var(--paper); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }

.service svg { width: 26px; height: 26px; stroke: var(--verde); fill: none; stroke-width: 1.4; }

.service h3 { font-size: var(--step-1); }

.service p { color: var(--muted); font-size: var(--step--1); }

/* --- Nosotros ----------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.about-copy { display: flex; flex-direction: column; gap: 1rem; }

.about-copy h2 { font-size: var(--step-3); }

.about-copy p { color: var(--ink-2); }

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-m);
}

.about-media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { display: flex; flex-direction: column; gap: .55rem; margin: .5rem 0 0; padding: 0; list-style: none; }

.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); }

.checklist li::before {
  content: "";
  flex: none;
  margin-top: .45em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--verde);
}

/* --- Asesor ------------------------------------------------------------- */

.asesor {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) { .asesor { grid-template-columns: 1fr; } }

.asesor-foto {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  box-shadow: var(--shadow-m);
}

.asesor-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.asesor-texto { display: flex; flex-direction: column; gap: 1rem; }

.asesor-texto h2 { font-size: var(--step-3); }

.asesor-rol {
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -.4rem;
}

.asesor-texto p { color: var(--ink-2); }

.asesor-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

/* --- Contacto ----------------------------------------------------------- */

.contact-band { background: var(--surface); border-block: 1px solid var(--line); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 4rem);
}

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-info h2 { font-size: var(--step-3); }

.contact-list { display: flex; flex-direction: column; gap: .9rem; margin: 0; padding: 0; list-style: none; }

.contact-list a { text-decoration: none; display: flex; align-items: center; gap: .7rem; }

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

.contacto-horario { display: flex; align-items: center; gap: .7rem; color: var(--muted); }

.contact-list svg { width: 18px; height: 18px; stroke: var(--verde); fill: none; stroke-width: 1.6; flex: none; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form .field-full { grid-column: 1 / -1; }

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

.form-note { font-size: .72rem; color: var(--muted); grid-column: 1 / -1; }

/* --- Pie ---------------------------------------------------------------- */

.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.footer-links a { text-decoration: none; }

.footer-links a:hover { color: var(--verde); }

/* --- Ficha de propiedad ------------------------------------------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.sheet[open] { display: block; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 17, .55);
  backdrop-filter: blur(3px);
  animation: fadeIn .25s ease both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(100%, 640px);
  background: var(--paper);
  overflow-y: auto;
  box-shadow: var(--shadow-l);
  animation: slideIn .32s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }

.sheet-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 5;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-m);
  font-size: 1.1rem;
  line-height: 1;
}

.gallery { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }

.gallery img { width: 100%; height: 100%; object-fit: cover; }

.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-s);
  font-size: 1.1rem;
  line-height: 1;
}

.gal-prev { left: .75rem; }
.gal-next { right: .75rem; }

.gal-dots {
  position: absolute;
  bottom: .8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .35rem;
}

.gal-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, width .2s ease;
}

.gal-dots i.on { background: #fff; width: 18px; border-radius: 4px; }

.gal-count {
  position: absolute;
  bottom: .8rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 26, 21, .62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  padding: .25rem .7rem;
  border-radius: 999px;
}

.sheet-body { padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.sheet-head { display: flex; flex-direction: column; gap: .4rem; }

.sheet-head h2 { font-size: var(--step-2); }

.sheet-price {
  font-family: var(--sans);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sheet-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sheet-spec { background: var(--surface); padding: .85rem .9rem; }

.sheet-spec b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; font-family: var(--sans); font-weight: 700; }

.sheet-spec span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.sheet-body h3 { font-size: var(--step-1); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--step--1);
}

.feature-list li { display: flex; gap: .55rem; align-items: flex-start; }

.feature-list li::before {
  content: "";
  flex: none;
  margin-top: .45em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.sheet-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.sheet-ref { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --- Foto a pantalla completa ------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 18, 14, .94);
  display: grid;
  place-items: center;
  padding: 2vmin;
  cursor: zoom-out;
  animation: fadeIn .2s ease both;
}

.lightbox img {
  max-width: 100%;
  max-height: 96vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .6);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

#gallery img { cursor: zoom-in; }

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


/* --- Buscador estilo Sotheby's ------------------------------------------ */

.searchbar { display: block; padding: 1.5rem clamp(1rem, 2vw, 1.8rem) 1.4rem; }

.searchbar-titulo {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.2rem;
}

.searchbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
}

.searchbar-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.searchbar-pie .q-libre {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .6rem .7rem;
  font-size: var(--step--1);
}

.op-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }

.op-toggle button {
  background: transparent;
  border: 0;
  padding: .55rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.op-toggle button[aria-pressed="true"] { background: var(--verde); color: var(--paper); }

/* --- Encabezado de sección centrado ------------------------------------- */

.section-head.centrado { max-width: 56ch; margin-inline: auto; text-align: center; align-items: center; }

/* --- Carrusel de destacadas --------------------------------------------- */

.carrusel-wrap { position: relative; }

.carrusel {
  display: flex;
  gap: clamp(.9rem, 1.5vw, 1.4rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .4rem clamp(1.1rem, 6vw, 5rem) 1.4rem;
  scrollbar-width: none;
}

.carrusel::-webkit-scrollbar { display: none; }

.carrusel .card {
  flex: 0 0 clamp(260px, 30vw, 380px);
  scroll-snap-align: center;
}

.carrusel-btn {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-s);
}

.carrusel-btn.prev { left: clamp(.4rem, 2vw, 1.6rem); }
.carrusel-btn.next { right: clamp(.4rem, 2vw, 1.6rem); }
.carrusel-btn:hover { border-color: var(--verde); color: var(--verde); }

/* --- Banda de vender ---------------------------------------------------- */

.banda-vender { background: var(--verde); color: var(--paper); }

.banda-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2rem, 3.5vw, 3rem);
}

.banda-inner h2 { font-size: var(--step-3); color: var(--paper); margin-block: .5rem .6rem; }
.banda-inner .eyebrow { color: rgba(239, 235, 226, .72); }
.banda-inner p { max-width: 48ch; color: rgba(239, 235, 226, .86); }
.banda-inner .btn { background: var(--paper); color: var(--verde); flex: none; }
.banda-inner .btn:hover { background: #fff; }

/* --- WhatsApp flotante -------------------------------------------------- */

.wa-flotante {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.8rem);
  bottom: clamp(1rem, 2.5vw, 1.8rem);
  z-index: 90;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}

.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante:hover { transform: scale(1.06); }

@media (max-width: 520px) { .wa-flotante { width: 48px; height: 48px; } .wa-flotante svg { width: 26px; height: 26px; } }


/* --- Instagram ---------------------------------------------------------- */

.banda-ig {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.2rem, 3.5vw, 3.2rem) 0;
  overflow: hidden;
}

.ig-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.ig-icono { width: 30px; height: 30px; color: var(--verde); margin-bottom: 1rem; }

.banda-ig h2 { font-size: var(--step-3); margin-bottom: .7rem; }

.ig-sub { color: var(--muted); max-width: 46ch; margin-bottom: 1.6rem; }

.banda-ig .btn { letter-spacing: .08em; }

.ig-tira {
  display: flex;
  gap: 6px;
  margin-top: 1.9rem;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.ig-tira img {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(.96);
  transition: transform .4s ease, filter .3s ease;
}

.ig-tira img:hover { transform: scale(1.04); filter: saturate(1.1); }

@media (max-width: 700px) {
  .ig-tira img:nth-child(n+5) { display: none; }
}


/* --- Mapa --------------------------------------------------------------- */

.seccion-mapa { padding-bottom: 0; }

.mapa-caja { position: relative; margin-top: .5rem; }

#mapa-cr {
  height: clamp(420px, 62vh, 640px);
  width: 100%;
  background: var(--surface-2);
  border-block: 1px solid var(--ink);
  z-index: 1;
}

.mapa-nota {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: .35rem .8rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.punto-mapa { background: none; border: 0; }

.punto {
  display: inline-block;
  transform: translate(-50%, -50%);
  background: var(--verde);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .3rem .6rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.punto.alquiler { background: var(--carreta); }

.leaflet-popup-content-wrapper { border-radius: 0; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 230px !important; }

.popup img { width: 100%; height: 130px; object-fit: cover; display: block; }
.popup-txt { padding: .8rem .9rem 1rem; font-family: var(--sans); }
.popup-loc { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.popup h4 { font-family: var(--serif); font-size: 1.02rem; font-weight: 400; margin: .25rem 0 .4rem; line-height: 1.2; }
.popup-precio { font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: .7rem; }


/* --- Fichas de texto para buscadores ------------------------------------ */
/* Se escriben en el html para que Google y los buscadores de inteligencia
   artificial lean el inventario aunque no ejecuten javascript. Cuando el
   javascript carga, las reemplaza por las tarjetas de verdad. */

#fichas-seo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(.9rem, .5rem + 1vw, 1.5rem);
}

#fichas-seo h2 { grid-column: 1 / -1; font-size: var(--step-2); margin-bottom: .5rem; }

.ficha-seo {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  font-size: .92rem;
}

.ficha-seo h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.ficha-seo p { margin-bottom: .5rem; color: var(--ink-2); }
.ficha-seo img { width: 100%; height: auto; margin-top: .6rem; }
