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

:root {
  --navy: #0a1d2b;
  --navy-mid: #132532;
  --navy-soft: #1a354c;
  --benefits-bg: #2d3d49;
  --footer: #2d3d49;
  --kicker: #8f979e;
  --text: #c0c4c8;
  --text-soft: #b5bbbf;
  --white: #ffffff;
  --radius: 22px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  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; }

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

.kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--kicker);
}
.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: 99px;
  background: var(--st-blue);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  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 clamp(1.4rem, 4vw, 3.2rem);
  background: var(--st-blue);
}

.nav-logo img {
  height: 36px;
  width: 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: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 400;
  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 #fff;
  padding: .38rem 1.05rem;
  border-radius: 10px;
}
.nav-cta:hover {
  background: #fff;
  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;
}
.hero-shot > img {
  width: 100%;
}

.hero-cotiza {
  width: auto;
  min-width: 148px;
  padding-inline: 2.35rem;
  z-index: 2;
}

.hero-board { display: none; }

/* Desktop / notebook: un poco más alta para que Cotiza no se recorte */
@media (min-width: 901px) {
  .hero {
    padding: 1.4rem clamp(1.6rem, 4.5vw, 3.6rem) 0;
  }
  .hero-shot {
    width: 100%;
    height: min(70vh, 575px);
  }
  .hero-shot > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .hero-cotiza {
    position: absolute;
    left: 81.6%;
    top: 71.8%;
    transform: translateX(-50%);
  }
}

/* ---------- 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: 1rem clamp(1.4rem, 4vw, 3.2rem) 2.2rem;
}

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

.discover-copy h2 {
  margin: .35rem 0 1.55rem;
  font-weight: 300;
  font-size: clamp(2.2rem, 3.2vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}
.discover-copy h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--st-blue);
}
.discover-copy p {
  font-weight: 300;
  color: var(--text-soft);
}

.discover-cta-copy {
  min-height: 42px;
  padding: .45rem 1.45rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  border-radius: 99px;
}

.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: 46% 38%;
}
.discover-cta-media { display: none; }

@media (min-width: 901px) {
  .discover {
    grid-template-columns: max-content 1fr;
    column-gap: clamp(1.6rem, 3.2vw, 3rem);
    justify-content: start;
  }
  .discover-media {
    width: min(72vw, 860px);
    max-width: 860px;
    justify-self: end;
  }
}

/* ---------- Beneficios ---------- */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  padding: 2.8rem clamp(1.4rem, 4vw, 3.2rem);
  background: var(--benefits-bg);
}

.benefits-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 2.1fr;
  gap: .72rem;
  width: 100%;
  max-width: 34rem;
  justify-self: start;
}
.mosaic-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  min-width: 0;
}
.mosaic-card:not(.mosaic-tall):not(.mosaic-stack) {
  aspect-ratio: 1;
}
.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.05);
}
.mosaic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #5ec8e6;
  mix-blend-mode: multiply;
  opacity: .78;
  pointer-events: none;
}
.mosaic-card p {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .55rem .7rem;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(10, 29, 43, .35);
}
.mosaic-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1;
  margin: .08rem 0;
}
.mosaic-card .mosaic-plain {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
}
.mosaic-card sup {
  font-size: .55em;
  letter-spacing: 0;
}
.mosaic-tall { grid-column: 3; grid-row: 1 / 4; }
.mosaic-tall p { font-size: .78rem; padding: 1rem 1.1rem; letter-spacing: .16em; }
.mosaic-tall strong { font-size: 3.1rem; margin: .2rem 0 .15rem; font-weight: 300; }
.mosaic-stack { grid-column: 1; grid-row: 2 / 4; }
.mosaic-depa { grid-column: 2; grid-row: 3; }

.benefits-copy h2 {
  font-weight: 300;
  font-size: clamp(2.05rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}
.benefits-copy em {
  font-style: italic;
  font-weight: 300;
  color: var(--st-blue);
}
.benefits-copy p {
  margin: 1rem 0 .9rem;
  max-width: 34ch;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
}
.benefits-copy small {
  display: block;
  font-size: .72rem;
  font-weight: 300;
  color: var(--kicker);
}

/* ---------- Perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  padding: 2.4rem clamp(1.4rem, 4vw, 3.2rem) 2.8rem;
  background: var(--navy);
}
.perk {
  position: relative;
  isolation: isolate;
  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: 86%;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--st-blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  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: rgba(14, 153, 206, .88);
  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;
}

/* ---------- 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: clamp(2.05rem, 3.6vw, 3.1rem);
  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: .68rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-bottom: .35rem;
}
.contact-form .req {
  color: var(--st-blue);
  letter-spacing: 0;
  text-decoration: none;
  font-weight: 700;
  margin-left: .2em;
}
.contact-form input,
.contact-form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(181, 187, 191, .35);
  color: #fff;
  font-size: .95rem;
  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: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 h2 {
  font-weight: 300;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.08;
  color: #fff;
}
.contact em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--st-blue);
}
.contact > p {
  margin: 1rem auto 1.8rem;
  max-width: 36ch;
  font-weight: 300;
  color: var(--text-soft);
}

.contact-form {
  width: min(420px, 100%);
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 1.15rem;
}
.contact-form .btn-cyan {
  justify-self: center;
  margin-top: .5rem;
}
.form-ok {
  color: #7dcea0;
  font-size: .88rem;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1.4rem, 4vw, 3.2rem);
  background: var(--footer);
}
.footer img {
  height: 38px;
  mix-blend-mode: screen;
}
.footer p {
  font-size: .82rem;
  font-weight: 300;
  color: var(--text);
}

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(5.6rem, 1fr) auto minmax(5.6rem, 1fr);
    gap: .75rem;
    padding: 0 1.05rem;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .nav-toggle span {
    width: 20px;
    height: 1.75px;
    margin: 2.5px auto;
  }
  .nav-logo {
    justify-self: center;
    grid-column: 2;
  }
  .nav-logo img { height: 40px; }
  .nav-cta-bar {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    color: #fff;
    text-decoration: none;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: .42rem .72rem;
    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 0.85rem 0;
  }
  .hero-shot {
    height: min(58svh, 520px);
    min-height: 420px;
  }
  .hero-shot > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 38%;
    transform: scale(1.22);
    transform-origin: 46% 38%;
  }
  .hero-cotiza { display: none; }
  .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(--st-blue);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .22em;
    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 strong { font-weight: 800; }

  .discover,
  .benefits,
  .about {
    grid-template-columns: 1fr;
  }
  .discover {
    padding: 1.6rem 1.2rem 2rem;
    gap: 1.2rem;
    justify-content: stretch;
  }
  .discover-copy {
    max-width: none;
  }
  .discover-copy h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .discover-cta-copy { display: none; }
  .discover-media {
    height: min(72vw, 420px);
    min-height: 280px;
    max-width: none;
    justify-self: stretch;
  }
  a.btn-cyan.discover-cta-media {
    display: inline-flex;
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    z-index: 1;
    width: max-content;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: .7rem 1.45rem;
    letter-spacing: .14em;
    box-shadow: 0 10px 28px rgba(10, 29, 43, .45);
  }
  .benefits-mosaic { max-width: 28rem; }
  .perks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .perks { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
