@import url("fonts.css");
@import url("brand.css");
@import url("tokens.css");

:root {
  --navy-mid: #132532;
  --navy-soft: #1a354c;
  --kicker: var(--kicker-gray);
  --benefits-bg: var(--slate);
  --footer: var(--slate);
  --radius: var(--radius-photo);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font-family: inherit; }

main {
  background: var(--navy);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-kicker);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--kicker-gray);
}
.kicker span {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--st-blue);
}

.btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.7rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--st-blue);
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.btn-cyan:hover { background: var(--st-blue-dark); }

/* ---------- Nav desktop ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.nav {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--pad-inline);
  background: var(--st-blue);
}

.nav-menu a.nav-cta-menu {
  letter-spacing: .12em;
}

.nav-logo img {
  width: 200px;
  height: auto;
  mix-blend-mode: screen;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 1.7vw, 1.9rem);
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-kicker);
  font-weight: var(--fw-regular);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .96;
  transition: opacity .2s ease;
}
.nav-menu a:hover,
.nav-menu a.is-active { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1.5px solid var(--white);
  padding: .38rem 1.05rem;
  border-radius: var(--radius-btn);
}
.nav-cta:hover {
  background: var(--white);
  color: var(--st-blue);
}

.nav-cta-bar { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 1.1rem clamp(1.4rem, 4vw, 3.2rem) 0;
}

.hero-shot {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  user-select: none;
}
.hero-shot .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-shot .swiper-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-shot .swiper-pagination {
  bottom: 1.15rem;
  z-index: 3;
}
.hero-shot .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 5px !important;
  background: #fff;
  opacity: .7;
  border-radius: 99px;
}
.hero-shot .swiper-pagination-bullet-active {
  background: var(--st-blue);
  opacity: 1;
}

.hero-board { display: none; }

.hero-cotiza {
  display: none;
}

/* Desktop / notebook: banner 16:9 completo, sin recortar ni hacer zoom */
@media (min-width: 901px) {
  .hero {
    padding: 1.05rem clamp(1.2rem, 3.4vw, 2.6rem) 0;
  }
  .hero-shot {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100svh - var(--header-h) - 2.1rem);
    cursor: grab;
  }
  .hero-shot:active {
    cursor: grabbing;
  }
  .hero-shot .swiper-wrapper,
  .hero-shot .swiper-slide {
    height: 100%;
  }
  /* 12.09cqw = 21.5% del alto 16:9 natural: ancla los botones al lockup
     del banner aunque max-height recorte la imagen en cover. */
  .hero-shot .swiper-slide {
    container-type: inline-size;
  }
  .hero-shot .swiper-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
  }
  .hero-cotiza,
  .hero-ver {
    display: inline-flex;
    position: absolute;
    left: 81.5%;
    top: calc(50% + 12.09cqw);
    z-index: 4;
    transform: translateX(-50%);
    min-width: 11.25rem;
    min-height: 2.65rem;
    padding: .55rem 1.65rem;
    border-radius: var(--radius-btn);
    font-size: .9rem;
    letter-spacing: .14em;
    line-height: 1.1;
    pointer-events: auto;
    cursor: pointer;
  }
  .hero-cotiza + .hero-ver {
    top: calc(50% + 12.09cqw + 3.35rem);
  }

  /* Fichas: la misma pieza del home (frase, logo, estado y precio). */
  .page-inner .hero-board {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 18, 28, .35) 0%, rgba(8, 18, 28, .05) 34%, rgba(8, 18, 28, .05) 62%, rgba(8, 18, 28, .42) 100%);
  }
  .page-inner .hero-quote {
    position: absolute;
    left: 4.5%;
    top: 50%;
    width: min(30cqw, 19rem);
    margin: 0;
    padding: .95rem 1.05rem;
    transform: translateY(-50%);
    background: var(--st-blue);
    color: #fff;
    font-size: clamp(.92rem, 1.25vw, 1.2rem);
    font-weight: 600;
    line-height: 1.28;
    border-radius: 2px;
  }
  .page-inner .hero-quote::before { content: "“ "; }
  .page-inner .hero-quote::after { content: " ”"; }
  .page-inner .hero-lockup {
    position: absolute;
    left: 81.5%;
    top: calc(50% + 12.09cqw);
    width: min(32cqw, 21rem);
    margin: 0;
    transform: translate(-50%, calc(-100% - .75rem));
    text-align: center;
    color: #fff;
  }
  .page-inner .hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .7rem .85rem .6rem;
    background: rgba(12, 20, 28, .9);
  }
  .page-inner .hero-lockup img,
  .page-inner .hero-name {
    height: clamp(40px, 3.6vw, 58px);
    width: auto;
    max-width: 58%;
    margin: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }
  .page-inner .hero-name {
    display: block;
    height: auto;
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .page-inner .hero-comuna {
    display: block;
    margin: 0;
    padding-left: .75rem;
    border-left: 1px solid rgba(255, 255, 255, .75);
    font-size: clamp(.72rem, .95vw, .95rem);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .page-inner .hero-badge {
    display: block;
    margin: 0;
    padding: .42rem .5rem;
    background: var(--st-blue);
    font-size: clamp(.68rem, .85vw, .88rem);
    font-weight: var(--fw-black);
    letter-spacing: .22em;
    text-transform: uppercase;
  }
  .page-inner .hero-lockup p {
    margin: 0;
    padding: .5rem .7rem .6rem;
    background: rgba(12, 20, 28, .92);
    font-size: clamp(.68rem, .85vw, .86rem);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.35;
  }
  .page-inner .hero-lockup .hero-desde {
    font-size: .78em;
    font-weight: var(--fw-regular);
    letter-spacing: .08em;
  }
  .page-inner .hero-lockup strong { font-weight: var(--fw-black); }
}

/* ---------- Descubrir / proyectos ---------- */
.discover {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  justify-content: space-between;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: center;
  padding: 2rem clamp(1.4rem, 4vw, 3.2rem) 2.2rem;
  background: var(--navy);
}

.discover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: center;
  height: max-content;
  max-width: 22rem;
}
.discover-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
}

