/* Ajuste editorial de la portada: deja visible el inicio de la siguiente sección. */
@media (min-width: 721px) {
  .hero {
    min-height: calc(100vh - 230px);
  }

  .hero-grid {
    min-height: calc(100vh - 318px);
    align-items: start;
    padding-top: 70px;
  }

  .hero-foot {
    padding-bottom: 18px;
  }
}

@media (min-width: 721px) and (max-height: 800px) {
  .hero {
    min-height: calc(100vh - 215px);
  }

  .hero-grid {
    min-height: 0;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
    margin-bottom: 18px;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .hero-definition {
    padding-top: 18px;
  }

  .definition {
    font-size: 22px;
  }

  .hero-signal {
    margin-top: 30px;
  }

  .hero-foot {
    padding-bottom: 12px;
  }

  .problem {
    padding-top: 40px;
  }
}

.initial-cotizador-link {
  margin-top: 16px;
  color: var(--teal);
}

.founder-photo {
  height: 180px;
  margin: -26px -26px 24px;
  overflow: hidden;
  background: #102e40;
}

.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.founder-photo--matias img {
  object-position: center 34%;
}

.founder-card--andres h3 {
  margin-top: 0;
}

.founder-card--matias h3 {
  margin-top: 0;
}

.founder-card--andres .role {
  min-height: 0;
}

.founder-card--andres .founder-bio {
  line-height: 1.5;
}

.firm-proof {
  max-width: 34rem;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(191, 222, 221, 0.28);
  color: #c4dbd9;
  font-size: 0.92rem;
  line-height: 1.6;
}

.founder-card--matias {
  min-height: 100%;
}

.founder-card--matias .founder-bio {
  line-height: 1.5;
}

/* La firma: más ancho útil y una jerarquía editorial legible para dos socios de igual rango. */
.firm .container {
  width: min(calc(100% - 64px), 1320px);
}

.firm-grid {
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 7%;
}

.founders article {
  min-height: 0;
  padding: 30px;
}

.founder-photo {
  margin: -30px -30px 24px;
}

.founders article > span {
  display: block;
  margin-bottom: 12px;
}

.founders h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.2vw, 2.25rem);
}

.founders .role {
  min-height: 0;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.45;
}

.founders .founder-bio {
  font-size: 15px;
  line-height: 1.62;
}

.founders .founder-bio + .founder-bio {
  margin-top: 18px;
}

.founder-card--matias {
  min-height: 0;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .firm-grid {
    display: block;
  }

  .founders {
    margin-top: 62px;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  .firm-grid {
    display: block;
  }

  .founders {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }
}

.contact-process {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-process > span,
.contact-security > span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-process ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: contact-step;
}

.contact-process li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  counter-increment: contact-step;
}

.contact-process li::before {
  content: counter(contact-step, decimal-leading-zero);
  color: var(--teal);
  font-size: 0.68rem;
  line-height: 1.45;
  font-weight: 700;
}

.contact-process strong,
.contact-process small {
  grid-column: 2;
}

.contact-process strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.contact-process small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

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

  .problem-grid article {
    min-height: 0;
    padding: 22px 20px 24px;
  }

  .problem-grid h3 {
    margin: 30px 0 12px;
  }

  .founder-photo {
    height: 230px;
  }

  .firm-proof {
    margin-top: 22px;
  }

  .contact-process {
    margin-top: 26px;
  }
}
