.btn-turquoise {
  background-color: #00b2a9;
  border-color: #00b2a9;
  color: #fff;
}

.mt-15 {
  margin-top: 15px;
}

.label-color-custom {
  color: #00b2a9;
}

.btn-turquoise:hover {
  background-color: #007f8d;
  border-color: #007f8d;
  color: #fff;
}

body {
  font-family: 'Quicksand', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Orbitron', sans-serif !important;
}

.label-sign-in {
  color: #fff;
}

.borde-redondo {
  border-radius: 12px !important;
}

button {
  border-radius: 24px !important;
}

.headerpanel .logopanel {
  text-align: center;
}


.logocentro {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  text-align: center;
}

@media (min-width: 993px) {
  .logocentro {
    display: none;
  }

  #menuToggle {
    display: none;
  }
}

@media (max-width: 993px) {
  .colapsarMovil {
    display: none;
  }
}

@media (min-width: 991px) {
  .colapsarDesktop {
    display: none;
  }
}

.no-separador .btn:not(.btn-default)+.btn:not(.btn-default),
.no-separador .btn:not(.btn-default)+.btn-group,
.no-separador .btn-group+.btn:not(.btn-default),
.no-separador .btn-group+.btn-group {
  margin-left: initial;
  border-left: none;
}

.homeMenu {
  margin: 0 0 0 !important;
}

.pane-he-gpol {
  font-size: 20px;
  font-weight: bold;
  text-transform: none;
}

.panel-video-link {
  text-decoration: none;
  color: inherit;
}

.logo-panel {

  position: relative;
  background-image: url('../images/logos/logo-panel.png');
  background-repeat: no-repeat;
  background-position: right 3px bottom 3px;
  background-size: 60px;
  background-color: #fff;

}

@media (min-width: 1500px) {
  .panel-wrapper {
    max-width: 1500px;
    margin: 0 auto;
  }


}