.discover-copy h2 {
  margin: .35rem 0 1.55rem;
  font-weight: var(--fw-light);
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-h2);
  text-transform: uppercase;
  color: var(--white);
}
.discover-copy h2 em {
  display: block;
  font-style: italic;
  font-weight: var(--fw-light);
  letter-spacing: .04em;
  color: var(--st-blue);
}
.discover-copy h2 .discover-title-line2 {
  white-space: nowrap;
}
.discover-copy p {
  font-weight: 300;
  color: var(--text-soft);
}

.discover-cta-copy {
  min-height: 0;
  padding: .52rem 1.35rem;
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  line-height: 1.2;
  border-radius: var(--radius-btn);
}

.discover-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: none;
  height: 260px;
  min-height: 260px;
  justify-self: stretch;
}
.discover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 36% 38%;
}
.discover-cta-media { display: none; }

@media (min-width: 901px) {
  .discover {
    grid-template-columns: minmax(0, 1fr) 46%;
    column-gap: clamp(1.6rem, 3.2vw, 3rem);
    justify-content: stretch;
    align-items: center;
    padding-top: 1.35rem;
    padding-bottom: 1.15rem;
    padding-inline: clamp(1.2rem, 3.4vw, 2.6rem);
  }
  .discover-copy {
    width: max-content;
    max-width: min(100%, 28rem);
    justify-self: start;
    align-items: flex-start;
    justify-content: center;
    /* Earlier indent plus 40px, then another 32px right.
       Still clear of the city photo. */
    margin-left: calc(clamp(1.35rem, 2.1vw, 2.35rem) + 4.5rem);
    padding-inline: 0;
  }
  .discover-copy .kicker {
    justify-content: flex-start;
    font-size: .7rem;
    letter-spacing: .32em;
  }
  .discover-copy h2 {
    margin: .65rem 0 1.4rem;
    font-size: var(--fs-page-title-hero);
    line-height: 1.12;
    letter-spacing: .03em;
    text-align: left;
  }
  .discover-cta-copy {
    align-self: flex-start;
    margin-left: 0;
  }
  .discover-media {
    height: min(32vh, 300px);
    width: 100%;
    max-width: none;
    justify-self: end;
  }
}

/* ---------- Beneficios ---------- */
.benefits {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding-block: 1.85rem;
  padding-inline: clamp(1.2rem, 3vw, 2.5rem);
  background-color: #2d3d49; /* sólido: evita flash blanco antes de tokens */
  background: var(--benefits-bg, #2d3d49);
}
.benefits-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  gap: clamp(1.75rem, 2.8vw, 3rem);
  justify-content: center;
  align-items: center;
  width: min(100%, var(--benefits-max));
  margin-inline: auto;
}

