/* Formulario modal "Solicitar información / inscripción" — compartido por las páginas de curso */
.modal-open {
  overflow: hidden;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.info-modal[hidden] {
  display: none !important;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 23, 29, 0.72);
  backdrop-filter: blur(4px);
}

.info-modal-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #DDE8EA;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 23, 29, 0.28);
}

.info-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid #EFEBE0;
}

.info-modal-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #02a9d1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}


.info-modal-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 7px;
}

.info-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #00171d;
}

.info-modal-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E7E2D6;
  border-radius: 7px;
  background: #FFFFFF;
  color: #5B5647;
  cursor: pointer;
}

.info-modal-close:hover {
  background: #F7F5F0;
  color: #00171d;
}

.info-modal-close svg {
  width: 17px;
  height: 17px;
}

.info-form {
  padding: 22px 24px 24px;
}

.info-form-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 12px;
  border: 1px solid #B4EFFF;
  border-radius: 7px;
  background: #F2FCFF;
  color: #35606B;
  font-size: 12px;
  line-height: 1.5;
}

.info-form-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #02a9d1;
  margin-top: 1px;
}

.info-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.info-field.full {
  grid-column: 1 / -1;
}

.info-field label {
  color: #3A362C;
  font-size: 12px;
  font-weight: 700;
}

.info-field input,
.info-field textarea {
  width: 100%;
  border: 1px solid #D8D4CA;
  border-radius: 6px;
  background: #FFFFFF;
  color: #242621;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.info-field input {
  height: 42px;
  padding: 0 12px;
}

.info-field textarea {
  min-height: 145px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.info-field input:focus,
.info-field textarea:focus {
  border-color: #02a9d1;
  box-shadow: 0 0 0 3px rgba(2, 205, 255, 0.13);
}

.info-field input[readonly] {
  background: #F7F5F0;
  color: #5B5647;
}

.info-auth-identity {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #E7E2D6;
  border-radius: 7px;
  background: #FBFAF7;
  color: #5B5647;
  font-size: 12px;
  line-height: 1.45;
}

.info-auth-identity svg {
  width: 17px;
  height: 17px;
  color: #02a9d1;
  flex: 0 0 auto;
}

.info-form-status {
  min-height: 20px;
  margin-top: 13px;
  font-size: 12px;
  line-height: 1.45;
}

.info-form-status.success {
  color: #1E6B41;
}

.info-form-status.error {
  color: #A63C2D;
}

.info-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}

.info-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.info-btn.secondary {
  border: 1px solid #D8D4CA;
  background: #FFFFFF;
  color: #5B5647;
}

.info-btn.primary {
  border: 1px solid #00171d;
  background: #00171d;
  color: #FFFFFF;
}

.info-btn.primary:hover {
  background: #002832;
}

.info-btn:disabled {
  opacity: .65;
  cursor: wait;
}

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

@media (max-width: 620px) {
  .info-modal {
    align-items: flex-end;
    padding: 0;
  }

  .info-modal-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }

  .info-modal-header,
  .info-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .info-form-grid {
    grid-template-columns: 1fr;
  }

  .info-field.full,
  .info-auth-identity {
    grid-column: auto;
  }

  .info-form-actions {
    flex-direction: column-reverse;
  }

  .info-btn {
    width: 100%;
  }
}

/* Colores propios del modal: evitan heredar el texto claro del tema oscuro de la página */
.info-modal-panel { color: #242621; font-family: 'Inter', sans-serif; }
.info-form-status { color: #5B5647; }
