/* =========================================================
   GRUPO INMOBILIARIO BUSTAMANTE
   LANDING PAGE — ESTILOS ESPECÍFICOS
   HERO V1
   ========================================================= */

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(11, 45, 83, 0.28) 0%,
      rgba(5, 32, 65, 0.24) 45%,
      rgba(1, 22, 53, 0.31) 100%
    ),
    url("../images/hero/inmobiliario-bustamante-hero.webp")
      center center / cover no-repeat;

  color: var(--color-white);
}

/* Contenedor ligeramente más estrecho que el global,
   para respetar la composición editorial del diseño aprobado. */
.hero-shell {
  width: min(1010px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   HEADER / TOP BAR
   --------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  color: var(--color-white);
}

.topbar {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-link {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0.96;
  transition: opacity var(--transition-fast);
}

.social-link:hover {
  opacity: 0.7;
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.social-link .social-dot {
  fill: currentColor;
  stroke: none;
}

.topbar__email {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  transition: opacity var(--transition-fast);
}

.topbar__email:hover {
  opacity: 0.72;
}

/* ---------------------------------------------------------
   MAIN NAV
   --------------------------------------------------------- */

.navbar {
  display: grid;
  min-height: 111px;
  grid-template-columns: 230px 1fr 30px;
  align-items: center;
  column-gap: 28px;
}

.brand {
  display: inline-block;
  width: 200px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.desktop-nav a,
.desktop-nav span {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1;
}

.desktop-nav a {
  transition: opacity var(--transition-fast);
}

.desktop-nav a:hover {
  opacity: 0.68;
}

.desktop-nav span {
  margin-inline: 4px;
  opacity: 0.85;
}

/* ---------------------------------------------------------
   MENU ICON
   --------------------------------------------------------- */

.menu-toggle {
  display: inline-flex;
  width: 28px;
  height: 28px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------------------------------------------------------
   HERO COPY
   --------------------------------------------------------- */

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 82px;
  padding-bottom: 100px;
}

.hero__content h1 {
  max-width: 540px;
  margin: 0 0 17px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(58px, 5.1vw, 72px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.027em;
  line-height: 0.99;
}

.hero__content p {
  max-width: 490px;
  margin: 0 0 18px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.005em;
  line-height: 1.35;
}

.hero__cta {
  display: inline-flex;
  min-width: 215px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;

  background: rgba(237, 250, 252, 0.94);
  color: var(--color-navy-dark);

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.hero__cta:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ---------------------------------------------------------
   MOBILE NAV
   --------------------------------------------------------- */

.mobile-nav {
  display: none;
}

/* ---------------------------------------------------------
   LAPTOP / TABLET
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-shell {
    width: min(1010px, calc(100% - 64px));
  }

  .desktop-nav a,
  .desktop-nav span {
    font-size: 11px;
  }

  .desktop-nav span {
    margin-inline: 3px;
  }

  .brand {
    width: 180px;
  }

  .navbar {
    grid-template-columns: 195px 1fr 30px;
    column-gap: 18px;
  }
}

/* ---------------------------------------------------------
   MOBILE / TABLET PORTRAIT
   --------------------------------------------------------- */

@media (max-width: 850px) {
  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .hero-shell {
    width: calc(100% - 40px);
  }

  .topbar {
    min-height: 48px;
  }

  .topbar__email {
    font-size: 10px;
  }

  .navbar {
    min-height: 92px;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
  }

  .brand {
    width: 175px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .mobile-nav {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    z-index: 20;

    display: grid;
    max-height: 0;
    overflow: hidden;

    background: rgba(1, 22, 53, 0.96);
    opacity: 0;
    visibility: hidden;

    transition:
      max-height 320ms ease,
      opacity 220ms ease,
      visibility 220ms ease;
  }

  .mobile-nav.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav a {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-medium);
  }

  .hero__content {
    padding-top: 90px;
  }

  .hero__content h1 {
    max-width: 500px;
    font-size: clamp(48px, 9vw, 64px);
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 560px) {
  .hero {
    min-height: 700px;
    background-position: 63% center;
  }

  .topbar__social {
    gap: 6px;
  }

  .social-link {
    width: 18px;
    height: 18px;
  }

  .topbar__email {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand {
    width: 155px;
  }

  .hero__content {
    padding-top: 76px;
    padding-bottom: 72px;
  }

  .hero__content h1 {
    max-width: 360px;
    margin-bottom: 18px;
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.98;
  }

  .hero__content p {
    max-width: 360px;
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.45;
  }

  .desktop-break {
    display: none;
  }

  .hero__cta {
    min-width: 190px;
    min-height: 42px;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .menu-toggle span,
  .hero__cta,
  .desktop-nav a,
  .social-link,
  .topbar__email {
    transition: none;
  }
}


/* =========================================================
   FEATURED PROPERTY — REAL DEL MAR
   ========================================================= */

.featured-property {
  background: var(--color-gray-100);
  padding-block: 108px 94px;
}

.property-shell {
  display: grid;
  width: min(1010px, calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 52px;
  align-items: start;
}

/* ---------------------------------------------------------
   MAIN IMAGE
   --------------------------------------------------------- */

.property-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 25;
  overflow: hidden;
  background: #e5e5e5;
}

.property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 220ms ease,
    transform 420ms ease;
}

.property-gallery__main img.is-changing {
  opacity: 0.22;
  transform: scale(1.01);
}

/* ---------------------------------------------------------
   PROPERTY COPY
   --------------------------------------------------------- */

.property-info {
  padding-top: 0;
}

.property-info__eyebrow {
  margin: -4px 0 10px;
  color: var(--color-aqua);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: var(--fw-regular);
  line-height: 1.05;
}

.property-info h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(48px, 4.25vw, 58px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.property-info__description {
  max-width: 470px;
  margin: 0 0 22px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 1.38;
}

/* ---------------------------------------------------------
   FEATURES
   --------------------------------------------------------- */

.property-features {
  display: grid;
  gap: 5px;
  margin: 0 0 45px;
  padding: 0;
  list-style: none;
}

.property-features li {
  position: relative;
  padding-left: 36px;
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}

.property-features li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 4px;
  width: 23px;
  height: 1px;
  background: var(--color-aqua);
}

/* ---------------------------------------------------------
   THUMBNAILS
   --------------------------------------------------------- */

.property-gallery__thumbs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.property-gallery__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;

  border: 1px solid transparent;
  background: #d8d8d8;
  cursor: pointer;

  transition:
    border-color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 320ms ease,
    filter 220ms ease;
}

.property-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition-fast);
}

.property-gallery__thumb:hover img {
  transform: scale(1.045);
}

.property-gallery__thumb:hover::after,
.property-gallery__thumb:focus-visible::after,
.property-gallery__thumb.is-active::after {
  border-color: var(--color-aqua);
}

.property-gallery__thumb.is-active {
  cursor: default;
}

.property-gallery__thumb.is-active img {
  filter: brightness(0.9);
}

/* Icono que comunica interacción */
.property-gallery__action {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;

  background: rgba(0, 34, 80, 0.78);
  color: var(--color-white);

  opacity: 0.9;
  pointer-events: none;

  transition:
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.property-gallery__action svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.property-gallery__thumb:hover .property-gallery__action,
.property-gallery__thumb:focus-visible .property-gallery__action {
  background: var(--color-aqua);
  opacity: 1;
}

.property-gallery__thumb.is-active .property-gallery__action {
  background: var(--color-aqua);
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .featured-property {
    padding-block: 82px;
  }

  .property-shell {
    width: calc(100% - 48px);
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .property-info__eyebrow {
    font-size: 22px;
  }

  .property-info h2 {
    font-size: clamp(40px, 5vw, 50px);
  }

  .property-features {
    margin-bottom: 32px;
  }

  .property-gallery__thumbs {
    gap: 7px;
  }

  .property-gallery__action {
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .featured-property {
    padding-block: 68px;
  }

  .property-shell {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .property-gallery__main {
    aspect-ratio: 1 / 1;
  }

  .property-info__eyebrow {
    margin-bottom: 8px;
  }

  .property-info h2 {
    margin-bottom: 16px;
    font-size: clamp(42px, 12vw, 54px);
  }

  .property-info__description {
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
  }

  .property-features {
    margin-bottom: 34px;
  }

  .property-gallery__thumbs {
    gap: 8px;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .property-gallery__thumbs {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .property-gallery__thumb {
    min-width: 64px;
  }

  .property-gallery__action {
    width: 19px;
    height: 19px;
  }

  .property-gallery__action svg {
    width: 10px;
    height: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-gallery__main img,
  .property-gallery__thumb,
  .property-gallery__thumb img,
  .property-gallery__action {
    transition: none;
  }
}


/* =========================================================
   NUESTRA OFERTA INMOBILIARIA
   ========================================================= */

.property-offer {
  background: var(--color-white);
  padding-block: 76px 90px;
}

.offer-shell {
  width: min(1010px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.offer-heading {
  margin-bottom: 46px;
  text-align: center;
}

.offer-heading__eyebrow {
  margin: 0 0 7px;
  color: var(--color-aqua);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.offer-heading h2 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(46px, 4.5vw, 58px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.025em;
  line-height: 1;
}

/* ---------------------------------------------------------
   THREE-COLUMN GRID
   --------------------------------------------------------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
  position: relative;
  min-height: 360px;
  padding: 46px 32px 74px;
}

.offer-card + .offer-card {
  border-left: 1px solid var(--color-border);
}

.offer-card h3 {
  margin: 0 0 13px;
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.offer-card__accent {
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 34px;
  background: var(--color-aqua);
}

.offer-card p {
  max-width: 275px;
  margin: 0;
  color: #101010;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--fw-regular);
  line-height: 1.58;
}

/* ---------------------------------------------------------
   OUTLINE NUMBERS
   --------------------------------------------------------- */

.offer-card__number {
  position: absolute;
  right: 28px;
  bottom: 10px;

  color: transparent;
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.04em;
  line-height: 1;

  -webkit-text-stroke: 1px var(--color-aqua);
  text-stroke: 1px var(--color-aqua);
  opacity: 0.95;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .property-offer {
    padding-block: 72px 80px;
  }

  .offer-shell {
    width: calc(100% - 48px);
  }

  .offer-heading {
    margin-bottom: 38px;
  }

  .offer-card {
    min-height: 340px;
    padding: 38px 24px 70px;
  }

  .offer-card h3 {
    font-size: 24px;
  }

  .offer-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .offer-card__number {
    right: 20px;
    font-size: 60px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .property-offer {
    padding-block: 64px 70px;
  }

  .offer-shell {
    width: calc(100% - 40px);
  }

  .offer-heading {
    margin-bottom: 32px;
  }

  .offer-heading__eyebrow {
    font-size: 20px;
  }

  .offer-heading h2 {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 0.98;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: auto;
    padding: 34px 0 72px;
  }

  .offer-card + .offer-card {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .offer-card h3 {
    font-size: 27px;
  }

  .offer-card__accent {
    margin-bottom: 24px;
  }

  .offer-card p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.6;
  }

  .offer-card__number {
    right: 0;
    bottom: 10px;
    font-size: 62px;
  }
}


/* =========================================================
   VÍA MADERO — ZONA CENTRO
   ========================================================= */

.via-madero {
  background: var(--color-gray-100);
  padding-block: 72px 92px;
}

.via-madero-shell {
  width: min(1010px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.via-madero-heading {
  margin-bottom: 54px;
  text-align: center;
}

.via-madero-heading__eyebrow {
  margin: 0 0 8px;
  color: var(--color-aqua);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: var(--fw-regular);
  line-height: 1.05;
}

.via-madero-heading h2 {
  margin: 0 auto 18px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(48px, 4.35vw, 59px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.via-madero-heading__description {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-regular);
  line-height: 1.35;
}

/* ---------------------------------------------------------
   BODY GRID
   --------------------------------------------------------- */

.via-madero-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.34fr;
  gap: 60px;
  align-items: center;
}

.via-madero-info {
  align-self: center;
}

.via-madero-info__copy {
  margin-bottom: 28px;
}

.via-madero-info__copy p {
  margin: 0 0 26px;
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--fw-regular);
  line-height: 1.48;
}

.via-madero-info__copy p:last-child {
  margin-bottom: 0;
}

.via-madero__cta {
  display: inline-flex;
  min-width: 215px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;

  background: rgba(227, 242, 250, 0.95);
  color: var(--color-navy-dark);

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.via-madero__cta:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ---------------------------------------------------------
   MAIN IMAGE
   --------------------------------------------------------- */

.via-madero-gallery__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfdfdf;
}

.via-madero-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 220ms ease,
    transform 420ms ease;
}

.via-madero-gallery__main img.is-changing {
  opacity: 0.22;
  transform: scale(1.01);
}

/* ---------------------------------------------------------
   THUMBNAILS
   --------------------------------------------------------- */

.via-madero-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.via-madero-gallery__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;

  border: 1px solid transparent;
  background: #d8d8d8;
  cursor: pointer;

  transition:
    border-color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.via-madero-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 320ms ease,
    filter 220ms ease;
}

.via-madero-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition-fast);
}

.via-madero-gallery__thumb:hover img {
  transform: scale(1.045);
}

.via-madero-gallery__thumb:hover::after,
.via-madero-gallery__thumb:focus-visible::after,
.via-madero-gallery__thumb.is-active::after {
  border-color: var(--color-aqua);
}

.via-madero-gallery__thumb.is-active {
  cursor: default;
}

.via-madero-gallery__thumb.is-active img {
  filter: brightness(0.9);
}

.via-madero-gallery__action {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;

  background: rgba(0, 34, 80, 0.78);
  color: var(--color-white);
  opacity: 0.9;
  pointer-events: none;

  transition:
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.via-madero-gallery__action svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.via-madero-gallery__thumb:hover .via-madero-gallery__action,
.via-madero-gallery__thumb:focus-visible .via-madero-gallery__action,
.via-madero-gallery__thumb.is-active .via-madero-gallery__action {
  background: var(--color-aqua);
  opacity: 1;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .via-madero {
    padding-block: 68px 80px;
  }

  .via-madero-shell {
    width: calc(100% - 48px);
  }

  .via-madero-heading {
    margin-bottom: 44px;
  }

  .via-madero-grid {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 38px;
  }

  .via-madero-info__copy p {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .via-madero-gallery__thumbs {
    gap: 7px;
  }

  .via-madero-gallery__action {
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .via-madero {
    padding-block: 64px 70px;
  }

  .via-madero-shell {
    width: calc(100% - 40px);
  }

  .via-madero-heading {
    margin-bottom: 38px;
  }

  .via-madero-heading__eyebrow {
    font-size: 21px;
  }

  .via-madero-heading h2 {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1;
  }

  .via-madero-heading__description {
    font-size: 13px;
    line-height: 1.5;
  }

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

  .via-madero-info {
    order: 2;
  }

  .via-madero-gallery {
    order: 1;
  }

  .via-madero-info__copy p {
    font-size: 16px;
    line-height: 1.55;
  }

  .via-madero__cta {
    min-width: 190px;
    min-height: 42px;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .via-madero-gallery__thumbs {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .via-madero-gallery__thumb {
    min-width: 64px;
  }

  .via-madero-gallery__action {
    width: 19px;
    height: 19px;
  }

  .via-madero-gallery__action svg {
    width: 10px;
    height: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .via-madero-gallery__main img,
  .via-madero-gallery__thumb,
  .via-madero-gallery__thumb img,
  .via-madero-gallery__action {
    transition: none;
  }
}


/* =========================================================
   GALERÍA GENERAL
   ========================================================= */

.general-gallery {
  background: var(--color-white);
  padding-block: 74px 92px;
}

.general-gallery-shell {
  width: min(1010px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.general-gallery-heading {
  margin-bottom: 58px;
  text-align: center;
}

.general-gallery-heading__eyebrow {
  margin: 0 0 9px;
  color: var(--color-aqua);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.general-gallery-heading h2 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(44px, 4.15vw, 56px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.025em;
  line-height: 1.03;
}

/* ---------------------------------------------------------
   MOSAIC GRID
   --------------------------------------------------------- */

.general-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 32px;
}

.general-gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--color-gray-100);
}

.general-gallery-item--large {
  grid-column: span 3;
  aspect-ratio: 16 / 10.4;
}

.general-gallery-item--small {
  grid-column: span 2;
  aspect-ratio: 16 / 10.3;
}

.general-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.general-gallery-item:hover img {
  transform: scale(1.018);
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .general-gallery {
    padding-block: 68px 80px;
  }

  .general-gallery-shell {
    width: calc(100% - 48px);
  }

  .general-gallery-heading {
    margin-bottom: 46px;
  }

  .general-gallery-grid {
    gap: 22px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .general-gallery {
    padding-block: 62px 70px;
  }

  .general-gallery-shell {
    width: calc(100% - 40px);
  }

  .general-gallery-heading {
    margin-bottom: 36px;
  }

  .general-gallery-heading__eyebrow {
    font-size: 20px;
  }

  .general-gallery-heading h2 {
    font-size: clamp(38px, 10.5vw, 50px);
    line-height: 1;
  }

  .general-gallery-heading h2 br {
    display: none;
  }

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

  .general-gallery-item--large,
  .general-gallery-item--small {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .general-gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10.5;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .general-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .general-gallery-item:first-child,
  .general-gallery-item--large,
  .general-gallery-item--small {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .general-gallery-item img {
    transition: none;
  }
}


/* =========================================================
   GALERÍA GENERAL — INTERACCIÓN / LIGHTBOX
   ========================================================= */

.general-gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;

  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

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

.general-gallery-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;

  background: rgba(0, 34, 80, 0.78);
  color: var(--color-white);
  opacity: 0.9;
  pointer-events: none;

  transition:
    background-color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.general-gallery-expand svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.general-gallery-trigger:hover .general-gallery-expand,
.general-gallery-trigger:focus-visible .general-gallery-expand {
  background: var(--color-aqua);
  opacity: 1;
  transform: scale(1.04);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  padding: 48px 80px;
  background: rgba(1, 15, 35, 0.94);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox__stage {
  display: grid;
  width: min(1180px, 88vw);
  height: min(78vh, 820px);
  place-items: center;
}

.gallery-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;

  opacity: 1;
  transform: scale(1);
  transition:
    opacity 180ms ease,
    transform 240ms ease;
}

.gallery-lightbox__image.is-changing {
  opacity: 0.18;
  transform: scale(0.992);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;

  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 34, 80, 0.42);
  color: var(--color-white);

  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  background: var(--color-aqua);
  border-color: var(--color-aqua);
}

.gallery-lightbox__close {
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);

  font-family: Arial, sans-serif;
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox__nav--prev {
  left: 24px;
}

.gallery-lightbox__nav--next {
  right: 24px;
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .general-gallery-expand {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .gallery-lightbox {
    padding: 60px 20px 52px;
  }

  .gallery-lightbox__stage {
    width: 100%;
    height: 76vh;
  }

  .gallery-lightbox__close {
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox__nav {
    top: auto;
    bottom: 14px;
    width: 44px;
    height: 40px;
    transform: none;
    font-size: 34px;
  }

  .gallery-lightbox__nav--prev {
    left: 16px;
  }

  .gallery-lightbox__nav--next {
    right: 16px;
  }

  .gallery-lightbox__counter {
    bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox__image,
  .general-gallery-expand {
    transition: none;
  }
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
  position: relative;
  isolation: isolate;
  min-height: 445px;
  overflow: hidden;

  background:
    url("../images/form/fondo%20contacto.webp")
    center center / cover no-repeat;
}

.contact-section__overlay {
  display: none;
}

.contact-shell {
  display: grid;
  width: min(1010px, calc(100% - 48px));
  min-height: 445px;
  margin-inline: auto;

  grid-template-columns: 0.92fr 1.08fr;
  gap: 62px;
  align-items: center;
}

/* ---------------------------------------------------------
   COPY
   --------------------------------------------------------- */

.contact-copy {
  align-self: center;
}

.contact-copy__eyebrow {
  margin: 0 0 9px;
  color: var(--color-aqua);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.contact-copy h2 {
  margin: 0 0 34px;
  color: var(--color-navy-dark);
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 56px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.026em;
  line-height: 0.97;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1;

  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.contact-whatsapp:hover {
  color: var(--color-navy);
  opacity: 0.78;
}

.contact-whatsapp__icon {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
}

.contact-whatsapp__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.contact-form-wrap {
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form__field {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(0, 34, 80, 0.10);
  border-radius: 0;

  background: rgba(255, 255, 255, 0.90);
  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-regular);

  outline: none;

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.contact-form input {
  min-height: 30px;
  padding: 7px 10px;
}

.contact-form textarea {
  min-height: 100px;
  padding: 10px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(8, 40, 77, 0.42);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-aqua);
  background: var(--color-white);
}

.contact-form__submit {
  display: inline-flex;
  width: 190px;
  min-height: 31px;
  align-items: center;
  justify-content: center;

  padding: 8px 20px;
  border: 0;
  border-radius: 0;

  background: var(--color-navy);
  color: var(--color-white);

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.contact-form__submit:hover {
  background: var(--color-navy-dark);
}

.contact-form__note {
  margin: 8px 0 0;
  color: rgba(8, 40, 77, 0.58);
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.4;
}

/* Accesibilidad: labels visualmente ocultos */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .contact-shell {
    width: calc(100% - 48px);
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
  }

  .contact-copy h2 {
    font-size: clamp(40px, 5vw, 50px);
  }

  .contact-whatsapp {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .contact-section {
    padding-block: 64px 68px;
    background-position: 58% center;
  }

  .contact-shell {
    width: calc(100% - 40px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-copy {
    text-align: left;
  }

  .contact-copy h2 {
    margin-bottom: 26px;
    font-size: clamp(40px, 12vw, 52px);
    line-height: 0.98;
  }

  .contact-whatsapp {
    font-size: 18px;
  }

  .contact-form__submit {
    width: 100%;
    min-height: 42px;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

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

  .contact-form {
    gap: 10px;
  }

  .contact-form input {
    min-height: 42px;
    font-size: 13px;
  }

  .contact-form textarea {
    min-height: 130px;
    font-size: 13px;
  }

  .contact-form__note {
    font-size: 9px;
  }
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  color: var(--color-white);
}

.site-footer__main {
  position: relative;
  background: var(--color-navy);
  padding-block: 54px 58px;
}

.footer-shell {
  position: relative;
  display: grid;
  width: min(1010px, calc(100% - 48px));
  margin-inline: auto;

  grid-template-columns: 1.35fr 0.72fr 0.72fr 1.35fr auto;
  gap: 34px;
  align-items: center;
}

/* ---------------------------------------------------------
   BRAND
   --------------------------------------------------------- */

.footer-brand {
  align-self: center;
}

.footer-brand a {
  display: inline-block;
  width: 175px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */

.footer-nav {
  display: grid;
  gap: 8px;
  align-content: center;
}

.footer-nav a {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-regular);
  line-height: 1.2;

  transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
  opacity: 0.66;
}

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;

  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.footer-social a:hover {
  opacity: 0.65;
}

.footer-social svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.footer-social__dot {
  fill: currentColor;
  stroke: none;
}

.footer-email {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--fw-regular);
  line-height: 1.2;

  transition: opacity var(--transition-fast);
}

.footer-email:hover {
  opacity: 0.68;
}

/* ---------------------------------------------------------
   BACK TO TOP
   --------------------------------------------------------- */

.back-to-top {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);

  cursor: pointer;

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-aqua);
  border-color: var(--color-aqua);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------
   COPYRIGHT BAR
   --------------------------------------------------------- */

.site-footer__bottom {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;

  padding: 16px 24px;
  background: var(--color-navy-dark);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--fw-regular);
  line-height: 1.4;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .footer-shell {
    width: calc(100% - 48px);
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr auto;
    gap: 22px;
  }

  .footer-brand a {
    width: 155px;
  }

  .footer-email {
    font-size: 9px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .site-footer__main {
    padding-block: 46px;
  }

  .footer-shell {
    width: calc(100% - 40px);
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand a {
    width: 170px;
  }

  .footer-contact {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .footer-email {
    font-size: 10px;
  }

  .back-to-top {
    position: absolute;
    right: 0;
    top: 0;
  }

  .site-footer__bottom {
    min-height: 64px;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-nav a {
    font-size: 11px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
  }
}


/* =========================================================
   SECTION RHYTHM V1
   Normalización de alturas y ritmo vertical
   ---------------------------------------------------------
   Objetivo desktop:
   Las secciones principales quedan visualmente dentro de un
   rango aproximado de 700–740px, sin forzar alturas rígidas
   cuando el contenido necesita crecer.
   ========================================================= */

:root {
  --lp-section-y: 72px;
  --lp-section-y-tablet: 64px;
  --lp-section-y-mobile: 56px;
  --lp-section-min-desktop: 700px;
}

/* ---------------------------------------------------------
   BASE — MAIN CONTENT SECTIONS
   --------------------------------------------------------- */

.featured-property,
.property-offer,
.via-madero,
.general-gallery {
  box-sizing: border-box;
  padding-block: var(--lp-section-y);
}

.featured-property,
.property-offer,
.via-madero,
.general-gallery {
  min-height: var(--lp-section-min-desktop);
}

/* Evita que los anchors queden pegados al borde superior */
.featured-property,
.property-offer,
.via-madero,
.general-gallery,
.contact-section {
  scroll-margin-top: 20px;
}

/* ---------------------------------------------------------
   REAL DEL MAR
   --------------------------------------------------------- */

.featured-property {
  display: flex;
  align-items: center;
}

.property-shell {
  width: min(1010px, calc(100% - 48px));
}

/* La imagen sigue siendo protagonista, pero la sección deja
   de sentirse excesivamente alta por padding desigual. */
.property-gallery__main {
  max-height: 500px;
}

/* ---------------------------------------------------------
   NUESTRA OFERTA
   --------------------------------------------------------- */

.property-offer {
  display: flex;
  align-items: center;
}

.offer-heading {
  margin-bottom: 34px;
}

.offer-card {
  min-height: 315px;
  padding-top: 32px;
  padding-bottom: 60px;
}

.offer-card__accent {
  margin-bottom: 26px;
}

.offer-card__number {
  bottom: 6px;
}

/* ---------------------------------------------------------
   VÍA MADERO
   Esta era una de las secciones que más altura acumulaba:
   heading + imagen 4:3 + thumbnails + paddings.
   --------------------------------------------------------- */

.via-madero {
  display: flex;
  align-items: center;
}

.via-madero-heading {
  margin-bottom: 34px;
}

.via-madero-heading h2 {
  margin-bottom: 14px;
}

.via-madero-grid {
  gap: 52px;
  align-items: center;
}

.via-madero-info__copy {
  margin-bottom: 22px;
}

.via-madero-info__copy p {
  margin-bottom: 18px;
}

.via-madero-gallery__main {
  height: 340px;
  aspect-ratio: auto;
}

.via-madero-gallery__thumbs {
  margin-top: 9px;
  gap: 8px;
}

.via-madero-gallery__thumb {
  aspect-ratio: 16 / 10;
}

/* ---------------------------------------------------------
   GALERÍA GENERAL
   Reducimos la altura física de las dos filas sin cambiar
   el mosaico 2 + 3 aprobado.
   --------------------------------------------------------- */

.general-gallery {
  display: flex;
  align-items: center;
}

.general-gallery-heading {
  margin-bottom: 38px;
}

.general-gallery-grid {
  gap: 20px 24px;
}

.general-gallery-item--large {
  height: 250px;
  aspect-ratio: auto;
}

.general-gallery-item--small {
  height: 170px;
  aspect-ratio: auto;
}

/* ---------------------------------------------------------
   CONTACTO
   Mantiene una personalidad más compacta, pero ya no queda
   tan drásticamente más corta que el resto.
   --------------------------------------------------------- */

.contact-section {
  display: flex;
  min-height: 540px;
  align-items: center;
  padding-block: 56px;
}

.contact-shell {
  width: min(1010px, calc(100% - 48px));
  min-height: 0;
}

.contact-copy h2 {
  margin-bottom: 28px;
}

/* ---------------------------------------------------------
   TABLET
   En tablet dejamos de forzar mínimos para permitir que el
   contenido determine la altura naturalmente.
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery {
    min-height: 0;
    padding-block: var(--lp-section-y-tablet);
  }

  .property-gallery__main {
    max-height: none;
  }

  .offer-card {
    min-height: 300px;
  }

  .via-madero-heading {
    margin-bottom: 32px;
  }

  .via-madero-grid {
    gap: 36px;
  }

  .via-madero-gallery__main {
    height: 300px;
  }

  .general-gallery-heading {
    margin-bottom: 34px;
  }

  .general-gallery-item--large {
    height: 225px;
  }

  .general-gallery-item--small {
    height: 155px;
  }

  .contact-section {
    min-height: 500px;
    padding-block: 52px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   Ninguna altura fija: el contenido manda.
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery,
  .contact-section {
    display: block;
    min-height: 0;
    padding-block: var(--lp-section-y-mobile);
  }

  .offer-heading,
  .via-madero-heading,
  .general-gallery-heading {
    margin-bottom: 32px;
  }

  .offer-card {
    min-height: 0;
  }

  .via-madero-gallery__main {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .via-madero-gallery__thumb {
    aspect-ratio: 4 / 3;
  }

  .general-gallery-grid {
    gap: 14px;
  }

  .general-gallery-item--large,
  .general-gallery-item--small {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .general-gallery-item:first-child {
    aspect-ratio: 16 / 10.5;
  }

  .contact-shell {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery,
  .contact-section {
    padding-block: 52px;
  }

  .general-gallery-item:first-child,
  .general-gallery-item--large,
  .general-gallery-item--small {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}


/* =========================================================
   SECTION HEIGHT SYSTEM V2
   Vía Madero como altura patrón en desktop
   ========================================================= */

:root {
  /* Altura visual patrón basada en la sección Vía Madero */
  --content-section-height: 760px;
}

/* Todas las secciones principales, excepto HERO */
.featured-property,
.property-offer,
.via-madero,
.general-gallery,
.contact-section {
  box-sizing: border-box;
  height: var(--content-section-height);
  min-height: var(--content-section-height);
}

/* Centramos el contenido verticalmente dentro de la misma altura */
.featured-property,
.property-offer,
.via-madero,
.general-gallery,
.contact-section {
  display: flex;
  align-items: center;
}

/* Eliminamos cualquier regla anterior que pudiera hacerlas crecer
   por padding externo más allá de la altura patrón. */
.featured-property,
.property-offer,
.via-madero,
.general-gallery {
  padding-block: 64px;
}

.contact-section {
  padding-block: 56px;
}

/* ---------------------------------------------------------
   CONTACTO — PARALLAX SUAVE
   --------------------------------------------------------- */

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* La imagen ya no vive en background del elemento principal */
  background: none;
}

/* Fondo independiente para poder moverlo sin afectar contenido */
.contact-section::before {
  content: "";
  position: absolute;
  z-index: -2;

  /* Un poco más grande para que el movimiento no revele bordes */
  inset: -7% 0;

  background:
    url("../images/form/fondo%20contacto.webp")
    center center / cover no-repeat;

  transform: translate3d(0, var(--contact-parallax-y, 0px), 0);
  will-change: transform;
}

/* No usamos overlay porque la imagen ya viene tratada */
.contact-section__overlay {
  display: none;
}

/* La nota auxiliar del formulario fue eliminada del HTML */
.contact-form__note {
  display: none !important;
}

/* ---------------------------------------------------------
   TABLET
   En tablet dejamos que las secciones respiren según contenido.
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery,
  .contact-section {
    height: auto;
    min-height: 0;
    display: block;
  }

  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery {
    padding-block: 64px;
  }

  .contact-section {
    padding-block: 60px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery,
  .contact-section {
    height: auto;
    min-height: 0;
  }

  .featured-property,
  .property-offer,
  .via-madero,
  .general-gallery,
  .contact-section {
    padding-block: 56px;
  }

  .contact-section::before {
    inset: -3% 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section::before {
    transform: none !important;
  }
}


/* =========================================================
   SCROLL ANIMATION SYSTEM V3
   Editorial / subtle motion
   ========================================================= */

/* Solo ocultamos elementos cuando JS confirma que puede animar.
   Sin JS, todo permanece visible. */
html.js-scroll-animations [data-reveal],
html.js-scroll-animations [data-reveal-group="hero"] > * {
  opacity: 0;
  will-change: opacity, transform;
}

/* ---------------------------------------------------------
   DIRECTIONS
   --------------------------------------------------------- */

html.js-scroll-animations [data-reveal="up"] {
  transform: translate3d(0, 28px, 0);
}

html.js-scroll-animations [data-reveal="left"] {
  transform: translate3d(-32px, 0, 0);
}

html.js-scroll-animations [data-reveal="right"],
html.js-scroll-animations [data-reveal="content-right"] {
  transform: translate3d(32px, 0, 0);
}

/* Imagen destacada: un reveal más fotográfico */
html.js-scroll-animations [data-reveal="image-left"] {
  transform: translate3d(-22px, 18px, 0) scale(0.985);
}

/* Galería: pequeño zoom + elevación */
html.js-scroll-animations [data-reveal="gallery"] {
  transform: translate3d(0, 22px, 0) scale(0.985);
}

/* ---------------------------------------------------------
   VISIBLE STATE
   --------------------------------------------------------- */

html.js-scroll-animations [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 720ms cubic-bezier(.2,.65,.25,1),
    transform 820ms cubic-bezier(.2,.65,.25,1);
}

/* ---------------------------------------------------------
   HERO LOAD SEQUENCE
   --------------------------------------------------------- */

html.js-scroll-animations [data-reveal-group="hero"] > * {
  transform: translate3d(0, 24px, 0);
}

html.js-scroll-animations [data-reveal-group="hero"].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 760ms cubic-bezier(.2,.65,.25,1),
    transform 860ms cubic-bezier(.2,.65,.25,1);
}

html.js-scroll-animations [data-reveal-group="hero"].is-visible > *:nth-child(1) {
  transition-delay: 120ms;
}

html.js-scroll-animations [data-reveal-group="hero"].is-visible > *:nth-child(2) {
  transition-delay: 230ms;
}

html.js-scroll-animations [data-reveal-group="hero"].is-visible > *:nth-child(3) {
  transition-delay: 340ms;
}

/* ---------------------------------------------------------
   STAGGER — OFFER CARDS
   --------------------------------------------------------- */

html.js-scroll-animations .offer-card:nth-child(1).is-visible {
  transition-delay: 70ms;
}

html.js-scroll-animations .offer-card:nth-child(2).is-visible {
  transition-delay: 170ms;
}

html.js-scroll-animations .offer-card:nth-child(3).is-visible {
  transition-delay: 270ms;
}

/* El número entra un poco después del card */
html.js-scroll-animations .offer-card .offer-card__number {
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(.2,.65,.25,1);
}

html.js-scroll-animations .offer-card:not(.is-visible) .offer-card__number {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

html.js-scroll-animations .offer-card.is-visible .offer-card__number {
  opacity: .95;
  transform: translate3d(0, 0, 0);
}

/* ---------------------------------------------------------
   STAGGER — GENERAL GALLERY
   --------------------------------------------------------- */

html.js-scroll-animations .general-gallery-item:nth-child(1).is-visible {
  transition-delay: 40ms;
}

html.js-scroll-animations .general-gallery-item:nth-child(2).is-visible {
  transition-delay: 120ms;
}

html.js-scroll-animations .general-gallery-item:nth-child(3).is-visible {
  transition-delay: 70ms;
}

html.js-scroll-animations .general-gallery-item:nth-child(4).is-visible {
  transition-delay: 150ms;
}

html.js-scroll-animations .general-gallery-item:nth-child(5).is-visible {
  transition-delay: 230ms;
}

/* ---------------------------------------------------------
   REAL DEL MAR THUMBNAILS — SUBTLE CASCADE
   --------------------------------------------------------- */

html.js-scroll-animations .property-info.is-visible .property-gallery__thumb {
  animation: gibThumbIn 560ms cubic-bezier(.2,.65,.25,1) both;
}

html.js-scroll-animations .property-info.is-visible .property-gallery__thumb:nth-child(1) { animation-delay: 180ms; }
html.js-scroll-animations .property-info.is-visible .property-gallery__thumb:nth-child(2) { animation-delay: 230ms; }
html.js-scroll-animations .property-info.is-visible .property-gallery__thumb:nth-child(3) { animation-delay: 280ms; }
html.js-scroll-animations .property-info.is-visible .property-gallery__thumb:nth-child(4) { animation-delay: 330ms; }
html.js-scroll-animations .property-info.is-visible .property-gallery__thumb:nth-child(5) { animation-delay: 380ms; }

@keyframes gibThumbIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ---------------------------------------------------------
   VÍA MADERO THUMBNAILS
   --------------------------------------------------------- */

html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb {
  animation: gibViaThumbIn 540ms cubic-bezier(.2,.65,.25,1) both;
}

html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb:nth-child(1) { animation-delay: 220ms; }
html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb:nth-child(2) { animation-delay: 270ms; }
html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb:nth-child(3) { animation-delay: 320ms; }
html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb:nth-child(4) { animation-delay: 370ms; }
html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb:nth-child(5) { animation-delay: 420ms; }

@keyframes gibViaThumbIn {
  from {
    opacity: 0;
    transform: translate3d(0, 9px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ---------------------------------------------------------
   HOVER POLISH — DESKTOP ONLY
   --------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .offer-card {
    transition:
      transform 260ms ease,
      background-color 260ms ease;
  }

  .offer-card:hover {
    transform: translateY(-4px);
    background: rgba(227, 242, 250, 0.22);
  }

  .general-gallery-trigger img {
    transition: transform 500ms cubic-bezier(.2,.65,.25,1);
  }

  .general-gallery-trigger:hover img {
    transform: scale(1.035);
  }

  .via-madero-gallery__main img,
  .property-gallery__main img {
    transition:
      opacity 220ms ease,
      transform 700ms cubic-bezier(.2,.65,.25,1);
  }

  .via-madero-gallery__main:hover img,
  .property-gallery__main:hover img {
    transform: scale(1.015);
  }
}

/* ---------------------------------------------------------
   MOBILE — LESS DISTANCE / FASTER
   --------------------------------------------------------- */

@media (max-width: 720px) {
  html.js-scroll-animations [data-reveal="left"],
  html.js-scroll-animations [data-reveal="right"],
  html.js-scroll-animations [data-reveal="content-right"],
  html.js-scroll-animations [data-reveal="image-left"],
  html.js-scroll-animations [data-reveal="gallery"],
  html.js-scroll-animations [data-reveal="up"] {
    transform: translate3d(0, 18px, 0) scale(1);
  }

  html.js-scroll-animations [data-reveal].is-visible {
    transition-duration: 600ms;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.js-scroll-animations [data-reveal],
  html.js-scroll-animations [data-reveal-group="hero"] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  html.js-scroll-animations .property-gallery__thumb,
  html.js-scroll-animations .via-madero-gallery__thumb,
  html.js-scroll-animations .offer-card__number {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================
   HERO — OVERLAY DE LEGIBILIDAD V4
   Azul marino tenue, más intenso detrás del texto
   ========================================================= */

.hero {
  background:
    linear-gradient(
      90deg,
      rgba(0, 34, 80, 0.44) 0%,
      rgba(0, 34, 80, 0.34) 34%,
      rgba(1, 22, 53, 0.20) 68%,
      rgba(1, 22, 53, 0.12) 100%
    ),
    url("../images/hero/inmobiliario-bustamante-hero.webp")
      center center / cover no-repeat;
}

/* Refuerzo muy sutil al texto sin recurrir a sombras pesadas */
.hero__content h1,
.hero__content p {
  text-shadow: 0 1px 10px rgba(1, 22, 53, 0.16);
}

/* En móvil el texto ocupa más ancho, así que el overlay
   se distribuye de forma un poco más uniforme. */
@media (max-width: 720px) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(0, 34, 80, 0.42) 0%,
        rgba(0, 34, 80, 0.33) 55%,
        rgba(1, 22, 53, 0.20) 100%
      ),
      url("../images/hero/inmobiliario-bustamante-hero.webp")
        60% center / cover no-repeat;
  }
}


/* =========================================================
   HEADER MENU V5
   Burger-only navigation on desktop + fade/slide panel
   ========================================================= */

/* Ocultamos la navegación horizontal tradicional */
.desktop-nav {
  display: none !important;
}

/* Header layout: logo + burger */
.navbar {
  grid-template-columns: 1fr auto;
  column-gap: 24px;
}

.brand {
  justify-self: start;
}

.menu-toggle {
  display: inline-flex !important;
  justify-self: end;
  position: relative;
  z-index: 32;
}

/* El contenedor del header será la referencia del panel */
.site-header .hero-shell {
  position: relative;
}

/* Panel de navegación reutilizando el nav móvil existente */
.mobile-nav {
  position: absolute;
  top: 154px;
  right: 0;
  z-index: 30;

  display: grid;
  width: min(340px, calc(100vw - 48px));
  padding: 14px 0;

  background: rgba(1, 22, 53, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 18px 55px rgba(1, 22, 53, 0.20);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate3d(0, -16px, 0);

  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(.2,.65,.25,1),
    visibility 260ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translate3d(0, 0, 0);
}

.mobile-nav a {
  position: relative;
  display: block;
  padding: 14px 22px;

  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;

  border-top: 0;
  transition:
    background-color var(--transition-fast),
    padding-left var(--transition-fast),
    color var(--transition-fast);
}

.mobile-nav a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;

  width: 0;
  height: 1px;

  background: var(--color-aqua);
  transform: translateY(-50%);

  transition: width var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  padding-left: 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

.mobile-nav a:hover::before,
.mobile-nav a:focus-visible::before {
  width: 10px;
}

/* Burger ligeramente más visible en desktop */
.menu-toggle {
  width: 36px;
  height: 36px;
}

.menu-toggle span {
  width: 21px;
  height: 1px;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 850px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    top: 140px;
    width: min(320px, calc(100vw - 40px));
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 560px) {
  .mobile-nav {
    top: 136px;
    left: 0;
    right: 0;

    width: 100%;
    max-width: none;

    transform: translate3d(0, -12px, 0);
  }

  .mobile-nav.is-open {
    transform: translate3d(0, 0, 0);
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav a,
  .mobile-nav a::before {
    transition: none !important;
  }
}


/* =========================================================
   HEADER MENU V6
   Desktop: horizontal inline menu, fade + slide from burger
   ========================================================= */

@media (min-width: 851px) {

  /* Recuperamos las 3 zonas del diseño:
     logo | menú horizontal | burger */
  .navbar {
    grid-template-columns: 230px 1fr 36px;
    column-gap: 24px;
  }

  /* El menú queda en su posición final, justo antes del burger */
  .desktop-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Arranca ligeramente hacia la derecha,
       es decir, "pegado" al burger */
    transform: translate3d(34px, 0, 0);

    transition:
      opacity 240ms ease,
      transform 360ms cubic-bezier(.2,.65,.25,1),
      visibility 240ms ease;
  }

  .desktop-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    /* Se desliza hacia la izquierda hasta su lugar natural */
    transform: translate3d(0, 0, 0);
  }

  .desktop-nav a,
  .desktop-nav span {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--fw-medium);
    line-height: 1;
  }

  .desktop-nav a {
    position: relative;
    opacity: 0;
    transform: translate3d(12px, 0, 0);

    transition:
      opacity 220ms ease,
      transform 300ms cubic-bezier(.2,.65,.25,1);
  }

  .desktop-nav span {
    margin-inline: 4px;
    opacity: 0;
    transform: translate3d(8px, 0, 0);

    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(.2,.65,.25,1);
  }

  /* Stagger: empieza por el link más cercano al burger,
     reforzando la sensación de que "sale" desde ahí */
  .desktop-nav.is-open a,
  .desktop-nav.is-open span {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .desktop-nav.is-open > *:nth-last-child(1) { transition-delay: 40ms; }
  .desktop-nav.is-open > *:nth-last-child(2) { transition-delay: 60ms; }
  .desktop-nav.is-open > *:nth-last-child(3) { transition-delay: 80ms; }
  .desktop-nav.is-open > *:nth-last-child(4) { transition-delay: 100ms; }
  .desktop-nav.is-open > *:nth-last-child(5) { transition-delay: 120ms; }
  .desktop-nav.is-open > *:nth-last-child(6) { transition-delay: 140ms; }
  .desktop-nav.is-open > *:nth-last-child(7) { transition-delay: 160ms; }
  .desktop-nav.is-open > *:nth-last-child(8) { transition-delay: 180ms; }
  .desktop-nav.is-open > *:nth-last-child(9) { transition-delay: 200ms; }
  .desktop-nav.is-open > *:nth-last-child(10) { transition-delay: 220ms; }
  .desktop-nav.is-open > *:nth-last-child(11) { transition-delay: 240ms; }

  .desktop-nav a:hover {
    opacity: 0.68;
  }

  /* En desktop NO usamos el panel desplegable */
  .mobile-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    justify-self: end;
  }
}

/* Mantiene el panel móvil existente */
@media (max-width: 850px) {
  .desktop-nav {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .desktop-nav,
  .desktop-nav a,
  .desktop-nav span {
    transition: none !important;
  }
}


/* =========================================================
   HEADER MENU V7
   Más presencia visual en desktop
   ========================================================= */

@media (min-width: 851px) {

  .navbar {
    grid-template-columns: 230px 1fr 44px;
    column-gap: 28px;
  }

  .desktop-nav a,
  .desktop-nav span {
    font-size: 14px;
    font-weight: var(--fw-semibold);
  }

  .desktop-nav span {
    margin-inline: 6px;
    opacity: 0.82;
  }

  .desktop-nav a {
    letter-spacing: 0.005em;
  }

  /* Burger más grande y con más peso */
  .menu-toggle {
    width: 44px;
    height: 44px;
    gap: 7px;
  }

  .menu-toggle span {
    width: 26px;
    height: 2px;
    border-radius: 2px;
  }

  /* Ajuste de transformación para la X */
  .menu-toggle.is-open span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }
}

/* Mobile: un poco más robusta también, pero sin exagerar */
@media (max-width: 850px) {
  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 6px;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}


/* =========================================================
   HERO V8
   Contenido principal centrado verticalmente
   ========================================================= */

@media (min-width: 851px) {
  .hero {
    position: relative;
    min-height: 100svh;
  }

  .hero__content {
    position: absolute;
    top: 50%;
    left: 50%;

    width: min(1010px, calc(100% - 48px));
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;

    transform: translate(-50%, -50%);
  }
}

/* Tablet portrait / mobile:
   mantenemos flujo natural para evitar choque con header */
@media (max-width: 850px) {
  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    padding-top: 90px;
    padding-bottom: 90px;
  }
}

@media (max-width: 560px) {
  .hero__content {
    padding-top: 76px;
    padding-bottom: 72px;
  }
}


/* =========================================================
   REVOLUCIÓN 1764 — PROPERTY OVERRIDES V12
   ========================================================= */

.property-gallery__main--revolucion {
  aspect-ratio: 4 / 3;
  max-height: 500px;
}

.property-info--revolucion .property-info__eyebrow {
  max-width: 420px;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.property-info--revolucion h2 {
  margin-bottom: 14px;
  font-size: clamp(46px, 4vw, 56px);
  line-height: 1;
}

.property-info__meta {
  margin: 0 0 18px;
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.property-info__description--revolucion {
  max-width: 500px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.property-lease-terms {
  margin-bottom: 28px;
}

.property-lease-terms p {
  margin: 0 0 5px;
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

.property-lease-terms p:last-child {
  margin-bottom: 0;
}

.property-gallery__thumbs--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 900px) {
  .property-info--revolucion .property-info__eyebrow {
    font-size: 18px;
  }

  .property-info--revolucion h2 {
    font-size: clamp(40px, 5vw, 50px);
  }

  .property-info__meta,
  .property-lease-terms p {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .property-gallery__main--revolucion {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .property-info--revolucion .property-info__eyebrow {
    font-size: 19px;
  }

  .property-info--revolucion h2 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .property-info__meta,
  .property-lease-terms p {
    font-size: 14px;
  }

  .property-gallery__thumbs--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .property-gallery__thumbs--six {
    grid-template-columns: repeat(6, minmax(64px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}


/* =========================================================
   REVOLUCIÓN 1764 — PREMIUM POLISH V13
   ========================================================= */

.featured-property--revolucion {
  background: #f0f0f0;
}

.property-shell--revolucion {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 58px;
  align-items: center;
}

/* ---------------------------------------------------------
   GALLERY BLOCK
   --------------------------------------------------------- */

.property-gallery--revolucion {
  align-self: center;
}

.property-gallery__main--revolucion {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 455px;
  background: #dcdcdc;
}

.property-gallery__main--revolucion::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 34, 80, 0.06);
  pointer-events: none;
}

.property-gallery__thumbs--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.property-gallery__thumbs--six .property-gallery__thumb {
  aspect-ratio: 4 / 3;
}

/* Active thumbnail feels more editorial, less UI-heavy */
.property-gallery__thumbs--six .property-gallery__thumb.is-active::after {
  border-color: var(--color-aqua);
  border-width: 2px;
}

.property-gallery__thumbs--six .property-gallery__action {
  width: 19px;
  height: 19px;
  top: 4px;
  right: 4px;
}

.property-gallery__thumbs--six .property-gallery__action svg {
  width: 10px;
  height: 10px;
}

/* ---------------------------------------------------------
   COPY / HIERARCHY
   --------------------------------------------------------- */

.property-info--premium {
  align-self: center;
}

.property-info--premium .property-info__eyebrow {
  max-width: none;
  margin: 0 0 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-aqua);
}

.property-info--premium h2 {
  margin: 0 0 22px;
  font-size: clamp(46px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* ---------------------------------------------------------
   FACTS
   --------------------------------------------------------- */

.property-facts {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  margin-bottom: 23px;
  border-top: 1px solid rgba(0, 34, 80, 0.13);
  border-bottom: 1px solid rgba(0, 34, 80, 0.13);
}

.property-fact {
  display: grid;
  gap: 3px;
  padding: 13px 13px 12px 0;
}

.property-fact + .property-fact {
  padding-left: 16px;
  border-left: 1px solid rgba(0, 34, 80, 0.13);
}

.property-fact__value {
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.property-fact__label {
  color: rgba(8, 40, 77, 0.55);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.property-description-frame {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--color-aqua);
}

.property-info--premium .property-info__description--revolucion {
  max-width: 480px;
  margin: 0;
  color: rgba(8, 40, 77, 0.9);
  font-size: 13px;
  line-height: 1.62;
}

/* ---------------------------------------------------------
   LEASE CARD
   --------------------------------------------------------- */

.property-lease-card {
  display: grid;
  grid-template-columns: 1.4fr 1px 0.8fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;

  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(0, 34, 80, 0.10);
}

.property-lease-card__item {
  display: grid;
  gap: 3px;
}

.property-lease-card__label {
  color: var(--color-aqua);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.10em;
  line-height: 1.2;
  text-transform: uppercase;
}

.property-lease-card__value {
  color: var(--color-navy-dark);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.02em;
  line-height: 1;
}

.property-lease-card__value--term {
  font-size: 25px;
}

.property-lease-card__suffix {
  color: rgba(8, 40, 77, 0.62);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--fw-regular);
  line-height: 1.2;
}

.property-lease-card__divider {
  width: 1px;
  height: 48px;
  background: rgba(0, 34, 80, 0.13);
}

/* Hide the old V12 elements if cached markup somehow remains */
.property-info--premium .property-info__meta,
.property-info--premium .property-lease-terms {
  display: none;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .property-shell--revolucion {
    gap: 38px;
  }

  .property-info--premium h2 {
    font-size: clamp(40px, 5vw, 49px);
  }

  .property-facts {
    grid-template-columns: 1fr;
  }

  .property-fact {
    padding: 9px 0;
  }

  .property-fact + .property-fact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(0, 34, 80, 0.10);
  }

  .property-lease-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .property-lease-card__divider {
    width: 100%;
    height: 1px;
  }

  .property-lease-card__value {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .property-shell--revolucion {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .property-gallery--revolucion {
    order: 1;
  }

  .property-info--premium {
    order: 2;
  }

  .property-gallery__main--revolucion {
    max-height: none;
  }

  .property-gallery__thumbs--six {
    grid-template-columns: repeat(6, minmax(68px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .property-info--premium .property-info__eyebrow {
    font-size: 10px;
  }

  .property-info--premium h2 {
    margin-bottom: 20px;
    font-size: clamp(40px, 11vw, 52px);
  }

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

  .property-fact {
    padding: 11px 8px 11px 0;
  }

  .property-fact + .property-fact {
    padding-left: 10px;
    border-top: 0;
    border-left: 1px solid rgba(0, 34, 80, 0.10);
  }

  .property-description-frame {
    margin-bottom: 22px;
  }

  .property-info--premium .property-info__description--revolucion {
    max-width: none;
    font-size: 14px;
    line-height: 1.6;
  }

  .property-lease-card {
    grid-template-columns: 1.25fr 1px 0.75fr;
    gap: 14px;
  }

  .property-lease-card__divider {
    width: 1px;
    height: 44px;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .property-facts {
    grid-template-columns: 1fr;
  }

  .property-fact {
    padding: 9px 0;
  }

  .property-fact + .property-fact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(0, 34, 80, 0.10);
  }

  .property-lease-card {
    grid-template-columns: 1fr;
  }

  .property-lease-card__divider {
    width: 100%;
    height: 1px;
  }

  .property-lease-card__value {
    font-size: 25px;
  }
}


/* =========================================================
   REVOLUCIÓN 1764 RESIDENCIAS — V15
   Reemplazo de la sección anterior de Vía Madero
   ========================================================= */

.via-madero--revolucion-residences .via-madero-heading__eyebrow {
  font-family: var(--font-display);
}

.via-madero--revolucion-residences .via-madero-heading h2 {
  line-height: 0.95;
}

.via-madero--revolucion-residences .via-madero-heading__description {
  max-width: 760px;
}

.via-madero-grid--revolucion {
  align-items: center;
}

.via-madero-info--revolucion .via-madero-info__copy--revolucion {
  display: grid;
  gap: 14px;
}

.via-madero-rate-card {
  padding: 14px 16px;
  border: 1px solid rgba(0, 34, 80, 0.10);
  background: rgba(255, 255, 255, 0.55);
}

.via-madero-rate-card p {
  margin: 0;
  color: var(--color-navy-dark);
  font-size: 14px;
  line-height: 1.55;
}

.via-madero-rate-card strong {
  font-weight: var(--fw-semibold);
}

.via-madero-amenities {
  margin: 2px 0 0;
  color: rgba(8, 40, 77, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.via-madero-gallery__thumbs--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.via-madero-gallery__thumbs--six .via-madero-gallery__thumb {
  aspect-ratio: 4 / 3;
}

/* sexto thumb también entra en la secuencia */
html.js-scroll-animations .via-madero-gallery.is-visible .via-madero-gallery__thumb:nth-child(6) {
  animation-delay: 470ms;
}

@media (max-width: 900px) {
  .via-madero-rate-card p,
  .via-madero-amenities {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .via-madero-gallery__thumbs--six {
    grid-template-columns: repeat(6, minmax(68px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .via-madero-rate-card {
    padding: 13px 14px;
  }
}


/* =========================================================
   PROPERTY TEMPLATE V16
   Uniformidad visual para futuras propiedades
   ========================================================= */

/* La segunda propiedad reutiliza la misma arquitectura
   de la ficha comercial premium. */
.featured-property--residential-revolucion {
  background: var(--color-gray-100);
}

.featured-property--residential-revolucion .property-info__eyebrow {
  max-width: 360px;
}

/* ---------------------------------------------------------
   RESIDENTIAL RATE TABLE
   --------------------------------------------------------- */

.property-residential-rates {
  display: grid;
  border: 1px solid rgba(0, 34, 80, 0.10);
  background: rgba(255, 255, 255, 0.62);
}

.property-residential-rate {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
}

.property-residential-rate + .property-residential-rate {
  border-top: 1px solid rgba(0, 34, 80, 0.10);
}

.property-residential-rate > div:first-child {
  display: grid;
  gap: 3px;
}

.property-residential-rate__label {
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.property-residential-rate__size {
  color: rgba(8, 40, 77, 0.58);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.property-residential-rate__price {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.property-residential-rate__price span {
  color: var(--color-aqua);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.property-residential-rate__price strong {
  color: var(--color-navy-dark);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.02em;
  line-height: 1;
}

.property-amenities-line {
  margin: 16px 0 0;
  color: rgba(8, 40, 77, 0.68);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.property-amenities-line span {
  margin-inline: 5px;
  color: var(--color-aqua);
}

/* ---------------------------------------------------------
   Compatibility: second gallery uses the same visual classes
   but keeps data-via-gallery-* so current JS still works.
   --------------------------------------------------------- */

.featured-property--residential-revolucion .property-gallery__main img.is-changing {
  opacity: 0.22;
  transform: scale(1.01);
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .property-residential-rate {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .property-residential-rate__price {
    justify-items: start;
    text-align: left;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .featured-property--residential-revolucion .property-info__eyebrow {
    max-width: none;
  }

  .property-residential-rate {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .property-residential-rate__price {
    justify-items: end;
    text-align: right;
  }

  .property-amenities-line {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .property-residential-rate {
    grid-template-columns: 1fr;
  }

  .property-residential-rate__price {
    justify-items: start;
    text-align: left;
  }

  .property-residential-rate__price strong {
    font-size: 24px;
  }
}


/* =========================================================
   PROPERTY AMENITIES — V17
   Bloque premium con íconos
   ========================================================= */

.property-amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.property-amenity {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 13px;

  border: 1px solid rgba(0, 34, 80, 0.10);
  background: rgba(255, 255, 255, 0.58);
}

.property-amenity__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(97, 186, 203, 0.12);
  color: var(--color-aqua);
}

.property-amenity__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-amenity__copy {
  display: grid;
  gap: 2px;
}

.property-amenity__label {
  color: var(--color-navy-dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}

.property-amenity__meta {
  color: rgba(8, 40, 77, 0.58);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .property-amenities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .property-amenity {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 13px 12px;
  }

  .property-amenity__icon {
    width: 36px;
    height: 36px;
  }

  .property-amenity__label {
    font-size: 12px;
  }
}


/* =========================================================
   PROPERTY AMENITIES — V18
   Corrección de proporciones / alineación
   ========================================================= */

.property-amenities {
  gap: 12px;
  margin-top: 18px;
}

.property-amenity {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 16px 12px 14px;

  text-align: center;
}

.property-amenity__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.property-amenity__icon svg {
  width: 17px;
  height: 17px;
}

.property-amenity__copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
}

.property-amenity__label {
  width: 100%;
  color: var(--color-navy-dark);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
}

.property-amenity__meta {
  max-width: 112px;
  color: rgba(8, 40, 77, 0.54);
  font-size: 8.5px;
  line-height: 1.3;
  text-align: center;
}

/* Seguridad nocturna puede ocupar dos líneas, pero sin verse comprimida */
.property-amenity:first-child .property-amenity__label {
  max-width: 100px;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .property-amenities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-amenity {
    min-height: 118px;
  }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 620px) {
  .property-amenities {
    grid-template-columns: 1fr;
  }

  .property-amenity {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 14px;
    text-align: left;
  }

  .property-amenity__copy {
    justify-items: start;
    text-align: left;
  }

  .property-amenity__label,
  .property-amenity__meta {
    max-width: none;
    text-align: left;
  }
}