.benefits-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  grid-template-rows: repeat(3, auto);
  gap: var(--gap-mosaic);
  width: 100%;
  max-width: none;
}
.mosaic-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-mosaic);
  color: var(--white);
  min-width: 0;
  background: #1a2833; /* evita flash blanco mientras cargan las fotos */
}
.mosaic-card:not(.mosaic-tall):not(.mosaic-stack):not(.mosaic-referidos):not(.mosaic-tributario) {
  aspect-ratio: 1 / 1.14;
}
.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a2833;
  opacity: 0;
  transition: opacity .35s ease;
}
.mosaic-card img.is-ready {
  opacity: 1;
}
.mosaic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--scrim-dir, to top), rgba(0, 0, 0, .42), transparent 58%);
  pointer-events: none;
}
.mosaic-cuotas,
.mosaic-tall { --scrim-dir: to bottom left; }
.mosaic-stack { --scrim-dir: to bottom; }
.mosaic-depa { --scrim-dir: to right; }
.mosaic-tributario { --scrim-dir: to top right; }
.mosaic-referidos { --scrim-dir: to top left; }
.mosaic-card p {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .5rem .55rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.18;
  text-shadow: var(--shadow-text);
}
.mosaic-card p span {
  display: block;
  font-weight: 700;
}
.mosaic-card strong {
  display: block;
  font-size: var(--fs-mosaic-num);
  font-weight: var(--fw-bold);
  letter-spacing: .02em;
  line-height: .95;
  margin: .12rem 0 .08rem;
}
.mosaic-card .mosaic-plain {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: .2rem 0 0;
  white-space: nowrap;
}
.mosaic-card sup {
  font-size: .6em;
  font-weight: 700;
  letter-spacing: 0;
}
.mosaic-cuotas img {
  object-position: 0% center;
  transform: scale(1.18) translate(-6%, 5%);
}
.mosaic-cuotas p {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  padding: .65rem .75rem;
}
.mosaic-cuotas-num {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .2rem;
}
.mosaic-cuotas-num small {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mosaic-tasa img {
  object-position: center 15%;
}
.mosaic-tasa p {
  justify-content: flex-end;
  padding-bottom: .65rem;
}
.mosaic-cuotas { grid-column: 2; grid-row: 1; }
.mosaic-tasa { grid-column: 3; grid-row: 1; }
.mosaic-tall { grid-column: 4; grid-row: 1 / 4; }
.mosaic-tall img {
  object-position: 12% 32%;
}
.mosaic-tall p {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  font-size: .78rem;
  padding: 1.4rem 1.4rem 1rem;
  letter-spacing: .12em;
}
.mosaic-tall strong { font-size: var(--fs-mosaic-num); margin: .14rem 0 .1rem; font-weight: 700; }
.mosaic-stack { grid-column: 2; grid-row: 2 / 4; }
.mosaic-stack img {
  object-position: center bottom;
  transform: scale(1.28) translateY(12%);
}
.mosaic-stack p {
  justify-content: flex-start;
  padding-top: .9rem;
}
.mosaic-stack strong { font-size: 2.2rem; font-weight: 700; }
.mosaic-cesantia { grid-column: 3; grid-row: 2; }
.mosaic-cesantia p {
  justify-content: flex-end;
  padding-bottom: .7rem;
}
.mosaic-cesantia strong {
  font-size: 1.28rem;
  letter-spacing: .08em;
  margin: .15rem 0 0;
}
.mosaic-depa { grid-column: 3; grid-row: 3; }
.mosaic-depa img { object-position: 80% center; }
.mosaic-depa p {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 0 .75rem .7rem;
}
.mosaic-depa strong { font-size: 1.85rem; font-weight: 700; }
.benefits-mosaic .mosaic-card.mosaic-tributario {
  grid-column: 1;
  grid-row: 3;
  aspect-ratio: 1 / 1.14;
}
.mosaic-tributario img {
  object-position: center 22%;
}
.mosaic-tributario p {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 0 .75rem .7rem;
}
.benefits-mosaic .mosaic-card.mosaic-referidos {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.mosaic-referidos img {
  object-position: 38% top;
  transform: scale(1.45);
  transform-origin: 38% top;
}
.mosaic-referidos p {
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 .7rem .9rem;
  font-size: .72rem;
  letter-spacing: .1em;
}
.mosaic-tributario strong {
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin: .12rem 0 0;
}
.mosaic-referidos strong {
  font-size: 1.35rem;
  letter-spacing: .08em;
  margin: .12rem 0 0;
}

.benefits-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  position: relative;
  padding: 0;
}
.benefits-copy-main {
  display: flex;
  flex-direction: column;
}
.benefits-copy h2 {
  margin: 0;
  font-weight: var(--fw-light);
  font-size: var(--fs-page-title);
  line-height: var(--lh-tight);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
}
.benefits-copy em {
  display: block;
  margin-top: .15rem;
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--st-blue);
  letter-spacing: .04em;
}
.benefits-copy h2 .benefits-title-line1,
.benefits-copy h2 .benefits-title-line2 {
  white-space: nowrap;
}
.benefits-copy p {
  margin: 1.65rem 0 0;
  max-width: 34ch;
  font-size: var(--fs-lead);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--lead-on-slate);
}
.benefits-copy p strong {
  font-weight: var(--fw-bold);
  color: var(--white);
}
.benefits-cta {
  align-self: flex-start;
  margin-top: 1.35rem;
  min-height: 0;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-btn);
  font-size: 1.02rem;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  line-height: 1.2;
}
.benefits-copy small {
  display: block;
  margin-top: clamp(1.8rem, 2.6vw, 2.8rem);
  font-size: clamp(.72rem, .85vw, var(--fs-small));
  font-weight: var(--fw-light);
  color: var(--footnote-on-slate);
  letter-spacing: .01em;
  white-space: normal;
}

