/* ============================================================
   VALTORA REAL ESTATE — demo estática para portfolio
   HTML + CSS + JS vanilla. Sin frameworks, sin build.

   Índice
   00 Tipografía · 01 Variables
   02 Reset y base
   03 Utilidades (container, botones, íconos, títulos)
   04 Header y navegación
   05 Hero + buscador
   06 Beneficios
   07 Propiedades destacadas (S1)
   08 Bandas full-width (institucional / inversiones / CTA)
   09 Servicios
   10 Ubicaciones (S2)
   11 Testimonios
   12 Blog (S3)
   13 Footer
   14 Responsive
   ============================================================ */

/* ---------- 00 Tipografía (auto-hospedada: sin pedidos a terceros,
   funciona sin internet abriendo index.html directamente) ---------- */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-500.woff2') format('woff2'); }

/* ---------- 01 Variables ---------- */
:root {
  /* Paleta tomada de las propias imágenes para que los fondos
     empalmen sin costura con los paneles quemados en las fotos */
  --teal-950: #001416;
  --teal-900: #002B2D;
  --teal-850: #002629;
  --teal-hero: #042227;
  --teal-700: #0B4144;
  --gold: #D8A94E;
  --gold-dark: #C0913A;
  --cream: #F6F2EA;
  --white: #FFFFFF;
  --ink: #16211F;
  --muted: #6B7A78;
  --line: #E4DED2;
  --line-dark: rgba(255, 255, 255, .16);

  --ff-head: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --maxw: 1288px;
  --gutter: 24px;
  /* Borde de contenido: alinea las bandas full-width con el container */
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;

  --shadow-card: 0 2px 4px rgba(0, 30, 32, .04), 0 12px 32px rgba(0, 30, 32, .07);
  --shadow-float: 0 24px 64px rgba(0, 25, 27, .18);

  --section-y: clamp(60px, 7vw, 104px);
}

/* ---------- 02 Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--ff-head); font-weight: 600; line-height: 1.16; letter-spacing: -.015em; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 99;
  background: var(--teal-900); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; }

/* ---------- 03 Utilidades ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(28px, 3.5vw, 48px);
}
.section__title { font-size: clamp(27px, 3vw, 40px); }
.section__lead { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 46ch; }

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--ff-head); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark);
}
.eyebrow--light { color: var(--gold); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 30px; height: 30px; stroke-width: 1.4; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--ff-head); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 17px; height: 17px; }
.btn--gold { background: var(--gold); color: #24190A; }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192, 145, 58, .32); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--ff-head); font-size: 14px; font-weight: 500; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.link-arrow:hover { color: var(--teal-700); border-bottom-color: var(--gold); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--line-dark); color: #fff;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }

.round-arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-900); color: #fff; transition: background-color .2s, transform .2s;
}
.round-arrow:hover { background: var(--gold); color: #24190A; transform: translateY(-2px); }
.round-arrow .icon { width: 16px; height: 16px; }

.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 04 Header ---------- */
.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 22px var(--edge);
  color: #fff;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.logo__text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--ff-head); font-size: 20px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.logo__text small { font-size: 8.5px; font-weight: 500; letter-spacing: .3em; opacity: .62; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); margin-inline: auto; }
.nav__link {
  position: relative; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .82);
  padding-block: 4px; transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.icon-btn--menu { display: none; }
.icon-btn--menu .icon-close { display: none; }

/* ---------- 05 Hero ---------- */
.hero { padding: 0; }

.hero__card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: min(720px, 86vh);
  overflow: hidden;
  background: var(--teal-hero); color: #fff;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }

.hero__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(97deg,
      rgba(4, 34, 39, .97) 0%, rgba(4, 34, 39, .94) 28%, rgba(4, 34, 39, .74) 44%,
      rgba(4, 34, 39, .26) 62%, rgba(4, 34, 39, 0) 78%),
    linear-gradient(180deg, rgba(4, 34, 39, .55) 0%, rgba(4, 34, 39, 0) 28%);
}

