/* Ajustes 2026-11: SEO, formulario y contacto en móvil. Sólo transform y opacity en movimiento. */

.s-hero__h1 { margin: 0 0 10px; font-size: inherit; line-height: 1.15; }
.s-hero__h1 .s-hero__nombre,
.s-hero__h1 .s-hero__cargo { display: block; }
.s-hero__h1 .s-hero__cargo { margin-top: 12px; }

/* Formulario */
.s-form-cita__label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.s-form-cita__error { min-height: 1.2em; margin: 6px 0 0; font-size: 14px; color: #b42318; }
.s-form-cita .s-form-v2__input[aria-invalid="true"] { border-color: #b42318; }
.s-form-cita__trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.s-form-cita__aviso label { font-weight: 400; font-size: 15px; color: #4a4a4a; display: flex; gap: 10px; align-items: flex-start; }
.s-form-cita__aviso input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.s-form-cita__aviso a { color: #0090ae; text-decoration: underline; }
.s-form-cita button[disabled] { opacity: .6; }
.s-form-cita__estado { text-align: center; font-size: 16px; margin: 0 0 16px; }

/* Sedes en el pie */
.s-sede h2 { margin-top: 0; }
.s-sede iframe { border-radius: 12px; margin-top: 10px; }

/* Barra de acción en móvil */
.s-barra-accion {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #221940;
  transform: translateY(0); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.s-barra-accion a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px; font-size: 17px; font-weight: 700;
  color: #fff; background: #0090ae; text-decoration: none;
}
.s-barra-accion a:last-child { background: #fff; color: #221940; }
.s-barra-accion a:active { transform: scale(.97); }
@media (max-width: 767px) {
  footer.g-bg-color--blue { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .s-barra-accion { display: none; } }

/* WhatsApp en escritorio */
.s-wa-flotante {
  position: fixed; right: 24px; bottom: 24px; z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: #0090ae; color: #fff; font-size: 30px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(34, 25, 64, .25);
  transition: transform .25s ease;
}
.s-wa-flotante:hover, .s-wa-flotante:focus-visible { color: #fff; transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .s-barra-accion, .s-wa-flotante { transition: none; }
}

p.s-hero__nombre, .s-hero__h1 .s-hero__nombre { line-height: 1.12; margin-bottom: 12px; }
@media (min-width: 768px) { .s-wa-flotante { display: flex; } }
#inicio-movil .s-hero__cargo-movil { line-height: 1.2; margin-bottom: 14px; }
@media (min-width: 768px) { .s-sede p { min-height: 2.6em; } }
@media (min-width: 768px) {
  .s-sedes { display: flex; }
  .s-sedes > [class*="col-"] { display: flex; float: none; }
  .s-sedes .s-sede { display: flex; flex-direction: column; width: 100%; }
  .s-sedes .s-sede iframe { margin-top: auto; }
}
@media (min-width: 768px) and (max-width: 991px) {
  #agenda-consulta .s-btn, #agenda-consulta-2 .s-btn { padding-left: 16px !important; padding-right: 16px !important; white-space: nowrap; }
}