@media (min-width: 901px) {
  .benefits {
    justify-content: center;
    padding-top: 1.05rem;
    padding-bottom: clamp(1.6rem, 2.4vw, 2.2rem);
    padding-inline: clamp(1.2rem, 3.4vw, 2.6rem);
  }
  .benefits-shell {
    position: relative;
    display: grid;
    /* Ancho proporcional al viewport (≈ notebook) para que la composición
       se vea igual en monitores grandes y chicos */
    width: min(100%, 80vw);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.22fr) minmax(17rem, 0.78fr);
    gap: clamp(2rem, 3.4vw, 3.6rem);
    justify-content: center;
    align-items: stretch;
  }
  .benefits-mosaic {
    align-self: center;
    width: 100%;
    max-width: none;
    /* Slide left into the shell's centering slack (up to 72px).
       The /3 term is 0 once the shell is already full-bleed, so
       narrower desktops do not overflow past the section padding. */
    margin-left: clamp(-4.5rem, calc((min(100vw - 2 * clamp(1.2rem, 3.4vw, 2.6rem), 69rem) - (100vw - 2 * clamp(1.2rem, 3.4vw, 2.6rem))) / 3), 0px);
  }
  .benefits-copy {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: flex-start;
    align-self: stretch;
    width: auto;
    max-width: none;
    padding-top: .15rem;
    padding-bottom: 1.35rem;
  }
  .benefits-copy-main {
    margin-top: 0;
  }
  .benefits-copy h2 {
    font-size: var(--fs-page-title);
    letter-spacing: .05em;
    line-height: 1.05;
    overflow-wrap: normal;
    text-align: left;
    max-width: none;
  }
  .benefits-copy em {
    display: block;
  }
  .benefits-copy p {
    margin-top: 1.4rem;
    font-size: var(--fs-lead);
    line-height: 1.45;
    max-width: 36ch;
  }
  .benefits-copy small {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    white-space: normal;
  }
}


/* ---------- Perks ---------- */
.perks {
  position: relative;
  padding: 2.4rem clamp(1.4rem, 4vw, 3.2rem) 2.8rem;
  background: var(--navy);
}
.perks .swiper {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}
.perks .swiper-wrapper {
  align-items: stretch;
}
.perk {
  position: relative;
  isolation: isolate;
  height: auto;
  min-height: 188px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}
.perk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 188px;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.perk > span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 88%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: var(--st-blue);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  transition: opacity .35s ease;
}
.perk-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  margin: 0;
  padding: 1.25rem 1.2rem;
  background: var(--perk-hover);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.perk-hover span {
  display: block;
}
.perk:hover img,
.perk:focus-within img { transform: scale(1.06); }
.perk:hover > span,
.perk:focus-within > span { opacity: 0; }
.perk:hover .perk-hover,
.perk:focus-within .perk-hover {
  opacity: 1;
  transform: none;
}

.perks-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  margin: .9rem 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--st-blue);
  cursor: pointer;
}
.perks-next svg {
  width: 28px;
  height: 14px;
  display: block;
}
.perks-next.swiper-button-lock { display: none; }

/* ---------- Social wall (Instagram) ---------- */
.social {
  padding: 1.4rem clamp(1.4rem, 4vw, 3.2rem) 3.4rem;
  background: var(--navy);
}
.social-head {
  margin-bottom: 1.35rem;
}
.social-head .kicker {
  justify-content: flex-start;
  margin: 0 0 .65rem;
}
.social-head h2 {
  margin: 0;
  font-weight: var(--fw-light);
  font-size: var(--fs-page-title);
  letter-spacing: var(--ls-h2);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  color: var(--white);
}
.social-head h2 em {
  display: inline;
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--st-blue);
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.social-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: #12202c;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  transition: border-color .3s ease, transform .3s ease;
}
.social-card[hidden] { display: none; }
.social-card:hover,
.social-card:focus-visible {
  border-color: rgba(14, 153, 206, .7);
  transform: translateY(-3px);
}
.social-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.social-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.social-card:hover .social-media img { transform: scale(1.04); }
.social-multi {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 16px;
  height: 16px;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}
.social-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 58px;
  padding: .55rem .7rem .6rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.social-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}
.social-who {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.social-who strong {
  font-size: .78rem;
  font-weight: var(--fw-bold);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-who small {
  font-size: .64rem;
  color: #9aa6b0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-ig {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--st-blue);
  stroke-width: 1.8;
}
.social-ig .dot { fill: var(--st-blue); stroke: none; }
@container (max-width: 250px) {
  .social-handle { display: none; }
}
.social-more {
  display: table;
  margin: 1.6rem auto 0;
  padding: .55rem 1.45rem;
  border: 1px solid rgba(14, 153, 206, .85);
  border-radius: 10px;
  color: var(--white);
  font-size: .72rem;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s ease;
}
.social-more:hover,
.social-more:focus-visible { background: var(--st-blue); }

/* ---------- Conócenos ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 3.2rem clamp(1.4rem, 4vw, 3.2rem);
  background: var(--navy);
}

.about-copy h2 {
  margin: .7rem 0 1rem;
  font-weight: 300;
  font-size: var(--fs-page-title);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}
.about-copy h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--st-blue);
}
.about-copy p {
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 48ch;
}
.about-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin-top: 1.3rem;
}
.about-copy li {
  padding: .45rem .8rem;
  border: 1px solid rgba(14, 153, 206, .4);
  border-radius: 99px;
  font-size: .78rem;
}
.about-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  height: 340px;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contacto ---------- */
.contact {
  padding: 4rem clamp(1.4rem, 4vw, 3.2rem) 4.5rem;
  background: var(--navy);
  text-align: center;
}
.contact-form label span {
  display: block;
  font-size: var(--fs-form-label);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-form-label);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .4rem;
}
.contact-form .req {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-form input,
.contact-form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider);
  color: var(--white);
  font-size: var(--fs-body);
  padding: .35rem 0 .5rem;
  outline: none;
  border-radius: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.contact-form select option { color: var(--navy); }
.contact-form input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.contact-form input:focus,
.contact-form select:focus {
  border-bottom-color: var(--st-blue);
}
.contact-form input.is-invalid,
.contact-form select.is-invalid {
  border-bottom-color: #e07070;
}
.field-error {
  display: block;
  margin-top: .4rem;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: #e07070;
}
.field-error[hidden] { display: none; }

.contact-kicker {
  display: none;
  justify-content: center;
  margin-bottom: .4rem;
}
.page-inner .contact-kicker { display: flex; }

.contact h2 {
  font-weight: var(--fw-light);
  font-size: var(--fs-page-title);
  letter-spacing: var(--ls-h2);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  color: var(--white);
}
.contact em {
  display: block;
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--st-blue);
}
.contact > p:not(.kicker) {
  margin: 1rem auto 1.8rem;
  max-width: 38ch;
  font-size: var(--fs-lead);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--text-soft);
}