.hero__body {
  position: relative;
  margin-top: auto; margin-bottom: clamp(70px, 11vh, 120px);
  padding-inline: var(--edge);
  max-width: calc(760px + var(--edge));
}
.hero__title { font-size: clamp(38px, 4.6vw, 62px); font-weight: 600; letter-spacing: -.025em; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { margin-top: 20px; max-width: 42ch; color: rgba(255, 255, 255, .78); font-size: 15.5px; }

.hero__badge {
  position: absolute; top: clamp(96px, 17%, 160px); left: 50%; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px 16px 18px; border-radius: 18px;
  background: rgba(2, 30, 34, .62); border: 1px solid rgba(216, 169, 78, .38);
  backdrop-filter: blur(10px);
}
.hero__badge .icon { width: 26px; height: 26px; color: var(--gold); }
.hero__badge div { display: flex; flex-direction: column; line-height: 1.25; }
.hero__badge strong { font-family: var(--ff-head); font-size: 25px; font-weight: 600; }
.hero__badge span { font-size: 11px; letter-spacing: .04em; color: rgba(255, 255, 255, .66); }

.hero__arc {
  position: absolute; left: -110px; bottom: -110px; width: 320px; height: 320px;
  z-index: 1; pointer-events: none; opacity: .8;
}

/* Buscador (representación visual, no consulta ningún servicio) */
.search {
  position: relative; z-index: 6;
  margin: -66px auto 0;
  width: calc(100% - clamp(40px, 6.8vw, 92px));
  max-width: 940px;
  padding: 10px; border-radius: 20px;
  background: var(--white); box-shadow: var(--shadow-float);
}

.search__tabs { display: flex; gap: 6px; padding: 4px 4px 12px; }
.search__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  font-family: var(--ff-head); font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.search__tab .icon { width: 16px; height: 16px; }
.search__tab:hover { color: var(--ink); background: var(--cream); }
.search__tab.is-active { background: var(--teal-900); color: #fff; }

.search__fields { display: flex; align-items: center; gap: 4px; }
.search__field {
  flex: 1; min-width: 0; padding: 6px 20px;
  border-left: 1px solid var(--line);
}
.search__field:first-child { border-left: 0; }
.search__field label {
  display: block; font-family: var(--ff-head); font-size: 12px; font-weight: 500; color: var(--ink);
}
.search__select { position: relative; display: block; }
.search__select select {
  width: 100%; padding: 2px 22px 2px 0; border: 0; background: none;
  font-size: 13.5px; color: var(--muted); appearance: none; cursor: pointer;
}
.search__select .icon {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--muted); pointer-events: none;
}
.search__submit {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px;
  border-radius: 50%; background: var(--gold); color: #24190A;
  transition: background-color .2s, transform .2s;
}
.search__submit:hover { background: var(--gold-dark); transform: scale(1.06); }
.search__submit .icon { width: 22px; height: 22px; stroke-width: 2; }

/* ---------- 06 Beneficios ---------- */
.benefits { background: var(--white); padding-block: clamp(40px, 5vw, 64px); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.benefit { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit .icon { color: var(--teal-700); }
.benefit h3 { margin: 16px 0 8px; font-size: 16.5px; }
.benefit p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 07 Propiedades destacadas (S1) ---------- */
.property {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.property:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0, 30, 32, .13); }

.property__media { position: relative; aspect-ratio: 4 / 3; }
.property__media img { width: 100%; height: 100%; object-fit: cover; }

.chip {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--teal-900); color: #fff;
  font-family: var(--ff-head); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
}
.chip--rent { background: var(--teal-700); }

.fav {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--teal-900);
  transition: background-color .2s, color .2s;
}
.fav:hover { background: var(--gold); color: #24190A; }
.fav .icon { width: 17px; height: 17px; }

.property__body { padding: 18px 20px 20px; }
.property__place {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
}
.property__place .icon { width: 14px; height: 14px; }
.property__title { margin: 10px 0 8px; font-size: 17.5px; font-weight: 600; }
.property__price { font-family: var(--ff-head); font-size: 21px; font-weight: 600; color: var(--teal-900); }
.property__price small { font-size: 13px; font-weight: 500; color: var(--muted); }

.specs {
  display: flex; flex-wrap: wrap; gap: 8px 6px;
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line);
}
.specs li {
  display: inline-flex; align-items: center; gap: 6px; flex: 1;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.specs .icon { width: 15px; height: 15px; }

/* ---------- 08 Bandas full-width ----------
   Grid de 3 filas en mobile/tablet (imagen › texto › datos).
   En desktop (>=1200px) todo colapsa a una sola celda y el texto
   se apoya sobre el panel que ya viene quemado en la imagen.        */
.band {
  display: grid;
  grid-template-areas: "media" "panel" "stats";
  color: #fff;
  background: var(--band-bg);
}
.band--why { --band-bg: var(--teal-900); }
.band--invest { --band-bg: var(--teal-850); }
.band--cta { --band-bg: var(--teal-950); }

.band__media { grid-area: media; position: relative; display: block; }
.band__media img { width: 100%; height: auto; }

.band__panel {
  grid-area: panel;
  padding: clamp(32px, 5vw, 52px) var(--edge);
}
.band__title { font-size: clamp(26px, 2.6vw, 38px); }
.band__text { margin: 16px 0 26px; max-width: 46ch; color: rgba(255, 255, 255, .76); font-size: 15px; }

.stats-card, .invest-stats { grid-area: stats; }

.stats-card {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 var(--edge) clamp(36px, 5vw, 52px);
  padding: 22px 12px; border-radius: var(--r-md);
  background: var(--white); box-shadow: var(--shadow-float);
}
.stat { padding-inline: 14px; border-left: 1px solid var(--line); text-align: center; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--ff-head); font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; color: var(--teal-900); }
.stat span { font-size: 12px; color: var(--muted); }

