/* ==============================
   RESET & BASE
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==============================
   HEADER
============================== */
.header {
  background: #0096F0;
  padding: 3px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 90px;
  width: auto;
  margin-top: 4px;
  margin-bottom: -30px;
}

.header-text {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* ==============================
   HERO SECTION
============================== */
.hero-section {
  padding: 50px 0;
}

/* ==============================
   CARDS
============================== */
.validation-card,
.validation-card-login {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  animation: fadeInUp 0.6s ease;
}

.validation-card {
  padding: 50px;
  max-width: 900px;
}

.validation-card-login {
  padding: 40px;
  max-width: 600px;
}

/* Animación */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Títulos de tarjeta */
.card-title {
  font-size: 28px;
  font-weight: 600;
  color: #035586;
  margin-bottom: 15px;
  text-align: center;
}

.card-subtitle {
  color: #666;
  margin-bottom: 35px;
  font-size: 15px;
}

.card-description {
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.6;
}

/* ==============================
   INFO BOXES
============================== */
.info-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.info-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0096F0;
  margin-bottom: 15px;
}

.info-box p {
  margin: 8px 0;
  color: #666;
}

.info-box strong {
  color: #333;
}

/* ==============================
   SECCIONES
============================== */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #0096F0;
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.section-title-sin-borde {
  font-size: 20px;
  font-weight: 600;
  color: #0096F0;
  margin-top: 30px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

/* ==============================
   COURSE CARDS
============================== */
.course-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.course-card:hover {
  border-color: #0096F0;
  box-shadow: 0 5px 15px rgba(0, 150, 240, 0.1);
}

.course-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.course-card p {
  color: #666;
  margin: 5px 0;
  font-size: 14px;
}

/* ==============================
   FORMULARIOS
============================== */
.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 14px;
}

.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0096F0;
  box-shadow: 0 0 0 0.2rem rgba(0, 150, 240, 0.25);
}

/* Ajustes para selects: reducir altura y padding para que se vean consistentes */
select.form-control {
  padding: 10px 14px;
  min-height: 44px;
  line-height: 1.25;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-position: right 12px center;
  background-repeat: no-repeat;
}

/* Menor intensidad del foco en selects para evitar doble borde visible */
select.form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 150, 240, 0.15);
}

/* Para que el select muestre bien su flecha en IE/Edge/Firefox */
select.form-control::-ms-expand { display: none; }

/* Si queremos mantener el padding de inputs, lo ajustamos ligeramente */
input.form-control, textarea.form-control {
  padding: 12px 20px;
}

.help-text {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

/* ==============================
   BOTONES
============================== */
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
  color: #fff;
  margin: 5px;
}

.btn-primary {
  background: #FF7D3C;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 125, 60, 0.3);
  background: #ff6a23;
  text-decoration: none;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
  background: #5a6268;
  text-decoration: none;
}

.btn-primary-login {
  background: #FF7D3C;
  border: none;
  border-radius: 10px;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 125, 60, 0.3);
  background: #ff6a23;
}

/* ==============================
   BADGES & ALERTS
============================== */
.badge-status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: #fff3cd;
  color: #856404;
}

.badge-active {
  background: #d4edda;
  color: #155724;
}

.alert-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  color: #0c5460;
}

/* ==============================
   INFO TEXT
============================== */
.info-text {
  text-align: center;
  margin-top: 25px;
  color: #666;
  font-size: 14px;
}

.info-text a {
  color: #0096F0;
  text-decoration: none;
  font-weight: 600;
}

.info-text a:hover {
  text-decoration: underline;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .validation-card,
  .validation-card-login {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .logo-img {
    height: 70px;
    margin-top: 5px;
    margin-bottom: -15px;
  }

  .header-text {
    font-size: 16px;
  }
}

/* ==============================
   UTILIDADES & EXTENSIONES
============================== */

/* Transform helpers (reemplazan estilos inline) */
.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

/* Marcador de requerido */
.required {
  color: #FF7D3C;
}

/* Enlace de utilidad */
.link-copy {
  font-size: 13px;
  color: #0096F0;
  cursor: pointer;
  text-decoration: none;
}

.link-copy:hover {
  text-decoration: underline;
}

/* Grupos de radio */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-group label {
  font-weight: 400;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Selectores de fecha */
.date-selects {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Ajustes específicos para los selects de fecha: evitar padding excesivo
   que puede ocultar el contenido en algunos navegadores, y asegurar
   una altura mínima consistente con los inputs Bootstrap. */
.date-selects select {
  flex: 1;
  padding: .375rem .75rem;
  /* padding estándar de Bootstrap */
  height: calc(1.5em + .75rem + 2px);
  /* igual que .form-control por defecto */
  min-width: 70px;
  font-size: 16px;
}

/* Alertas */
.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
  color: #856404;
}

.alert-warning strong {
  display: block;
  margin-bottom: 5px;
}

/* Responsive ajustes generales */
@media (max-width: 768px) {
  .date-selects {
    flex-direction: column;
  }
}

/* ==============================
   INSCRIPCIONES (scoped)
   Reglas específicas para la página de inscripciones
   aplicadas solo cuando el <body> tiene la clase .inscripcion-page
   para evitar conflictos con otros formularios.
============================== */
.inscripcion-page .course-card {
  padding: 18px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.inscripcion-page .course-card .form-group {
  margin-bottom: 12px;
  min-width: 0;
}

.inscripcion-page .course-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.inscripcion-page .course-card .form-control {
  padding: 10px 12px;
  font-size: 14px;
  color: #212529 !important;
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 4px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  height: auto !important;
}

.inscripcion-page .course-card select option {
  color: #212529;
  background: #fff;
  white-space: normal;
}

.inscripcion-page .course-card select {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  -webkit-text-size-adjust: 100%;
  padding-right: 30px !important;
}

/* ==============================
   FORMULARIO INSCRIPCIONES
============================== */

/* Ajustes del modal de reglamentación: más ancho y menos alto */
.modal-dialog.modal-xl {
  max-width: 1100px;
}

.reglamento-content {
  max-height: 320px !important;
}

/* Resaltar la leyenda de aceptación (checkbox incluido) */
.reglamento-acepto {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #155724;
  background: #d4edda;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.reglamento-acepto .reglamento-checkbox {
  margin: 0;
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 575px) {
  .modal-dialog.modal-xl {
    max-width: calc(100% - 30px);
  }
}