.contact-form {
  width: min(var(--contact-max), 100%);
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 1.15rem;
}
.contact-form .btn-cyan {
  justify-self: start;
  margin-top: .5rem;
  border-radius: var(--radius-btn);
  min-height: 48px;
  padding: .82rem 1.95rem;
  font-size: clamp(.88rem, 1.05vw, .94rem);
  letter-spacing: .17em;
}
.form-ok {
  color: #7dcea0;
  font-size: .88rem;
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  /* logo y nav solo al ancho del contenido; info llena el resto */
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  column-gap: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(2.6rem, 3.5vw, 3.4rem) clamp(1.6rem, 4.5vw, 3.6rem);
  background: var(--footer);
  text-align: left;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: max-content;
  padding-right: clamp(1.8rem, 3.2vw, 3rem);
}
.footer-brand a {
  display: block;
  line-height: 0;
}
.footer-brand img {
  display: block;
  height: clamp(56px, 5vw, 72px);
  width: auto;
  mix-blend-mode: screen;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  width: max-content;
  gap: clamp(.72rem, 1.15vw, 1.05rem);
  margin: 0;
  padding: 0 clamp(1.6rem, 3vw, 2.6rem);
  border-left: 1px solid rgba(255, 255, 255, .28);
  border-right: 1px solid rgba(255, 255, 255, .28);
  list-style: none;
  text-align: left;
}
.footer-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(.78rem, .95vw, .9rem);
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--st-blue); }
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: clamp(1.1rem, 1.6vw, 1.5rem);
  min-width: 0;
  width: 100%;
  padding-left: clamp(1.6rem, 3vw, 2.6rem);
  text-align: left;
}
.footer-info address {
  margin: 0;
  width: 100%;
  font-style: normal;
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--white);
  text-align: left;
}
.footer-info address a {
  color: inherit;
  text-decoration: none;
}
.footer-info address a:hover { color: var(--st-blue); }
.footer-legal {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  font-weight: var(--fw-light);
  line-height: 1.5;
  color: var(--white);
  text-align: left;
}

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .65rem;
    padding: 0 .85rem;
  }
  .nav-toggle {
    display: flex;
    grid-column: 1;
    justify-self: start;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .nav-logo {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }
  .nav-toggle span {
    width: 20px;
    height: 1.75px;
    margin: 2.5px auto;
  }
  .nav-logo img { width: min(200px, calc(100vw - 184px)); height: auto; }
  .nav-cta-bar {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    min-height: 30px;
    padding: .38rem .58rem;
    border-width: 1px;
  }
  .nav-cta-menu { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .6rem 0 1rem;
    background: var(--st-blue);
    box-shadow: 0 16px 32px rgba(0,0,0,.2);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu a {
    width: 100%;
    padding: .85rem 1rem;
  }

  .hero {
    padding: 0.7rem 1.2rem 0;
  }
  .hero-shot {
    height: min(58svh, 520px);
    min-height: 420px;
  }
  .hero-ver {
    position: absolute;
    left: 50%;
    bottom: 2.4rem;
    z-index: 4;
    transform: translateX(-50%);
    min-height: 2.2rem;
    padding: .45rem 1.3rem;
    border-radius: var(--radius-btn);
    font-size: .72rem;
    letter-spacing: .14em;
    white-space: nowrap;
  }
  .hero-shot .swiper-slide:has(.hero-ver) .hero-lockup {
    bottom: 5.1rem;
  }
  .hero-shot .swiper-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 38%;
    transform: scale(1.22);
    transform-origin: 46% 38%;
  }
  .hero-board {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 42%, rgba(10, 29, 43, .38) 100%);
  }
  .hero-quote {
    position: absolute;
    top: 1.05rem;
    right: .9rem;
    width: min(46%, 11.5rem);
    margin: 0;
    padding: .55rem .65rem;
    background: var(--st-blue);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.28;
    border-radius: 2px 10px 10px 2px;
  }
  .hero-quote::before { content: "“ "; }
  .hero-quote::after { content: " ”"; }
  .hero-lockup {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    width: min(78%, 16.5rem);
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
  }
  .hero-lockup img {
    height: 46px;
    width: auto;
    margin: 0 auto .15rem;
    filter: brightness(0) invert(1);
  }
  .hero-comuna {
    display: block;
    margin-bottom: .55rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: .92;
  }
  .hero-badge {
    display: block;
    margin: 0 auto .55rem;
    padding: .28rem .4rem;
    background: var(--teal-badge);
    font-size: .62rem;
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-badge);
    text-transform: uppercase;
  }
  .hero-lockup p {
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.35;
  }
  .hero-lockup .hero-desde {
    font-size: .6rem;
    font-weight: var(--fw-regular);
    letter-spacing: .08em;
  }
  .hero-lockup strong { font-weight: var(--fw-black); }

  .discover,
  .about {
    grid-template-columns: 1fr;
  }
  .benefits-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: center;
    align-items: center;
  }
  .benefits-copy {
    display: contents;
  }
  .benefits-copy-main {
    order: -2;
    width: 100%;
    max-width: none;
    margin: 0 0 .35rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
  }
  .benefits-copy p {
    max-width: 36ch;
    width: 100%;
    margin-inline: 0;
    text-align: left;
  }
  .benefits-copy small {
    order: 2;
    position: static;
    width: 100%;
    max-width: 28rem;
    white-space: normal;
    margin: 1.1rem auto 0;
    text-align: center;
  }
  .benefits-mosaic {
    max-width: 28rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .mosaic-referidos {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .mosaic-cuotas { grid-column: 2; grid-row: 1; }
  .mosaic-tasa { grid-column: 2; grid-row: 2; }
  .mosaic-stack {
    grid-column: 1;
    grid-row: 3 / 5;
  }
  .mosaic-cesantia { grid-column: 2; grid-row: 3; }
  .mosaic-depa { grid-column: 2; grid-row: 4; }
  .benefits-mosaic .mosaic-card.mosaic-tributario {
    grid-column: 1 / -1;
    grid-row: 5;
    aspect-ratio: 2.15 / 1;
  }
  .mosaic-tall {
    grid-column: 1 / -1;
    grid-row: 6;
    aspect-ratio: 16 / 8;
    min-height: 148px;
  }
  .mosaic-tall p {
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 1.1rem;
  }
  .mosaic-tall strong { font-size: clamp(1.8rem, 8vw, 2.15rem); }
  .mosaic-tributario p,
  .mosaic-referidos p {
    align-items: center;
    text-align: center;
    padding: 0 .55rem .7rem;
    font-size: .64rem;
  }
  .mosaic-tributario strong,
  .mosaic-referidos strong { font-size: 1.1rem; }
  .mosaic-referidos img { object-position: 72% top; transform-origin: 72% top; }
  .perks {
    padding: 1.6rem 1.05rem 1.15rem;
  }
  .perk {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }
  .perk img { min-height: 0; }
  .perk > span {
    max-width: 90%;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .76rem;
  }
  .perks-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 44px;
    height: 28px;
    margin: .65rem 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--st-blue);
    cursor: pointer;
  }
  .perks-next svg {
    width: 28px;
    height: 14px;
    display: block;
  }
  .social {
    padding: 1rem 1.05rem 2.4rem;
  }
  .social-head {
    margin-bottom: 1.1rem;
  }
  .social-head h2 { font-size: var(--fs-page-title-mobile); }
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .social-meta {
    gap: .45rem;
    padding: .55rem .55rem;
  }
  .social-avatar {
    width: 28px;
    height: 28px;
  }
  .social-who strong { font-size: .72rem; }
  .social-who small { font-size: .62rem; }
  .social-handle { display: none; }
  .social-ig {
    width: 18px;
    height: 18px;
  }
  .contact {
    text-align: left;
    padding: 2.4rem 1.2rem 2.8rem;
  }
  .contact-kicker {
    display: flex;
    justify-content: flex-start;
  }
  .contact h2 {
    text-align: left;
    font-size: var(--fs-page-title-mobile);
  }
  .contact > p:not(.kicker) {
    margin: .85rem 0 1.7rem;
    max-width: 46ch;
    text-align: left;
    font-size: var(--fs-lead);
  }
  .contact-form {
    margin: 0;
    width: 100%;
    max-width: none;
  }
  .contact-form .btn-cyan {
    justify-self: start;
  }
  .benefits-copy h2 {
    font-size: var(--fs-page-title-mobile);
    text-align: left;
    letter-spacing: .04em;
    max-width: none;
    width: 100%;
  }
  .benefits-copy p {
    margin-top: .9rem;
    font-size: var(--fs-lead);
    text-align: left;
  }
  .discover {
    padding: 1.6rem 1.2rem 2rem;
    gap: 1.2rem;
    justify-content: stretch;
  }
  .discover-copy {
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }
  .discover-stack {
    width: 100%;
  }
  .discover-copy h2 {
    margin-bottom: 1.1rem;
    font-size: var(--fs-h2-mobile);
    text-align: left;
  }
  .discover-cta-copy { display: none; }
  .discover-media {
    height: min(72vw, 420px);
    min-height: 280px;
    max-width: none;
    justify-self: stretch;
    overflow: hidden;
  }
  a.btn-cyan.discover-cta-media {
    display: inline-flex;
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 2rem);
    transform: translateX(-50%);
    white-space: nowrap;
    padding: .55rem 1.25rem;
    font-size: .92rem;
    letter-spacing: .14em;
    box-shadow: var(--shadow-cta-media);
    pointer-events: auto;
  }
}

