:root {
  color-scheme: only light;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1b1b1b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f5f7;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  width: 140px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border: none;
  border-radius: 28px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.btn-phone {
  background: #1e73ff;
}

.btn-whatsapp {
  background: #39c54a;
}

.btn-secondary {
  background: #4cd039;
  font-size: 13px;
  padding: 8px 16px;
  margin-top: 14px;
  align-self: center;
}

.hero {
  position: relative;
  background: url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20vida%2Fe1976beb-seguro-hogar-cubre-travesuras-ninos_100000000000000000001o.jpg?alt=media")
    center/cover no-repeat;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 48px 0 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 40px;
  color: #ffffff;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(34px, 3.6vw, 48px);
  margin: 0 0 18px;
  font-weight: 700;
}

.hero-text h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 10px;
  font-weight: 700;
}

.hero-text p {
  margin: 0;
  font-size: 17px;
  max-width: 520px;
  line-height: 1.5;
}

.hero-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px 18px;
  border-radius: 24px;
  width: 100%;
  color: #2d2d2d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.form-title {
  margin: 0 0 16px;
  font-size: 14px;
  color: #4d4d4d;
  text-align: center;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form input {
  border-radius: 18px;
  border: 1px solid #e3e3e3;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.lead-form input:focus {
  border-color: #7dd35d;
  box-shadow: 0 0 0 2px rgba(125, 211, 93, 0.25);
}

.lead-form button {
  background: #6edb47;
  border: none;
  border-radius: 18px;
  padding: 11px 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
}

.lead-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  color: #4d4d4d;
  line-height: 1.4;
}

.form-status {
  min-height: 18px;
  font-size: 12px;
  text-align: center;
}

.form-status[data-state="success"] {
  color: #13833d;
}

.form-status[data-state="error"] {
  color: #b52424;
}

.form-status[data-state="loading"] {
  color: #1e73ff;
}

.band-gray {
  height: 48px;
  background: #ededed;
}

.band-blue {
  background: #3c97d7;
}

.section {
  padding: 60px 0;
  background: #ffffff;
}

.section--why {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header h2 {
  margin: 0 0 36px;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  color: #2f7ae5;
  letter-spacing: 0.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  width: min(1100px, 92%);
}

.grid--why .card--feature {
  text-align: center;
  padding: 10px;
  color: #5a5a5a;
}

.grid--why .feature__icon-img {
  width: 72px;
  margin: 0 auto 14px;
}

.grid--why h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #2f7ae5;
}

.grid--why p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 901px) {
  .section--why {
    background: #f9fcff;
  }

  .grid--why {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 48px 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
  }

  .grid--why .card--feature {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 10px;
    text-align: left;
    box-shadow: none;
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-areas:
      "icon body";
    align-items: start;
    column-gap: 16px;
    row-gap: 6px;
    color: #5a5a5a;
  }

  .grid--why .feature__icon-img {
    grid-area: icon;
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto;
  }

  .grid--why .feature__body {
    grid-area: body;
    text-align: center;
  }

  .grid--why h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0b7df2;
  }

  .grid--why p {
    font-size: 16px;
  }
}

.life-info {
  background: #ffffff;
  padding: 60px 0 64px;
}

.life-info__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.life-info__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 36px);
  color: #2f7ae5;
  font-weight: 700;
}

.life-info__subtitle {
  margin: 0 0 32px;
  color: #2f7ae5;
  font-size: 18px;
}

.life-info__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 820px;
  text-align: left;
}

.life-info__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  color: #8d97a6;
  font-size: 17px;
  line-height: 1.5;
}

.life-info__list li::before {
  content: "";
  width: 32px;
  height: 32px;
  background: url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20vida%2Fddcaea35-1563311237-26956041-54x34-twitter-incopora-dob_1000000000000000000028.png?alt=media")
    center/contain no-repeat;
}

.credit-plan {
  background: #ffffff;
  padding: 56px 0;
}