.invest-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0 var(--edge) clamp(36px, 5vw, 52px);
}
.stat--light { border-left-color: var(--line-dark); }
.stat--light strong { color: #fff; }
.stat--light span { color: rgba(255, 255, 255, .62); }

.play {
  grid-area: media; place-self: center; z-index: 2;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(6, 26, 28, .38); border: 1.5px solid rgba(255, 255, 255, .78);
  box-shadow: 0 8px 32px rgba(0, 15, 17, .38); backdrop-filter: blur(4px); color: #fff;
}
.play .icon { width: 22px; height: 22px; margin-left: 3px; }

/* ---------- 09 Servicios ---------- */
.service {
  position: relative; padding: 26px 24px 78px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.service .icon--lg { color: var(--teal-700); }
.service h3 { margin: 18px 0 8px; font-size: 16.5px; }
.service p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.service .round-arrow { position: absolute; left: 24px; bottom: 24px; }

/* ---------- 10 Ubicaciones (S2) ---------- */
.locations { background: var(--white); }
.place { display: block; }
.place img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-md); transition: transform .35s;
}
.place:hover img { transform: scale(1.03); }
.place h3 {
  margin-top: 14px; font-size: 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.place h3 span { font-family: var(--ff-body); font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* ---------- 11 Testimonios ---------- */
.quote {
  position: relative; margin-top: 34px; padding: 46px 26px 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
}
.quote blockquote { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote__who { display: flex; flex-direction: column; line-height: 1.35; }
.quote__who strong { font-family: var(--ff-head); font-size: 14.5px; font-weight: 600; }
.quote__who small { font-size: 12px; color: var(--muted); }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-900); color: var(--gold);
  font-family: var(--ff-head); font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.avatar--lg {
  position: absolute; top: -26px; left: 26px;
  width: 52px; height: 52px; font-size: 16px;
  border: 4px solid var(--cream);
}

.stars { display: flex; gap: 3px; margin-top: 16px; color: var(--gold); }
.stars .icon { width: 15px; height: 15px; }

/* ---------- 12 Blog (S3) ---------- */
.blog { background: var(--white); }
.post { display: flex; flex-direction: column; }
.post__media { display: block; overflow: hidden; border-radius: var(--r-md); }
.post__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s; }
.post__media:hover img { transform: scale(1.04); }
.post__title { margin: 16px 0 14px; font-size: 16.5px; line-height: 1.4; }
.post__title a { transition: color .2s; }
.post__title a:hover { color: var(--teal-700); }
.post__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.tag {
  padding: 5px 12px; border-radius: 999px; background: var(--cream);
  font-family: var(--ff-head); font-size: 11.5px; font-weight: 500; color: var(--teal-900);
}

/* ---------- 13 Footer ---------- */
.site-footer { background: var(--teal-900); color: #fff; padding-block: clamp(48px, 6vw, 76px) 28px; }

.site-footer__top {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.logo--footer { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line-dark); }
.logo--footer .logo__text { font-size: 22px; }
.site-footer__claim { flex: 1; }
.site-footer__claim h2 { font-size: clamp(19px, 1.8vw, 24px); }
.site-footer__claim p { margin-top: 10px; max-width: 48ch; color: rgba(255, 255, 255, .62); font-size: 14px; }

.site-footer__cols {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 32px;
  padding-block: clamp(32px, 4vw, 46px); border-top: 1px solid var(--line-dark);
}
.site-footer__cols h3 { margin-bottom: 18px; font-size: 15.5px; }
.site-footer__cols a { color: rgba(255, 255, 255, .66); font-size: 14px; transition: color .2s; }
.site-footer__cols a:hover { color: var(--gold); }
.site-footer__cols li + li { margin-top: 10px; }

.contact-list li { display: flex; gap: 10px; color: rgba(255, 255, 255, .66); font-size: 14px; }
.contact-list .icon { width: 17px; height: 17px; margin-top: 4px; color: var(--gold); }

.socials { display: flex; gap: 10px; }
.socials li + li { margin-top: 0; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--gold); color: #24190A; }
.socials .icon { width: 17px; height: 17px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: 12.5px; color: rgba(255, 255, 255, .5);
}
.site-footer__bottom a { color: inherit; transition: color .2s; }
.site-footer__bottom a:hover { color: var(--gold); }

/* ============================================================
   14 RESPONSIVE
   ============================================================ */

/* --- Desktop grande: el texto de las bandas se apoya sobre la
       imagen, usando el panel diagonal quemado en la foto --- */
@media (min-width: 1200px) {
  .band { grid-template-areas: "media"; }
  .band__panel, .stats-card, .invest-stats { grid-area: media; }

  /* Oscurecido extra sólo donde el panel de la foto es un degradado */
  .band--invest .band__media::after,
  .band--cta .band__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(94deg,
      rgba(0, 20, 22, .93) 0%, rgba(0, 20, 22, .82) 26%,
      rgba(0, 20, 22, .38) 46%, rgba(0, 20, 22, 0) 64%);
  }

  .band__panel {
    place-self: center start; z-index: 2;
    padding: 0 0 0 5.5%;
    transform: translateY(-4%);
  }
  .band--why .band__panel { width: 30%; transform: translateY(-7%); }
  .band--why .band__title { font-size: clamp(25px, 2.25vw, 32px); }
  .band--invest .band__panel,
  .band--cta .band__panel { width: 42%; }
  .band--why .band__text { max-width: 34ch; margin-bottom: 24px; font-size: 15px; }

  .stats-card {
    place-self: end center; z-index: 2;
    width: min(48%, 560px); margin: 0 0 6% 24%;
  }
  .invest-stats {
    place-self: center end; z-index: 2;
    grid-template-columns: 1fr; gap: 28px; width: auto; margin: 0 7% 0 0;
  }
  .stat--light { padding-inline: 0; border-left: 0; text-align: left; }

  .play { margin-left: 42%; }
}

/* --- Tablet --- */
@media (max-width: 1080px) {
  .grid--3, .grid--4, .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(odd) { padding-left: 0; border-left: 0; }
  .benefit:nth-child(-n+2) { padding-bottom: 22px; }
  .benefit:nth-child(n+3) { padding-top: 22px; border-top: 1px solid var(--line); }

  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
}

@media (max-width: 1080px) and (min-width: 768px) {
  .site-header { gap: 20px; }
  .nav { gap: 16px; }
  .nav__link { font-size: 13.5px; }
}

/* --- Menú mobile --- */
@media (max-width: 900px) {
  .icon-btn--menu { display: grid; }
  .site-header__actions .btn--gold { display: none; }

  .nav {
    position: absolute; top: calc(100% + 10px); left: var(--edge); right: var(--edge);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px; border-radius: var(--r-md);
    background: rgba(4, 34, 39, .96); border: 1px solid var(--line-dark);
    backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 13px 16px; border-radius: var(--r-sm); font-size: 15px; }
  .nav__link:hover { background: rgba(255, 255, 255, .07); }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: rgba(216, 169, 78, .14); color: var(--gold); }

  .site-header__actions .icon-btn[aria-expanded="true"] .icon-open { display: none; }
  .site-header__actions .icon-btn[aria-expanded="true"] .icon-close { display: block; }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .hero { padding: 0; }
  .hero__card { min-height: 620px; }
  .hero__media img { object-position: center 42%; }
  .hero__card::before {
    background: linear-gradient(180deg,
      rgba(4, 34, 39, .78) 0%, rgba(4, 34, 39, .22) 26%,
      rgba(4, 34, 39, .68) 48%, rgba(4, 34, 39, .93) 70%, rgba(4, 34, 39, .97) 100%);
  }
  .hero__body { margin-bottom: 56px; }
  .hero__lead { font-size: 14.5px; }
  .hero__badge { display: none; }
  .hero__arc { display: none; }

  .search { margin: -34px auto 0; width: calc(100% - 32px); border-radius: var(--r-md); }
  .search__tabs { gap: 4px; padding-bottom: 10px; }
  .search__tab { flex: 1; justify-content: center; padding: 9px 6px; font-size: 12.5px; }
  .search__tab .icon { width: 14px; height: 14px; }
  .search__fields { flex-wrap: wrap; gap: 0; }
  .search__field { flex: 1 1 100%; padding: 10px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .search__field:first-child { border-top: 0; }
  .search__submit { width: 100%; height: 50px; border-radius: var(--r-sm); margin-top: 10px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .grid--3, .grid--4, .benefits__grid { grid-template-columns: 1fr; }
  .benefit { padding-left: 0; border-left: 0; }
  .benefit:nth-child(n+2) { padding-top: 20px; border-top: 1px solid var(--line); }
  .benefit:nth-child(-n+2) { padding-bottom: 0; }

  /* Ubicaciones: carrusel horizontal con snap en vez de apilar 4 cards */
  .locations__grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .locations__grid::-webkit-scrollbar { display: none; }
  .place { flex: 0 0 62%; scroll-snap-align: start; }

  .band__media img { aspect-ratio: 4 / 5; object-fit: cover; }
  .band--why .band__media img { object-position: 62% center; }
  .stats-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; }
  .stat { border-left: 0; }
  .stat + .stat { padding-top: 18px; border-top: 1px solid var(--line); }
  .invest-stats { grid-template-columns: 1fr; gap: 18px; }
  .stat--light { border-left: 0; }
  .stat--light + .stat--light { padding-top: 18px; border-top: 1px solid var(--line-dark); }
  .play { width: 58px; height: 58px; }

  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .logo--footer { padding-right: 0; border-right: 0; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
