table {
  font-size: smaller;
}
/*--- BOTONES ---- */
.btn-success {
  background-color: #006B41;  /* verde oscuro del logo */
  border: none;
}

.btn-success:hover {
  background-color: #6FB64E;  /* verde claro del logo */
  color: white;
}

.btn-outline-success {
  color: #006B41;
  border-color: #006B41;
}

.btn-outline-success:hover {
  background-color: #006B41;
  color: white;
}
/*--- FIN BOTONES ---- */

/*------ MENU GENERAL -------*/
.menu-fondo {
  background-color: #f8f9fa;
}

.menu-fondo .nav-link {
  color: #006B41!important;
}

.menu-fondo .nav-link:focus, .nav-link:hover {
  color: #FDBB24 !important;
}

.navbar-nav .nav-item {
  margin-left: 10px; 
  white-space: nowrap;
}

.navbar-toggler {
  border-color: #006B41;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,107,65, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
  text-align: center;
}

.navbar-nav .nav-item {
  margin-left: 0;
  margin-bottom: 5px;
}

.logo-img {
  height: auto;
  width: 140px; /* tamaño base */
  max-width: 100%;
}

@media (max-width: 768px) {
  .logo-img {
    width: 100px; /* reduce logo */
  }
}
/*------ FIN MENU GENERAL -------*/

/*------ BIENVENIDA INICIO ------ */
/* --- SECCIÓN HERO (principal) --- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
  padding: 60px 5%;
  min-height: 90vh;
  gap: 40px;
  overflow: hidden;
}

/* Franja verde decorativa */
.hero-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background-color: #006B41; /* verde oscuro */
}

/* Contenido de texto */
.hero-content {
  flex: 1;
  color: #333;
  z-index: 2;
}

.hero-content h1 {
  font-weight: 700;
  color: #006B41;
  font-size: 2.4rem;
  line-height: 1.3;
}

.hero-content h1 span {
  color: #6FB64E; /* verde claro del logo */
}

.hero-content p {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #555;
  max-width: 520px;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-buttons .btn {
  padding: 10px 25px;
  font-size: 1rem;
  margin-right: 10px;
  border-radius: 8px;
}

/* Imagen lateral */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-image img {
  width: 90%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-image img {
    width: 100%;
    max-width: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    margin: 10px auto;
  }

  .hero-section::before {
    width: 6px; /* más delgada en pantallas pequeñas */
  }
}

/*------ FIN BIENVENIDA INICIO ------ */

/* --- SECCIÓN REGISTRO --- */
/* --- SECCIÓN REGISTRO SIN IMAGEN --- */
.registro-section {
  position: relative;
  background-color: #FFFFFF;
  padding: 60px 5%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Franja verde lateral */
.registro-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background-color: #006B41;
}

/* Texto principal */
.registro-content h1 {
  color: #006B41;
  font-weight: 700;
  font-size: 2rem;
}

.registro-content h1 span {
  color: #6FB64E;
}

.registro-content p {
  margin-bottom: 15px;
}

.registro-form {
  background-color: rgb(248 249 250) !important;
}

/* Tarjeta del formulario */
.registro-card {
    /* background: #F8F9FA; */
    /* background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%); */
    /* padding: 35px; */
    /* padding-top: 20px; */
    border-radius: 12px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    width: 100%;
    /* max-width: 500px; */
    text-align: left;
}

.registro-card input,
.registro-card select {
  margin-bottom: 15px;
}

/* Botones */
.btn-success {
  background-color: #006B41;
  border: none;
}

.btn-success:hover {
  background-color: #6FB64E;
  color: white;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 107, 65, 0.2);
}

::placeholder {
  color: #888888;       /* gris suave */
  font-size: 0.95rem;   /* un poco más pequeño */
  opacity: 1;           /* evita que se vea muy tenue en algunos navegadores */
}


/* Responsive */
@media (max-width: 768px) {
  .registro-section::before {
    width: 6px;
  }

  .registro-content h1 {
    font-size: 1.8rem;
  }

  .registro-card {
    padding: 25px;
  }
}

/* --- FIN REGISTRO --- */

/* --- INICIO SESION --- */
/* --- SECCIÓN LOGIN --- */
.login-section {
  position: relative;
  background-color: #FFFFFF;
  padding: 60px 5%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Franja verde lateral */
.login-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background-color: #006B41;
}

/* Texto */
.login-content h1 {
  color: #006B41;
  font-weight: 700;
  font-size: 2rem;
}

.login-content h1 span {
  color: #6FB64E;
}