@media (min-width: 901px) {
  .page-home .contact-kicker {
    display: none;
  }
  .page-home .contact {
    text-align: center;
  }
  .page-home .contact h2 {
    text-align: left;
    width: min(var(--contact-max), 100%);
    margin-inline: auto;
    font-size: var(--fs-page-title-mobile);
  }
  .page-home .contact h2 em {
    white-space: nowrap;
  }
  .page-home .contact > p:not(.kicker) {
    text-align: left;
    width: min(var(--contact-max), 100%);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    justify-items: start;
    gap: 1.5rem;
    padding: 1.8rem 1.2rem 2rem;
  }
  .footer-brand {
    width: auto;
    max-width: none;
    padding-right: 0;
  }
  .footer-nav {
    width: auto;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    padding: 1.1rem 0;
    gap: .65rem;
  }
  .footer-info { padding-left: 0; }
  .footer-brand img { height: 48px; }
  .footer-nav { gap: .7rem; }
}

@media (max-width: 560px) {
  .footer {
    padding: 1.5rem 1.05rem 1.8rem;
  }
  .footer-nav a { white-space: normal; }
}

/* ---------- Contacto en dos columnas (home) ---------- */
.contact.contact--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  align-items: stretch;
  padding: 1.6rem clamp(1.4rem, 4vw, 3.2rem) 4rem;
  text-align: left;
}
.contact-media {
  position: relative;
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-photo);
}
.contact-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.contact-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 29, 43, .55), transparent 45%);
  pointer-events: none;
}
.contact-body {
  padding: clamp(1.8rem, 3.2vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .08);
  border-top: 3px solid var(--st-blue);
  border-radius: var(--radius-photo);
  background: linear-gradient(160deg, var(--navy-mid), #0d2231 70%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.contact.contact--split .contact-kicker {
  display: flex;
  justify-content: flex-start;
  margin-bottom: .7rem;
}
.contact.contact--split h2 {
  width: auto;
  margin: 0;
  text-align: left;
  font-size: var(--fs-page-title);
}
.contact.contact--split .contact-body > p:not(.kicker) {
  margin: .9rem 0 1.8rem;
  max-width: 46ch;
  font-size: var(--fs-lead);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--text-soft);
}
.contact.contact--split .contact-body > p br { display: none; }
.contact.contact--split .contact-form {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 1.1rem 1.2rem;
}
.contact.contact--split .contact-form input,
.contact.contact--split .contact-form select {
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-btn);
  background-color: rgba(255, 255, 255, .05);
  font-size: 1rem;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.contact.contact--split .contact-form select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e99ce' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.contact.contact--split .contact-form input:hover,
