/* Overlay bloqueante para optimizacion de imagenes*/
.cf7-block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: all;
}

/* Spinner grande */
.cf7-block-overlay .cf7-img-loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

.cf7-block-overlay .cf7-img-loader-text {
  font-size: 1.1em;
  color: #333;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* FIN Overlay bloqueante para optimizacion de imagenes*/
/* ------------------------------------------------------------- */
/* Overlay bloqueante para el envio del formulario */
/* Oculta el spinner nativo de Contact Form 7 */
/* Ocultar ambos spinners nativos */
.wpcf7 .wpcf7-spinner,
.wpcf7 .ajax-loader {
  display: none !important;
}

/* Overlay full-screen */
.cf7-submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none; /* se muestra por JS */
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Caja central */
.cf7-submit-overlay__box {
  background: #111;
  color: #fff;
  padding: 24px 28px;
  border-radius: 14px;
  max-width: 460px;
  width: calc(100% - 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* Spinner */
.cf7-submit-overlay__spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf7-rot 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes cf7-rot {
  to {
    transform: rotate(360deg);
  }
}

/* Check de éxito (se muestra al finalizar) */
.cf7-submit-overlay__check {
  display: none;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}
.cf7-submit-overlay.is-success .cf7-submit-overlay__spinner {
  display: none;
}
.cf7-submit-overlay.is-success .cf7-submit-overlay__check {
  display: block;
}

.cf7-submit-overlay__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cf7-submit-overlay__text {
  font-size: 0.95rem;
  opacity: 0.95;
}
/* FIN Overlay bloqueante para el envio del formulario */

/* Estilos para el formulario de estudiantes */

/* Espaciado mínimo, sin cambiar el look */
.wpcf7-form.cf7-estudiantes .form-group {
  margin-bottom: 16px; /* separa cada bloque */
}

/* CF7 envuelve con <p>, quitamos saltos raros y damos aire */
.wpcf7-form.cf7-estudiantes .form-group > p {
  margin: 0 0 2px 0; /* margen chico entre label/input/ayuda */
}

/* Que el label quede en su línea y no pegado al input */
.wpcf7-form.cf7-estudiantes label {
  margin-bottom: 2px;
}

/* Textos de ayuda (small) apenas separados del control */
.wpcf7-form.cf7-estudiantes .form-text,
.wpcf7-form.cf7-estudiantes small {
  margin-top: 6px;
}

/* File input: solo bloque y un poco de separación, sin estilizar el botón */
.wpcf7-form.cf7-estudiantes input[type="file"] {
  margin-top: 6px;
  padding-top: 10px;
}

/* Ocultar spinner nativo de CF7 (nuevo y viejo) */
.wpcf7 .wpcf7-spinner,
.wpcf7 .ajax-loader {
  display: none !important;
}