@media (min-width: 992px) {
  .panel-wrapper .col-md-4:nth-child(3n+1) {
    clear: both;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .panel-wrapper .col-sm-6:nth-child(2n+1) {
    clear: both;
  }
}

.bg-custom {
  background-image: url('../images/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}


.panel-estadisticas {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;

}

@media (min-width: 1650px) {
  .panel-estadisticas {

    max-width: 400px;
  }

}


hr {
  border-color: darkgrey;
}

.dataTables_wrapper .dataTables_filter {
  float: right !important;
  text-align: right;
}

.dataTables_wrapper .dataTables_length {
  float: left !important;
  text-align: left;
}

.dataTables_wrapper .dataTables_paginate {
  float: right !important;
  text-align: right;
}


.dataTables_filter .form-control {
  margin-left: 5px;
}

.pane-usuarios {
  font-size: 20px;
  font-weight: bold;
  text-transform: none;
}



@media (min-width: 767px) {
  .bg-custom-login {
    background-image: url('../images/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
  }

}

.input-group-addon {
  border-right: none !important;
  background-color: #fff;
}

.input-group .form-control {
  border-left: none !important;
}

.mt-10 {
  margin-top: 10px;
}

.btn-user-add {
  min-width: 160px;
  border-radius: 20px;
}


@media (min-width: 768px) {
  .modal-dialog.modal-alta-usuario {
    max-width: 700px;
  }
}

@media (min-width: 1200px) {
  .modal-dialog.modal-alta-usuario {
    max-width: 800px;
  }
}

@media (max-width: 767px) {
  .modal-dialog.modal-alta-usuario {
    width: 90%;
    margin: 10px auto;
    /* centrado horizontal + margen arriba */
  }

  .modal-content {
    max-height: calc(100vh - 20px);
    /* alto máximo dentro de pantalla */
    overflow-y: auto;
    /* scroll interno si se necesita */
  }

  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .modal-dialog.modal-alta-usuario {
    width: 95% !important;
    max-width: 95% !important;
    margin: 10px auto;
  }
}

@media (min-width: 768px) {
  .modal-dialog.modal-alta-usuario {
    width: 600px;
    max-width: 90%;
    margin: 30px auto;
  }
}

.modal-dialog.modal-alta-usuario {
  top: 38%;
}

.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .select2-container {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

.alta-alumno-h3 {
  font-size: 20px;
}

.cancelar-alta-alumno {
  border-radius: 24px !important;
}

.has-error .form-control {
  border-color: #d9534f;
}

.text-error {
  color: #d9534f;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

#tablaUsuarios tbody tr {
  cursor: pointer;
}

.modal-dialog {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) !important;
  width: 95%;
  /* ocupa casi todo el ancho disponible */
  max-width: 720px;
  /* no se estira más de esto */
  margin: 0 auto;
}





.modal-body-mensaje {
  min-height: 120px;
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 30px;
}




#modalConfirmText {
  font-size: 20px;
}


@media (max-width: 767px) {
  .signin {

    left: 14px !important;

  }
}


.has-error {
  border-color: #d9534f !important;
  box-shadow: 0 0 5px rgba(217, 83, 79, 0.5);
}

.modal-dialog-recover {
  max-width: 442px !important;
}


.forgot-popup {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
  .forgot-popup {
    position: fixed;
    top: 14%;
    left: 50%;
    padding: 20px;
  }
}

input,
textarea,
select {
  font-size: 16px !important;
}



@media (max-width: 767px) {
  .signin {
    left: unset !important;
    width: 100% !important;
  }
}

.course-card {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-card .panel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.course-card .panel-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.course-card .btn {
  border-radius: 20px;
  padding: 8px 20px;
  margin-top: 10px;
}

.topic-list .list-group-item {
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 5px solid #00b2a9;
  transition: all 0.3s ease;
}

.topic-list .list-group-item:hover {
  background-color: #f5f5f5;
  transform: translateX(5px);
}

.topic-list .list-group-item-heading {
  font-weight: 600;
  color: #333;
}

.topic-list .list-group-item-text {
  color: #666;
}

.video-panel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 34, 58, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 18px;
}

.video-panel--list {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 20px;
    border: 1px solid #e3e8f2;
    background-color: #fff;
}

.video-panel--list:hover {
    box-shadow: 0 12px 30px rgba(15, 34, 58, 0.12);
    transform: translateY(-3px);
}

.video-media {
    flex: 0 0 260px;
}

.panel-thumbnail {
    position: relative;
    height: 190px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 8px;
}

.panel-thumbnail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.panel-thumbnail.has-thumbnail::after {
    opacity: 1;
}

.panel-thumbnail .thumbnail-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
    background-color: rgba(0,0,0,0.35);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.panel-thumbnail.has-thumbnail .thumbnail-loading {
    opacity: 0;
    visibility: hidden;
}

.panel-thumbnail.thumbnail-error {
    background-color: #1f1f1f;
}

.panel-thumbnail.thumbnail-error .thumbnail-loading {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0,0,0,0.6);
}

.panel-thumbnail-link {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 5rem;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.panel-thumbnail-link:hover {
    opacity: 1;
    transform: scale(1.05);
    text-decoration: none;
}

.video-details {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-details-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.video-details-heading h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #232b3f;
}

.video-panel-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.78rem;
    color: #6b7280;
}

.video-footer-label {
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.video-watched-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #dfe4ec;
    background: #fff;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.video-watched-toggle .toggle-track {
    position: relative;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.video-watched-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.video-watched-toggle .slider {
    position: absolute;
    inset: 0;
    background-color: #e7ecf4;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.video-watched-toggle .slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.video-watched-toggle input:checked + .slider {
    background-color: #00b2a9;
}

.video-watched-toggle input:checked + .slider::after {
    transform: translateX(20px);
}

.video-watched-toggle .toggle-status {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: #5b6575;
}

.video-watched-toggle.is-watched {
    border-color: #00b2a9;
    background: rgba(0, 178, 169, 0.08);
}

.video-watched-toggle.is-watched .toggle-status {
    color: #007c71;
}

.video-watched-toggle.is-syncing {
    opacity: 0.6;
    pointer-events: none;
}

.video-footer-action {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
}

@media (max-width: 991px) {
    .video-panel--list {
        flex-direction: column;
    }

    .video-media {
        flex: 0 0 auto;
        width: 100%;
    }

    .panel-thumbnail {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .video-details-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-footer-action {
        width: auto;
        align-self: flex-end;
    }
}
.toast-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    }

.toast-message {
    min-width: 240px;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #1f2933;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-message.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-message.is-error {
    background: #d9534f;
}

.toast-message.is-success {
    background: #00b2a9;
}


.home-no-border {
  border-top: none !important;
}

h5.sidebar-title {
  text-transform: uppercase;
  font-size: 11px;
  color: #1a1b1c;
  line-height: normal;
  padding: 13px 10px;
  /* separa el texto del borde */
  font-weight: 500;
  letter-spacing: unset;
  margin: 0;
  border-top: 1px solid #8f8a8a38;
  /* grosor + estilo + color */
}

.cursos-menu-lateral {
  background-color: #3b4354;
  text-align: center;
  color: white !important;
}

.enlace-menu li:not(.active) {
  border-top: 1px solid #8f8a8a38;
}

.nav-quirk>li {
  font-family: inherit !important;
}



.modal-header {
    position: relative;
    padding-right: 48px;
}

.modal-header .close {
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
    font-size: 28px;
    line-height: 1;
    color: #1f2a3c;
    opacity: 0.65;
    text-shadow: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.modal-header .close:hover,
.modal-header .close:focus {
    opacity: 1;
    color: #000;
}
