:root {
  --blue: #1c7ed6;
  --green: #2bc84c;
  --text-dark: #1f2a37;
  --text-light: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  color: var(--text-dark);
  background: #f1f1f1;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 22px;
}

p {
  font-size: 16px;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 18px;
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.topbar__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.pill--phone {
  background: var(--blue);
}

.pill--whatsapp {
  background: var(--green);
}

.pill__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 73, 128, 0.45), rgba(23, 73, 128, 0.65)),
    url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20salud%2F3fbf4c1e-24958951-0-portada-med-1_10000000xx0kp00000001o.jpg?alt=media")
    center/cover no-repeat;
  padding: 68px 18px 96px;
  color: var(--text-light);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 67, 126, 0.4), rgba(10, 67, 126, 0.7));
}

.hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(260px, 0.9fr);
  grid-template-areas:
    "left form";
  column-gap: 30px;
  row-gap: 0;
  align-items: center;
}

.hero__left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__title-block h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0 0 12px;
  font-weight: 700;
  color: #dbe7ff;
  font-size: 20px;
}

.hero__text-block h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.hero__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  max-width: 520px;
  color: #e2ecff;
  text-align: justify;
}

.hero__note {
  display: none;
  grid-area: note;
}

.hero__form {
  grid-area: form;
  display: flex;
  justify-content: flex-end;
}

.form-card {
  background: #f5fbff;
  color: #0f2d4f;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  width: min(340px, 100%);
  text-align: center;
  display: grid;
  gap: 8px;
}

.form-card__title {
  margin: 0;
  font-weight: 700;
  color: #0f2d4f;
  font-size: 21px;
}

.form-card__subtitle {
  margin: 4px 0 4px;
  color: #1d4a7a;
  font-weight: 600;
  font-size: 18px;
}

.form-card__form {
  display: grid;
  gap: 6px;
}

.form-card__form input {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #c7d9ed;
  font-size: 17px;
  outline: none;
}

.form-card__form input:focus {
  border-color: #8bb7f5;
  box-shadow: 0 0 0 2px rgba(139, 183, 245, 0.35);
}

.form-card__form button {
  padding: 12px;
  border-radius: 4px;
  border: none;
  background: #2bc84c;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  font-size: 18px;
}

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

.form-card__status {
  margin: 4px 0 0;
  min-height: 18px;
  font-size: 13px;
}

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

.form-card__status[data-state="success"] {
  color: #1f7a35;
}

.form-card__note {
  margin: 14px 0 0;
  font-size: 14px;
  color: #1d4a7a;
  font-weight: 600;
}

.band-gray {
  height: 40px;
  background: #e6e6e6;
}

.section {
  padding: 40px 18px 48px;
}

.section__header {
  text-align: center;
  margin: 0 auto 24px;
}

.section__header h2 {
  margin: 0;
  color: #2b79c2;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

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

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

.grid--why {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 28px 40px;
  align-items: start;
  text-align: left;
  justify-items: stretch;
  max-width: 1100px;
  width: 100%;
  padding: 0 16px 8px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.grid--why .card--feature {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: center;
  max-width: 520px;
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.feature__icon-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.grid--why h3 {
  margin: 2px 0 6px;
  text-align: center;
  color: #2b79c2;
  font-size: 20px;
}

.grid--why p {
  color: #1f2937;
  margin: 0;
  text-align: center;
  max-width: 420px;
  font-size: 20px;
  line-height: 1.5;
}

.coverage {
  background: #ffffff;
  padding: 48px 18px 40px;
  text-align: center;
}

.coverage__inner {
  max-width: 900px;
  margin: 0 auto;
}

.coverage__title {
  margin: 0 0 8px;
  color: #2f8cd8;
  font-size: 26px;
  font-weight: 800;
}

.coverage__subtitle {
  margin: 0 0 24px;
  color: #2f8cd8;
  font-size: 18px;
  line-height: 1.4;
}

.coverage__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.coverage__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 17px;
  color: #9aa3af;
  text-align: left;
}

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

.band-blue {
  height: 22px;
  background: #2b79c2;
}

.steps {
  background: #3d99d6;
  color: #ffffff;
  padding: 46px 18px 48px;
  text-align: center;
}

.steps__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.steps__subtitle {
  margin: 0 0 34px;
  font-size: 16px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 26px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.steps__card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  position: relative;
}

.steps__card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.steps__card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.6px;
}

.steps__card p {
  margin: 0;
  max-width: 230px;
}

.steps__card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -13px;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}

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

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

.ally__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px 30px;
  align-items: center;
  position: relative;
}

.ally__content h2 {
  margin: 0 0 10px;
  font-size: 26px;
  color: #2d3a56;
}

.ally__content p {
  margin: 0;
  color: #2d3a56;
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
}

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

.ally__logo-block {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 600;
}

