.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 7rem);
  padding-top: calc(clamp(3rem, 6vw, 5.5rem) + 78px);
}

.container img,
.casa {
  order: 1;
  width: 100%;
  max-width: 540px;
  height: auto;
  min-width: 0;
  justify-self: center;
  animation: slideLeft 1s ease-out forwards;
}

.container .texto {
  order: 2;
  max-width: 32rem;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-self: start;
}

#hero-title {
  padding-top: 0;
  max-width: none;
  font-size:2.9rem;
  line-height: 1.05;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--brand-ink);
  text-wrap: normal;
  animation: slideDown 1.2s ease forwards;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #hero-title {
    background: linear-gradient(90deg, #2563eb 0%, #3158d3 52%, #2d4571 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.container h5,
.container .hero-lead {
  font-size: clamp(1.02rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  max-width: 30rem;
  font-family: var(--font-paragraph);
  color: var(--text-body);
  animation: slideUp 1.5s ease forwards;
}

.hero-break {
  display: inline;
}

.botones {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.botones a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.Cotizacion {
  min-height: 2.75rem;
  min-width: 12.6rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
  animation: zoomIn 2s ease forwards;
}

.Cotizacion:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.3125rem 0.625rem rgba(0, 0, 0, 0.15);
  background-color: var(--brand-blue-strong);
}

.Cotizacion:active {
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.Contactar {
  min-width: 12.5rem;
  min-height: 2.95rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-ink);
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: 0.8rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.Contactar:hover {
  background-color: var(--surface-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.Contactar:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: calc(2rem + 72px) 1.25rem 2rem;
    margin: 0 auto;
  }

  .container .texto {
    order: 1;
    max-width: 100%;
    gap: 0.9rem;
  }

  #hero-title {
    padding-top: 0;
    font-size: 2.2rem;
    line-height: 1.15;
    max-width: 100%;
  }

  .hero-break {
    display: none;
  }

  .container h5,
  .container .hero-lead {
    padding-top: 0.35rem;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .container img,
  .casa {
    order: 2;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    align-self: center;
  }

  .container img,
  .casa,
  #hero-title,
  .container h5,
  .container .hero-lead,
  .Cotizacion {
    animation: none;
  }

  .botones {
    width: 100%;
    justify-content: center;
    padding-top: 2rem;
  
  }

  .Cotizacion {
    width: 100%;
    max-width: 220px;
  }
}

@media (min-width: 1200px) {
  .container {
    grid-template-columns: minmax(430px, 1.02fr) minmax(360px, 0.98fr);
    gap: clamp(3rem, 6vw, 8rem);
    padding-left: clamp(2rem, 6vw, 8rem);
    padding-right: clamp(2rem, 6vw, 8rem);
  }

  .container .texto {
    max-width: 34rem;
  }

  .container img,
  .casa {
    max-width: 560px;
  }

  .botones {
    margin-top: 0.5rem;
  }
}

@media (min-width: 2074px) {
  .container {
    max-width: 1480px;
    grid-template-columns: minmax(440px, 0.92fr) minmax(560px, 1.08fr);
    gap: clamp(4rem, 5vw, 8rem);
  }

  .container .texto {
    max-width: 40rem;
  }

  .container img,
  .casa {
    max-width: 620px;
  }
}
