/* ============================================================
   HERO — Mobile First
   Referencia visual: información / estudiante / formulario.
   Objetivo desktop: proporciones compactas, 3 columnas reales y
   altura/composición equivalentes a la imagen de referencia.
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 78px;
  color: #082d45;
  background:
    radial-gradient(circle at 28% 10%, rgba(255,255,255,.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 52% 7%, rgba(255,255,255,.58) 0 1px, transparent 1.5px),
    linear-gradient(105deg, #d5f7f4 0%, #bdeeed 47%, #d6f6f3 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 310px;
  height: 310px;
  left: -150px;
  top: 260px;
}

.hero::after {
  width: 240px;
  height: 240px;
  right: -115px;
  top: 80px;
}

.hero__content {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 26px 18px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero__title {
  max-width: 17ch;
  color: #082d45;
  font-size: clamp(2rem, 9vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: #079e99;
}

.hero__title-rule {
  display: block;
  width: 34px;
  height: 4px;
  margin: 16px 0 18px;
  border-radius: 999px;
  background: #ffc20b;
}

.hero__highlights {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.hero__highlights li {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #163b50;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.42;
}

.hero__highlight-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #08aaa5, #00918d);
  box-shadow: 0 8px 18px rgba(0, 143, 138, .18);
}

.hero__highlight-icon svg {
  width: 25px;
  height: 25px;
}

.hero__social-proof {
  width: 100%;
  max-width: 350px;
  min-height: 70px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(20, 86, 95, .07);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(31, 129, 126, .09);
}

.hero__avatars {
  display: flex;
  flex-shrink: 0;
}

.hero__avatars img {
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.hero__avatars img:first-child {
  margin-left: 0;
}

.hero__proof-copy {
  min-width: 0;
}

.hero__rating {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.hero__rating-stars {
  color: #ffba00;
  font-size: .82rem;
  letter-spacing: -.08em;
}

.hero__rating-score {
  color: #082f49;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 800;
}

.hero__rating-count {
  color: #39576a;
  font-size: .61rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Columna central */
