/* V14.28 — Reserva ORL: una sola línea en escritorio y vistas horizontales.
   Se limita a esta subpágina para no modificar el componente de la portada. */
.contact.section.closing .reservation-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: 258px;
  padding-inline: 27px;
  white-space: nowrap;
}
.contact.section.closing .reservation-cta > span {
  white-space: nowrap;
  flex-shrink: 0;
}
.contact.section.closing .reservation-cta .reservation-icon {
  flex: 0 0 24px;
}
@media (min-width: 900px) and (orientation: landscape) {
  .contact.section.closing {
    padding-top: clamp(76px, 7vw, 112px);
    padding-bottom: clamp(76px, 7vw, 112px);
  }
  .contact.section.closing h2 {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    font-size: clamp(42px, 4.2vw, 72px);
    line-height: 1.12;
    white-space: nowrap;
    overflow-wrap: normal;
    text-wrap: nowrap;
  }
  .contact.section.closing h2 br { display: none; }
  .contact.section.closing h2 em { white-space: nowrap; }
  .contact.section.closing .reservation-cta {
    min-width: 284px;
    min-height: 64px;
    margin-top: 30px;
    padding: 16px 32px;
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .contact.section.closing .reservation-cta {
    min-width: min(258px, 100%);
    max-width: 100%;
    min-height: 56px;
    padding-inline: 18px;
    gap: 11px;
    font-size: 15px;
  }
}

/* V14.29 — Composición específica para dispositivos verticales.
   Mantiene dos líneas tipográficas deliberadas y el texto del CTA sin cortes. */
@media (max-width: 899px) and (orientation: portrait) {
  .specialty-page .contact.section.closing {
    min-height: 0;
    height: auto;
    padding: 60px 18px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .specialty-page .contact.section.closing h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(31px, 9.2vw, 43px);
    line-height: 1.07;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .specialty-page .contact.section.closing h2 br {
    display: block;
  }
  .specialty-page .contact.section.closing h2 em {
    display: inline;
    white-space: nowrap;
  }
  .specialty-page .contact.section.closing .reservation-cta {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: min(245px, 100%);
    min-width: 0;
    max-width: 100%;
    min-height: 57px;
    height: auto;
    margin: 29px auto 0;
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .specialty-page .contact.section.closing .reservation-cta > span {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .specialty-page .contact.section.closing .reservation-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
  .specialty-page .contact.section.closing .reservation-arrow {
    font-size: 19px;
    flex-shrink: 0;
  }
}
@media (max-width: 359px) and (orientation: portrait) {
  .specialty-page .contact.section.closing {
    padding-inline: 12px;
  }
  .specialty-page .contact.section.closing h2 {
    font-size: clamp(29px, 8.6vw, 34px);
  }
}

/* V14.42 — Portada principal: mismo cierre responsivo que Otorrinolaringología. */
@media (max-width: 899px) and (orientation: portrait) {
  body:not(.specialty-page) .contact.section.closing {
    min-height: 0;
    height: auto;
    padding: 60px 18px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  body:not(.specialty-page) .contact.section.closing h2 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(31px, 9.2vw, 43px);
    line-height: 1.07;
    letter-spacing: -.025em;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  body:not(.specialty-page) .contact.section.closing h2 br { display: block; }
  body:not(.specialty-page) .contact.section.closing h2 em { white-space: nowrap; }
  body:not(.specialty-page) .contact.section.closing .reservation-cta {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(245px, 100%);
    min-width: 0;
    max-width: 100%;
    min-height: 57px;
    margin: 29px auto 0;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }
  body:not(.specialty-page) .contact.section.closing .reservation-cta > span {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  body:not(.specialty-page) .contact.section.closing .reservation-icon {
    width: 22px; height: 22px; flex: 0 0 22px;
  }
  body:not(.specialty-page) .contact.section.closing .reservation-arrow {
    font-size: 19px; flex-shrink: 0;
  }
}
@media (max-width: 359px) and (orientation: portrait) {
  body:not(.specialty-page) .contact.section.closing h2 {
    font-size: clamp(29px, 8.6vw, 34px);
  }
}