.login-content p {
  color: #555;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* Tarjeta */
.login-card {
background: #F8F9FA;
    /* padding: 35px; */
    border-radius: 12px;
    /* box-shadow: 1px 2px 0px 0px rgba(0, 0, 0, 0.1); */
    /* background: linear-gradient(to right, #006B41 30%, #FFFFFF 30%); */
    background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
    /* background: linear-gradient(135deg, #FFF7E6 0%, #FFFFFF 100%); */
    /* background: linear-gradient(to right, rgba(111, 182, 78, 0.15), rgba(255, 255, 255, 1)); */
    width: 100%;
    /* max-width: 400px; */
    text-align: left;
}

.login-card input {
  margin-bottom: 15px;
}

/* Etiquetas */
.login-form label {
    display: inline-block;
    /* margin-bottom: 0.5rem; */
    /* font-weight: 500; */
    color: #212529;
}

/* Inputs tipo text y password */
.login-form input[type="text"],
.login-form input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-bottom: 1rem;
}

/* Focus estilo Bootstrap */
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive: centrar texto en pantallas pequeñas */
@media (max-width: 991px) {
  .login-form h2,
  .login-form p {
    text-align: center;
  }
}

/* Botón */
.btn-success {
  background-color: #006B41;
  border: none;
}

.btn-success:hover {
  background-color: #6FB64E;
  color: white;
}

/* Placeholder más suave */
.login-card ::placeholder {
  color: #9A9A9A;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .login-section::before {
    width: 6px;
  }

  .login-content h1 {
    font-size: 1.8rem;
  }

  .login-card {
    padding: 25px;
  }
}

/*--- FIN LOGIN ----*/

/* --- SIDEBAR PRINCIPAL --- */
/* --- SIDEBAR --- */
/* --- SIDEBAR --- */
.sidebar {
  background: linear-gradient(180deg, #006B41 0%, #005030 100%);
  color: white;
  width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  min-height: 100vh;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  transition: all 0.3s ease;
}

/* Usuario */
.user-panel {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.user-panel i {
  color: #FFFFFF;
  font-size: 3rem;
}

.user-panel small {
  font-size: 0.8rem;
}

/* Secciones */
.nav-section {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-left: 5px;
}

/* Enlaces */
.sidebar .nav-link {
  color: #E8F5E9;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #6FB64E;
  color: white;
  transform: translateX(4px);
}

/* Logout */
.logout-btn {
  background: none;
  border: none;
  color: #FFD6A0;
  text-align: left;
  padding: 8px 12px;
  font-weight: 500;
}

.logout-btn:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

/* Pie */
.sidebar-footer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botón hamburguesa */
.toggle-btn {
  position: fixed;
  top: 75px;
  left: 15px;
  z-index: 1050;
  background-color: #006B41;
  color: white;
  border: none;
  font-size: 1.4rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover {
  background-color: #6FB64E;
}

/* Contenido */
.dashboard-content {
  background-color: #F9FAFB;
  min-height: 100vh;
  color: #333;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    height: 100%;
    z-index: 1040;
  }

  .sidebar.active {
    left: 0;
  }

  .dashboard-content {
    padding-top: 80px;
  }
}

/* ==== FRANJA VERDE GENERAL ==== */
section {
  position: relative;
  overflow: hidden;
}

/* Línea verde lateral para todas las secciones */
section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background-color: #006B41; /* verde oscuro */
}

/* Ajustes en pantallas pequeñas */
@media (max-width: 768px) {
  section::before {
    width: 6px;
  }
}

/* Para evitar que el contenido se pegue demasiado a la línea */
section .container {
  padding-left: 25px; /* deja un margen interior alineado */
}


/* ==== LISTA MODERNA DE CURSOS ==== */
.list-group-modern {
  display: grid;
  gap: 12px;
}

.list-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.list-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.list-item .icon {
  font-size: 1.4rem;
  color: #006B41;
  margin-right: 14px;
}

/* ==== ENCABEZADO CON ÍCONO CIRCULAR ==== */
.icon-circle {
  background-color: #E8F5E9;
  color: #006B41;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

/* ==== FLYERS EN FILA ==== */
.flyer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.flyer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: transparent;
  color: black;
  font-weight: none;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.flyer-item:hover {
  background-color: #E8F5E9;
  transform: translateY(-3px);
}

.flyer-icon-line {
  font-size: 1.4rem;
  color: #006B41;
}

/* Ajuste responsivo */
@media (max-width: 768px) {
  .flyer-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.mat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.mat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #000; /* texto negro */
  font-weight: normal; /* sin negrita */
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mat-item:hover {
  background-color: #E8F5E9;
  transform: translateY(-3px);
}

.mat-icon {
  font-size: 1.4rem;
  color: #006B41; /* iconos verdes */
}

.mat-text {
  color: #000; /* texto negro */
}

/* Responsivo */
@media (max-width: 768px) {
  .mat-row {
    flex-direction: column;
    gap: 1rem;
  }
}