.contact.contact--split .contact-form select:hover {
  border-color: rgba(255, 255, 255, .3);
}
.contact.contact--split .contact-form input:focus,
.contact.contact--split .contact-form select:focus {
  border-color: var(--st-blue);
  background-color: rgba(14, 153, 206, .08);
  box-shadow: 0 0 0 3px rgba(14, 153, 206, .22);
}
.contact.contact--split .contact-form input.is-invalid,
.contact.contact--split .contact-form select.is-invalid {
  border-color: #e07070;
}
.contact.contact--split .contact-form .btn-cyan {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: .4rem;
  box-shadow: var(--shadow-cta-media);
}
.contact.contact--split .form-ok { grid-column: 1 / -1; }

@media (min-width: 1100px) {
  .contact.contact--split .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact.contact--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.2rem 1.05rem 2.6rem;
  }
  .contact-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .contact-body {
    padding: 1.6rem 1.2rem 1.8rem;
  }
  .contact.contact--split h2 {
    font-size: var(--fs-page-title-mobile);
  }
  .contact.contact--split .contact-body > p:not(.kicker) {
    margin: .75rem 0 1.4rem;
    font-size: var(--fs-lead);
  }
  .contact.contact--split .contact-form .btn-cyan {
    justify-self: stretch;
  }
}

/* ==========================================================================
   HOME · escala proporcional en pantallas grandes (>= 901px)
   Medidas en vw: en notebook (1366px) dan exactamente la composicion actual
   y crecen en la misma proporcion en monitores grandes. Los minimos se
   mantienen para pantallas chicas. Los topes se elevan para que nada quede
   "congelado" en el tamano del notebook.
   ========================================================================== */