.ally__logo-block img {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.testimonials-section {
  padding: 44px 18px 52px;
  text-align: center;
  background: #ffffff;
}

.testimonials-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.testimonials-section h2 {
  margin: 0 0 22px;
  color: #2b79c2;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.testimonials-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #3d99d6;
  border-radius: 16px;
}

.testimonials-box__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}

.testimonials-box .testimonial-item {
  color: #ffffff;
  display: grid;
  gap: 12px;
  position: relative;
  padding: 18px 16px 28px;
  text-align: center;
}

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

.testimonials-box .testimonial__quote {
  position: absolute;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.95;
}

.testimonials-box .testimonial__quote--open {
  top: -4px;
  left: 8px;
}

.testimonials-box .testimonial__quote--close {
  bottom: 8px;
  right: 8px;
}

.testimonials-box .author__name {
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
}

.cta {
  position: relative;
  background: url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20salud%2Fb1227035-final_10000000qo0b600001w01o.jpg?alt=media") center/cover
    no-repeat;
  color: #ffffff;
  padding: 46px 18px 54px;
  text-align: center;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 52, 98, 0.78);
}

.cta__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.cta h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

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

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

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

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  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: 26px;
  height: 26px;
  object-fit: contain;
}

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

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

.footer {
  background: #ffffff;
  padding: 16px 18px;
  text-align: center;
}

.footer__inner a {
  color: #1f5d96;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.footer__inner a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero {
    padding: 0;
    background: #f5f7fb;
    color: var(--text-dark);
  }

  .hero__overlay {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "note"
      "form"
      "text";
    gap: 18px;
    padding: 0 0 32px;
  }

  .hero__left {
    display: contents;
  }

  .hero__title-block {
    grid-area: title;
  }

  .hero__text-block {
    grid-area: text;
  }

  .hero__title-block {
    background: linear-gradient(180deg, rgba(23, 73, 128, 0.45), rgba(23, 73, 128, 0.65)),
      url("https://firebasestorage.googleapis.com/v0/b/avanta-7eed8.firebasestorage.app/o/images%20-%20poliza%20de%20salud%2F3fbf4c1e-24958951-0-portada-med-1_10000000xx0kp00000001o.jpg?alt=media")
      center/cover no-repeat;
    min-height: 320px;
    padding: 24px 16px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    color: #ffffff;
    width: 100%;
  }

  .hero__title-block h1 {
    font-size: 28px;
    text-align: center;
  }

  .hero__subtitle {
    font-size: 14px;
    color: #b8ddff;
  }

  .hero__note {
    display: block;
    margin: 0;
    background: #eef2f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    border-radius: 10px;
    width: 100%;
  }

  .hero__form {
    justify-content: center;
  }

  .hero__text-block {
    text-align: center;
    color: var(--text-dark);
  }

  .hero__text-block h2 {
    color: #1f2a37;
  }

  .hero__text {
    color: #374151;
    font-size: 14px;
    line-height: 1.45;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
  }

  .form-card {
    background: #f0f0f0;
    border-radius: 16px;
    padding: 14px;
  }

  .form-card__title {
    font-size: 14px;
  }

  .form-card__subtitle {
    font-size: 13px;
  }

  .form-card__form input {
    border-radius: 999px;
    font-size: 13px;
    padding: 8px 12px;
  }

  .form-card__form button {
    border-radius: 999px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .form-card__note {
    display: none;
  }

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

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

  .steps__card:not(:last-child)::after {
    display: none;
  }

  .ally__inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ally__logos {
    order: 2;
    justify-content: center;
    text-align: center;
  }

  .ally__content {
    display: contents;
  }

  .ally__content h2 {
    order: 1;
    text-align: center;
  }

  .ally__content p {
    order: 3;
  }

  .testimonials-box__inner {
    grid-template-columns: 1fr;
  }

  .grid--why {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .grid--why .card--feature {
    max-width: 420px;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
    flex-direction: column;
  }

  .feature__body {
    display: contents;
  }

  .feature__icon-img {
    order: 2;
    margin: 4px 0 8px;
  }

  .grid--why h3 {
    text-align: center;
  }

  .grid--why p {
    text-align: center;
    max-width: none;
  }

  .coverage__list li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .coverage__list li::before {
    margin-bottom: 6px;
  }

  .feature__body h3 {
    order: 1;
  }

  .feature__body p {
    order: 3;
  }

  .feature__icon-img {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 640px) {
  .cta__actions {
    flex-direction: column;
  }

  .cta__btn {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .topbar__actions {
    width: 100%;
    justify-content: center;
  }

  .pill {
    width: 100%;
    justify-content: center;
  }

  .hero__title-block h1 {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 12px;
  }

  .hero__text-block h2 {
    font-size: 18px;
  }

  .hero__text {
    font-size: 16px;
  }
}