.hero__visual {
  width: min(88vw, 350px);
  min-width: 0;
  margin: 0 auto -42px;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__visual img {
  width: 100%;
  height: auto;
  max-height: 570px;
  object-fit: contain;
  object-position: center bottom;
}

/* Formulario */
.hero__form-card {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(0, 106, 103, .12);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(180deg, #08aaa6 0%, #029b97 100%);
  box-shadow: 0 14px 32px rgba(0, 91, 88, .24);
}

.hero__form-header {
  padding: 20px 20px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.hero__form-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 7vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.hero__form-subtitle {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.95);
  font-size: .77rem;
  line-height: 1.3;
}

.hero__form-subtitle strong {
  color: #ffe05f;
}

.hero__discount-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  color: #087b78;
  background: #ffc20c;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 800;
  transform: rotate(-10deg);
}

.hero__form-body {
  padding: 14px 20px 17px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.97);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.form-fields {
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
}

.form-field {
  margin: 0;
}

.form-input,
.form-select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(6,56,72,.1);
  border-radius: 7px;
  outline: none;
  color: #233d4d;
  background: #f9fbfc;
  font-family: var(--font-body);
  font-size: .79rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-input::placeholder {
  color: #9daab3;
}

.form-select,
.form-select.has-value {
  color: #6f808b;
  background-color: #f9fbfc;
}

.hero .form-select option {
  color: #233d4d;
  background: #fff;
}

.form-input:focus,
.form-select:focus {
  border-color: #ffc20c;
  box-shadow: 0 0 0 3px rgba(255,194,12,.2);
}

.form-turno {
  margin-bottom: 14px;
}

.hero__submit {
  width: 100%;
  min-height: 55px;
  padding: 10px 16px;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  color: #17354a;
  background: linear-gradient(180deg, #ffc91b 0%, #ffb700 100%);
  box-shadow: 0 8px 18px rgba(100,73,0,.2);
  font-size: .88rem;
  line-height: 1.2;
  text-align: center;
}

.hero__submit:hover {
  box-shadow: 0 10px 22px rgba(100,73,0,.25);
}

.hero__submit-arrow {
  flex: 0 0 auto;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.form-privacy {
  margin-top: 8px;
  color: rgba(255,255,255,.84);
  font-size: .62rem;
  line-height: 1.35;
  text-align: center;
}

.form-privacy a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 12px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.form-status--success {
  color: #075b4d;
  background: #dcf7ed;
}

.form-status--error {
  color: #7c1f2b;
  background: #ffe3e7;
}

/* Tablet: copy arriba, imagen + formulario debajo */
@media (min-width: 640px) {
  .hero {
    scroll-margin-top: 90px;
  }

  .hero__content {
    padding: 38px 28px 48px;
    grid-template-columns: minmax(0, .92fr) minmax(320px, 1fr);
    gap: 32px 28px;
  }

  .hero__copy {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    column-gap: 38px;
    align-items: end;
  }

  .hero__title,
  .hero__title-rule,
  .hero__highlights {
    grid-column: 1;
  }

  .hero__social-proof {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: end;
  }

  .hero__title {
    grid-column: 1 / -1;
    max-width: none;
    font-size: clamp(2.35rem, 5.5vw, 3.1rem);
  }

  .hero__visual {
    width: min(100%, 350px);
    justify-self: end;
    margin-bottom: -48px;
  }

  .hero__form-card {
    align-self: center;
  }

  .hero__form-title {
    font-size: 1.85rem;
  }
}

/* Desktop: 3 columnas reales como la referencia */
@media (min-width: 960px) {
  .hero {
    min-height: 0;
    scroll-margin-top: 104px;
  }

  .hero::before {
    width: 420px;
    height: 420px;
    left: 20%;
    top: 165px;
  }

  .hero::after {
    width: 330px;
    height: 330px;
    right: 35%;
    top: -170px;
  }

  .hero__content {
    min-height: 0;
    padding: 20px 28px 0;
    grid-template-columns: minmax(310px, 1.02fr) minmax(300px, 1.04fr) minmax(320px, .94fr);
    gap: 0;
    align-items: stretch;
  }

  .hero__copy {
    grid-column: auto;
    display: block;
    align-self: start;
    max-width: 360px;
    margin-top: 20px;
    padding-right: 10px;
  }

  .hero__title {
    position: relative;
    z-index: 1;
    width: 46rem;
    max-width: none;
    font-size: clamp(2.18rem, 3.4vw, 2.85rem);
    line-height: 1.11;
  }

  .hero__title-line {
    white-space: nowrap;
  }

  .hero__title-rule {
    margin: 15px 0 17px;
  }

  .hero__highlights {
    margin-bottom: 22px;
    gap: 12px;
  }

  .hero__highlights li {
    font-size: .79rem;
  }

  .hero__social-proof {
    max-width: 340px;
  }

  .hero__visual {
    grid-column: auto;
    width: min(100%, 382px);
    height: 615px;
    max-height: none;
    margin: 0 -12px 0 -8px;
    align-self: end;
    justify-self: center;
  }

  .hero__visual img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 590px;
    margin-top: auto;
  }

  .hero__form-card {
    grid-column: auto;
    width: min(100%, 360px);
    max-width: 360px;
    margin: 20px 0 16px;
    justify-self: end;
    align-self: start;
  }

  .hero__form-header {
    padding: 22px 22px 16px;
  }

  .hero__form-title {
    font-size: 1.86rem;
  }

  .hero__form-body {
    padding: 15px 22px 17px;
  }
}

@media (min-width: 1180px) {
  .hero__content {
    grid-template-columns: 360px 390px 360px;
    justify-content: space-between;
  }

  .hero__copy {
    max-width: 360px;
  }

  .hero__visual {
    width: 390px;
  }

  .hero__form-card {
    width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero *,
  .hero *::before,
  .hero *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   Corrección de color para tablet/desktop.
   Reafirma el fondo claro de la referencia sin tocar el layout.
   ============================================================ */
@media (min-width: 640px) {
  .hero {
    background-color: #c8f2ef;
    background-image:
      radial-gradient(circle at 28% 10%, rgba(255,255,255,.72) 0 1px, transparent 1.5px),
      radial-gradient(circle at 52% 7%, rgba(255,255,255,.58) 0 1px, transparent 1.5px),
      linear-gradient(105deg, #d5f7f4 0%, #bdeeed 47%, #d6f6f3 100%);
  }
}

/* ============================================================
   MOBILE (<640px) — única definición móvil
   Referencia: composición compacta, centrada y sin overflow.
   Desktop/tablet permanecen intactos.
   ============================================================ */
@media (max-width: 639px) {
  .hero {
    width: 100%;
    max-width: 100%;
    scroll-margin-top: 58px;
    overflow-x: clip;
    background-color: #c9f3f0;
    background-image:
      radial-gradient(circle at 57% 18%, rgba(255,255,255,.82) 0 1.5px, transparent 2px),
      radial-gradient(circle at 94% 9%, rgba(255,255,255,.68) 0 2.5px, transparent 3px),
      linear-gradient(115deg, #ddf9f7 0%, #c0efed 58%, #d6f7f4 100%);
  }

  .hero::before {
    width: 250px;
    height: 250px;
    left: 34%;
    top: 118px;
    border-color: rgba(255,255,255,.36);
  }

  .hero::after {
    width: 160px;
    height: 160px;
    right: -70px;
    top: 34px;
    border-color: rgba(255,255,255,.32);
  }

  .hero__content {
    width: 100%;
    max-width: 430px;
    min-width: 0;
    margin-inline: auto;
    padding: 16px 18px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, .88fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: 12px;
    row-gap: 12px;
    align-items: start;
    overflow: visible;
  }

  .hero__copy {
    display: contents;
  }

  .hero__title,
  .hero__title-rule,
  .hero__highlights,
  .hero__visual,
  .hero__social-proof,
  .hero__form-card {
    min-width: 0;
    max-width: 100%;
  }

  .hero__title {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    font-size: clamp(1.12rem, 5.1vw, 1.42rem);
    line-height: 1.035;
    letter-spacing: -.043em;
  }

  .hero__title-rule {
    grid-column: 1;
    grid-row: 2;
    width: 26px;
    height: 3px;
    margin: 0;
  }

  .hero__highlights {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin: 0;
    gap: 8px;
  }

  .hero__highlights li {
    width: 100%;
    min-height: 48px;
    padding: 6px 7px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    border: 1px solid rgba(0,143,138,.05);
    border-radius: 9px;
    color: #153a4f;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 14px rgba(12,92,91,.055);
    font-size: clamp(.48rem, 2vw, .58rem);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .hero__highlight-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: none;
  }

  .hero__highlight-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    max-width: 168px;
    margin: 4px 0 0;
    align-self: start;
    justify-self: center;
    overflow: visible;
  }

  .hero__visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center top;
  }

  .hero__social-proof {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    min-height: 56px;
    margin: 10px 0 0;
    padding: 9px 11px;
    gap: 9px;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(31,129,126,.075);
  }

  .hero__avatars img {
    width: 29px;
    height: 29px;
    margin-left: -6px;
    border-width: 1.5px;
  }

  .hero__rating {
    gap: 5px;
    margin-bottom: 2px;
  }

  .hero__rating-stars {
    font-size: .63rem;
  }

  .hero__rating-score {
    font-size: .76rem;
  }

  .hero__rating-count {
    font-size: .47rem;
    line-height: 1.2;
  }

  .hero__form-card {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    margin: 12px 0 0;
    justify-self: stretch;
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(0,91,88,.16);
  }

  .hero__form-header {
    padding: 12px 14px 10px;
    text-align: center;
  }

  .hero__form-title {
    max-width: 280px;
    margin-inline: auto;
    font-size: clamp(.94rem, 4.15vw, 1.12rem);
    line-height: 1.05;
  }

  .hero__form-title br {
    display: none;
  }

  .hero__form-subtitle {
    margin-top: 6px;
    justify-content: center;
    gap: 6px;
    font-size: .52rem;
    line-height: 1.18;
  }

  .hero__discount-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    font-size: .47rem;
  }

  .hero__form-body {
    padding: 10px 14px 12px;
  }

  .form-label {
    margin-bottom: 4px;
    font-size: .49rem;
    line-height: 1.15;
  }

  .form-fields {
    width: 100%;
    margin-bottom: 8px;
    gap: 8px;
  }

  .form-field,
  .form-turno {
    width: 100%;
    min-width: 0;
  }

  .form-input,
  .form-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 7px 9px;
    border-radius: 6px;
    font-size: .61rem;
    line-height: 1.1;
  }

  .form-turno {
    margin-bottom: 8px;
  }

  .hero__submit {
    width: 100%;
    min-width: 0;
    min-height: 37px;
    padding: 7px 10px;
    gap: 7px;
    border-radius: 6px;
    font-size: .6rem;
    line-height: 1.1;
  }

  .hero__submit-break {
    display: none;
  }

  .hero__submit-arrow {
    flex: 0 0 auto;
    font-size: .92rem;
  }

  .form-privacy {
    margin-top: 6px;
    font-size: .43rem;
    line-height: 1.2;
  }
}

@media (max-width: 359px) {
  .hero__content {
    padding-inline: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(104px, .82fr);
    column-gap: 9px;
    row-gap: 10px;
  }

  .hero__title {
    font-size: 1.05rem;
  }

  .hero__visual {
    max-width: 146px;
  }

  .hero__highlights li {
    min-height: 46px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
    font-size: .46rem;
  }

  .hero__highlight-icon {
    width: 30px;
    height: 30px;
  }

  .hero__form-header,
  .hero__form-body {
    padding-inline: 11px;
  }
}

/* Mobile: las tarjetas reducen su ancho para dejar una columna visible para
   la estudiante. El título y el resto del contenido conservan todo el ancho. */
@media (max-width: 639px) {
  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(92px, .8fr);
    grid-template-areas:
      "title title"
      "rule rule"
      "highlights visual"
      "proof proof"
      "form form";
    column-gap: 8px;
    row-gap: 12px;
    align-items: start;
  }

  .hero__title {
    grid-area: title;
    width: 100%;
    max-width: none;
    font-size: clamp(1rem, 5.5vw, 1.6rem);
  }

  .hero__title-line {
    white-space: nowrap;
  }

  .hero__visual {
    grid-area: visual;
    display: flex;
    width: 100%;
    max-width: 8.5rem;
    margin: 0;
    align-self: end;
    justify-self: center;
  }

  .hero__visual img {
    width: 100%;
    height: auto;
  }

  .hero__title-rule {
    grid-area: rule;
    margin: 0;
  }

  .hero__highlights {
    grid-area: highlights;
    width: 100%;
    margin: 0;
  }

  .hero__social-proof {
    grid-area: proof;
    width: 100%;
    margin: 0;
  }

  .hero__form-card {
    grid-area: form;
    width: 100%;
    margin: 0;
  }
}

/* Tablet: elimina la fila reservada para la imagen y conserva un flujo de
   contenido compacto. La fotografía es decorativa en este ancho. */
@media (min-width: 640px) and (max-width: 959px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, .9fr);
    grid-template-areas:
      "title title"
      "rule proof"
      "highlights form"
      "visual form";
    gap: 18px 28px;
    align-items: start;
  }

  .hero__copy {
    display: contents;
  }

  .hero__title {
    grid-area: title;
    width: 100%;
  }

  .hero__title-rule {
    grid-area: rule;
    margin: 0;
    align-self: center;
  }

  .hero__highlights {
    grid-area: highlights;
    margin: 0;
  }

  .hero__social-proof {
    grid-area: proof;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero__visual {
    grid-area: visual;
    display: flex;
    width: min(100%, 17rem);
    margin: 0 auto;
    align-self: end;
    justify-self: center;
  }

  .hero__form-card {
    grid-area: form;
    width: 100%;
    margin: 0;
    align-self: start;
  }
}