@media (min-width: 901px) {
  body {
    --header-h: clamp(64px, 4.7vw, 110px);
  }
  .nav-logo img {
    width: 220px;
  }
  .nav-menu a {
    font-size: .9rem;
  }

  .page-home {
    --home-frame: 1520px;
    --home-pad: clamp(1.2rem, 3.4vw, 2.6rem);
    --home-gap: 2.25rem;
  }

  /* Marco de 1520: llena un notebook y no se dispara en un monitor grande */

  .page-home .discover {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: var(--home-gap);
    justify-content: start;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 1.75rem var(--home-pad);
  }
  .page-home .discover-copy {
    width: auto;
    max-width: none;
    margin-left: 0;
  }
  .page-home .discover-copy .kicker,
  .page-home .benefits-copy .kicker,
  .page-home .social-head .kicker {
    justify-content: flex-start;
    margin: 0 0 .65rem;
    font-size: .78rem;
    letter-spacing: .32em;
  }
  .page-home .discover-copy h2 {
    font-size: clamp(2.15rem, 2.6vw, 3.15rem);
  }
  .page-home .discover-cta-copy {
    font-size: 1.05rem;
  }
  .page-home .discover-media {
    height: 320px;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    justify-self: stretch;
  }

  .page-home .benefits {
    justify-content: stretch;
    padding: 1.75rem var(--home-pad);
  }
  .page-home .benefits-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: var(--home-gap);
    justify-content: start;
  }
  .page-home .benefits-copy h2 {
    font-size: clamp(2rem, 2.3vw, 2.85rem);
  }
  .page-home .benefits-copy p {
    font-size: var(--fs-lead);
  }
  .page-home .benefits-mosaic {
    width: 90%;
    max-width: none;
    justify-self: start;
    align-self: center;
    height: auto;
    min-height: 0;
    margin-left: 0;
    overflow: visible;
    grid-template-rows: repeat(3, auto);
  }

  /* Programas · textos de pill intactos; solo baja la foto */
  .page-home .perk {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .page-home .perk img { min-height: 0; }
  .page-home .perk > span,
  .page-home .perk-hover {
    font-size: clamp(.92rem, 1.08vw, 1.2rem);
  }

  .page-home .social {
    padding: 1.4rem var(--home-pad) 2.6rem;
  }
  .page-home .social h2 {
    font-size: clamp(2rem, 2.3vw, 2.85rem);
  }
  .page-home .social-grid {
    gap: 18px;
  }
  .page-home .social-who strong { font-size: .85rem; }
  .page-home .social-who small { font-size: .72rem; }
  .page-home .social-avatar {
    width: 36px;
    height: 36px;
  }
  .page-home .social-more { font-size: .8rem; }

  .page-home .contact.contact--split {
    width: 100%;
    margin: 0;
    padding: 1.6rem var(--home-pad) 3rem;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: var(--home-gap);
  }
  .page-home .contact.contact--split h2 {
    font-size: clamp(2rem, 2.3vw, 2.85rem);
  }
  .page-home .contact.contact--split .contact-body {
    padding: 2rem;
  }
  .page-home .contact.contact--split .contact-body > p:not(.kicker) {
    font-size: var(--fs-lead);
  }
  .page-home .contact.contact--split .contact-form input,
  .page-home .contact.contact--split .contact-form select {
    font-size: 1rem;
    min-height: 50px;
  }
  .page-home .contact-media {
    min-height: 480px;
    max-height: 540px;
  }
  .page-home .footer {
    padding-left: var(--home-pad);
    padding-right: var(--home-pad);
  }
}

@media (min-width: 1680px) {
  .page-home {
    --home-frame: 1840px;
  }
  .page-home .discover-media {
    height: 380px;
  }
  .page-home .contact-media {
    min-height: 540px;
    max-height: 600px;
  }
}

/* ---------- Chat flotante (sin asistente todavía) ---------- */
.chat-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .7rem;
}
.chat-float-panel {
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 16px;
  background: var(--navy-mid);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.chat-float-panel[hidden] { display: none; }
.chat-float-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: var(--fw-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st-blue);
}
.chat-float-title {
  margin: 0 0 .45rem;
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  line-height: 1.2;
}
.chat-float-copy {
  margin: 0 0 1rem;
  font-size: .92rem;
  font-weight: var(--fw-light);
  line-height: 1.45;
  color: var(--lead-on-slate);
}
.chat-float-link {
  min-height: 40px;
  padding: .6rem 1.15rem;
  font-size: .78rem;
}
.chat-float-btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--st-blue);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 153, 206, .35);
  transition: background .2s ease, transform .2s ease;
}
.chat-float-btn:hover { background: var(--st-blue-dark); }
.chat-float-btn svg { width: 26px; height: 26px; display: block; }
.page-home .contact.contact--split .contact-form input,
.page-home .contact.contact--split .contact-form select {
  transition: border-color .25s ease, background-color .25s ease;
}
.page-home .contact.contact--split .contact-form input:focus,
.page-home .contact.contact--split .contact-form select:focus {
  border-color: transparent;
  border-bottom: 3px solid var(--st-blue);
  box-shadow: none;
  background-color: rgba(14, 153, 206, .08);
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-shot .swiper-slide-active > img { animation: none; }
}