.credit-plan__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.credit-plan__text h2 {
  margin: 0 0 16px;
  color: #2f7ae5;
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 700;
}

.credit-plan__text h3 {
  margin: 0 0 10px;
  color: #2f7ae5;
  font-size: 20px;
}

.credit-plan__text p {
  margin: 0;
  color: #2d2d2d;
  font-size: 17px;
  line-height: 1.6;
}

.credit-plan__highlight {
  color: #2f7ae5;
  font-weight: 700;
}

.credit-plan__image {
  display: flex;
  justify-content: center;
}

.credit-plan__image img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.service-steps {
  background: #3c97d7;
  color: #ffffff;
  padding: 60px 0 70px;
}

.service-steps__inner {
  text-align: center;
}

.service-steps__inner h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.service-steps__inner > p {
  margin: 0 0 36px;
  font-size: 16px;
  opacity: 0.9;
}

.service-steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.service-steps__card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 18px 26px;
}

.service-steps__card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.service-steps__card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.service-steps__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 280px;
}

.ally {
  background: url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20vida%2Fab91621f-fond_100000018g0dz00003301o.jpg?alt=media") center/cover no-repeat;
  padding: 54px 0 60px;
  position: relative;
  overflow: hidden;
}

.ally::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.ally__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ally__inner h2 {
  margin: 0 0 28px;
  color: #232a55;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

.ally__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.ally__content p {
  margin: 0;
  color: #2b2f55;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.ally__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ally__logo img {
  width: 180px;
  display: block;
}

.ally__divider {
  width: 1px;
  height: 70px;
  background: rgba(35, 42, 85, 0.2);
}

.ally__support {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #6b7280;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ally__support img {
  width: 120px;
}

.section--testimonials-block {
  padding: 48px 18px 52px;
  text-align: center;
  background: #f5f6fa;
}

.testimonials-block {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 20px;
  background: #3c97d7;
  border-radius: 22px;
  display: grid;
}

.testimonials-block__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.testimonial-item {
  color: #fff;
  display: grid;
  gap: 12px;
  position: relative;
  padding: 20px 16px 34px;
  text-align: center;
}

.testimonial-item .quote {
  margin: 0 auto 6px;
  max-width: 300px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
}

.testimonial__quote {
  position: absolute;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 1;
  z-index: 3;
}

.testimonial__quote--open {
  top: -4px;
  left: 6px;
}

.testimonial__quote--close {
  bottom: 10px;
  right: 10px;
  transform: none;
}

.testimonials-block .author__name {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.cta {
  position: relative;
  background: url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20vida%2Fe1976beb-seguro-hogar-cubre-travesuras-ninos_100000000000000000001o.jpg?alt=media")
    center/cover no-repeat;
  color: #ffffff;
  padding: 54px 0 62px;
  text-align: center;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 54, 98, 0.82);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.cta h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
}

.cta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.cta__eyebrow {
  font-weight: 700;
  font-size: 18px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cta__btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cta__btn--phone {
  background: #1c7ed6;
}

.cta__btn--whatsapp {
  background: #2bc84c;
}

.footer {
  background: #f5f6fa;
  padding: 18px 0 26px;
  color: #6b7280;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__inner p {
  margin: 0;
  text-align: center;
  flex: 1 1 240px;
}

.footer__inner a {
  color: #6b7280;
  text-decoration: underline;
  flex: 1 1 240px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto;
  }

  .hero-form {
    width: min(360px, 100%);
    margin: 0 auto;
  }

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

  .life-info__list {
    text-align: left;
  }

  .credit-plan__text {
    text-align: center;
  }

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

  .ally__content p {
    text-align: center;
  }

  .ally__divider {
    width: 80px;
    height: 1px;
  }

  .testimonials-block {
    padding: 20px 18px;
  }

  .testimonials-block__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .testimonial-item {
    max-width: 360px;
    margin: 0 auto;
  }

  .testimonial-item .quote {
    margin: 0 auto 20px;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

