@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f9fafb 0%, #dcfce7 100%);
  
}/* Contenedor principal */
.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Wrapper principal */
.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 700px;
  min-height: 350px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* === COLUMNA IZQUIERDA === */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #1db178 0%, #16a085 50%, #0ea589 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos */
.decorative-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.circle-1 {
  width: 60px;
  height: 60px;
  top: -30px;
  right: -30px;
}

.circle-2 {
  width: 45px;
  height: 45px;
  bottom: -22px;
  left: -22px;
}

/* Contenido de bienvenida */
.welcome-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 400px;
}

/* Logo */
.logo-image {
  width: 150px;
  height: auto;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.4s ease;
  border-radius: 5px;
}

.logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Títulos */
.auth-left h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Features */
.features {
  margin-top: 0.75rem;
}

.features-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* === COLUMNA DERECHA === */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.form-container {
  width: 100%;
  max-width: 280px;
}

/* Header del formulario */
.form-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.form-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.form-header p {
  font-size: 0.8rem;
  color: #64748b;
}

/* Formulario */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Grupos de input */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Wrapper de input */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.625rem;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  z-index: 1;
}

/* Inputs */
.input-wrapper input {
  width: 100%;
  padding: 0.625rem 0.625rem 0.625rem 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.input-wrapper input:hover {
  background: white;
  border-color: #d1d5db;
}

.input-wrapper input:focus {
  outline: none;
  background: white;
  border-color: #1db178;
  box-shadow: 0 0 0 3px rgba(29, 177, 120, 0.1);
}

.input-wrapper input::placeholder {
  color: #9ca3af;
}

/* Botón de mostrar contraseña */
.password-toggle {
  position: absolute;
  right: 0.625rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #6b7280;
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

/* Link de olvidé contraseña */
.forgot-password {
  display: flex;
  justify-content: flex-end;
}

.forgot-password a {
  color: #1db178;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: #16a085;
}

/* Botón de login */
.login-button {
  width: 100%;
  background: linear-gradient(135deg, #1db178 0%, #16a085 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 3px 10px 0 rgba(29, 177, 120, 0.4);
}

.login-button:hover:not(.loading) {
  background: linear-gradient(135deg, #16a085 0%, #0ea589 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(29, 177, 120, 0.5);
}

.login-button:active:not(.loading) {
  transform: translateY(0);
}

.login-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.login-button:hover:not(.loading) .button-arrow {
  transform: translateX(2px);
}

/* Spinner de carga */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Link de registro */
.register-link {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.register-link p {
  color: #64748b;
  font-size: 0.75rem;
}

.register-link a {
  color: #1db178;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.register-link a:hover {
  color: #16a085;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 1024px) {
  .auth-wrapper {
    max-width: 600px;
  }

  .auth-left,
  .auth-right {
    padding: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .login-container {
    padding: 0.5rem;
  }

  .auth-wrapper {
    flex-direction: column;
    min-height: auto;
    border-radius: 12px;
  }

  .auth-left {
    padding: 1.25rem 1rem;
    min-height: 160px;
  }

  .auth-right {
    padding: 1.25rem 1rem;
  }

  .form-header {
    text-align: center;
  }

  .circle-1 {
    width: 45px;
    height: 45px;
    top: -22px;
    right: -22px;
  }

  .circle-2 {
    width: 30px;
    height: 30px;
    bottom: -15px;
    left: -15px;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .auth-left,
  .auth-right {
    padding: 1rem 0.75rem;
  }

  .input-wrapper input {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
  }

  .input-icon {
    left: 0.5rem;
    width: 14px;
    height: 14px;
  }

  .password-toggle {
    right: 0.5rem;
  }

  .password-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* Animaciones adicionales */
.auth-wrapper {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados de focus mejorados */
.input-wrapper input:focus + .password-toggle {
  color: #1db178;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Contenedor principal */
.registro-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Wrapper principal */
.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 700px;
  min-height: 400px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* === COLUMNA IZQUIERDA === */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #1db178 0%, #16a085 50%, #0ea589 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos */
.decorative-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.circle-1 {
  width: 60px;
  height: 60px;
  top: -30px;
  right: -30px;
}

.circle-2 {
  width: 45px;
  height: 45px;
  bottom: -22px;
  left: -22px;
}

/* Contenido de bienvenida */
.welcome-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 400px;
}

/* Logo */
.logo-container {
  margin-bottom: 1rem;
}

.logo-wrapper {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.logo-inner {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dot {
  width: 14px;
  height: 14px;
  background: #1db178;
  border-radius: 3px;
}

/* Títulos */
.auth-left h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Features */
.features {
  margin-top: 0.75rem;
}

.features-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* === COLUMNA DERECHA === */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.form-container {
  width: 100%;
  max-width: 280px;
}

/* Header del formulario */
.form-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.form-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.form-header p {
  font-size: 0.8rem;
  color: #64748b;
}

/* Formulario */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Grupos de input */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Wrapper de input */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.625rem;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  z-index: 1;
}

/* Inputs */
.input-wrapper input {
  width: 100%;
  padding: 0.625rem 0.625rem 0.625rem 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.input-wrapper input:hover {
  background: white;
  border-color: #d1d5db;
}

.input-wrapper input:focus {
  outline: none;
  background: white;
  border-color: #1db178;
  box-shadow: 0 0 0 2px rgba(29, 177, 120, 0.1);
}

.input-wrapper input::placeholder {
  color: #9ca3af;
}

/* Botón de mostrar contraseña */
.password-toggle {
  position: absolute;
  right: 0.625rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #6b7280;
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

/* Checkbox de términos */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-label-reg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
}

.checkbox-label-reg input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
}

.checkbox-label-reg input[type="checkbox"]:checked {
  background: #1db178;
  border-color: #1db178;
}

.checkbox-label-reg input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.checkbox-label-reg a {
  color: #1db178;
  text-decoration: none;
  transition: color 0.2s ease;
}

.checkbox-label-reg a:hover {
  color: #16a085;
}

/* Botón de registro */
.register-button {
  width: 100%;
  background: linear-gradient(135deg, #1db178 0%, #16a085 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 3px 10px 0 rgba(29, 177, 120, 0.4);
}

.register-button:hover:not(.loading) {
  background: linear-gradient(135deg, #16a085 0%, #0ea589 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(29, 177, 120, 0.5);
}

.register-button:active:not(.loading) {
  transform: translateY(0);
}

.register-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.register-button:hover:not(.loading) .button-arrow {
  transform: translateX(2px);
}

/* Spinner de carga */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Link de login */
.login-link {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.login-link p {
  color: #64748b;
  font-size: 0.75rem;
}

.login-link a {
  color: #1db178;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link a:hover {
  color: #16a085;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 1024px) {
  .auth-wrapper {
    max-width: 600px;
  }
  
  .auth-left, .auth-right {
    padding: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .registro-container {
    padding: 0.5rem;
  }
  
  .auth-wrapper {
    flex-direction: column;
    min-height: auto;
    border-radius: 12px;
  }
  
  .auth-left {
    padding: 1.25rem 1rem;
    min-height: 160px;
  }
  
  .auth-right {
    padding: 1.25rem 1rem;
  }
  
  .form-header {
    text-align: center;
  }
  
  .circle-1 {
    width: 45px;
    height: 45px;
    top: -22px;
    right: -22px;
  }
  
  .circle-2 {
    width: 30px;
    height: 30px;
    bottom: -15px;
    left: -15px;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .auth-left, .auth-right {
    padding: 1rem 0.75rem;
  }
  
  .input-wrapper input {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
  }
  
  .input-icon {
    left: 0.5rem;
    width: 14px;
    height: 14px;
  }
  
  .password-toggle {
    right: 0.5rem;
  }
  
  .password-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* Animaciones adicionales */
.auth-wrapper {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados de focus mejorados */
.input-wrapper input:focus + .password-toggle {
  color: #1db178;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}.driver-active .driver-overlay,.driver-active *{pointer-events:none}.driver-active .driver-active-element,.driver-active .driver-active-element *,.driver-popover,.driver-popover *{pointer-events:auto}@keyframes animate-fade-in{0%{opacity:0}to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in .2s ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in .2s}.driver-popover{all:unset;box-sizing:border-box;color:#2d2d2d;margin:0;padding:15px;border-radius:5px;min-width:250px;max-width:300px;box-shadow:0 1px 10px #0006;z-index:1000000000;position:fixed;top:0;right:0;background-color:#fff}.driver-popover *{font-family:Helvetica Neue,Inter,ui-sans-serif,"Apple Color Emoji",Helvetica,Arial,sans-serif}.driver-popover-title{font:19px/normal sans-serif;font-weight:700;display:block;position:relative;line-height:1.5;zoom:1;margin:0}.driver-popover-close-btn{all:unset;position:absolute;top:0;right:0;width:32px;height:28px;cursor:pointer;font-size:18px;font-weight:500;color:#d2d2d2;z-index:1;text-align:center;transition:color;transition-duration:.2s}.driver-popover-close-btn:hover,.driver-popover-close-btn:focus{color:#2d2d2d}.driver-popover-title[style*=block]+.driver-popover-description{margin-top:5px}.driver-popover-description{margin-bottom:0;font:14px/normal sans-serif;line-height:1.5;font-weight:400;zoom:1}.driver-popover-footer{margin-top:15px;text-align:right;zoom:1;display:flex;align-items:center;justify-content:space-between}.driver-popover-progress-text{font-size:13px;font-weight:400;color:#727272;zoom:1}.driver-popover-footer button{all:unset;display:inline-block;box-sizing:border-box;padding:3px 7px;text-decoration:none;text-shadow:1px 1px 0 #fff;background-color:#fff;color:#2d2d2d;font:12px/normal sans-serif;cursor:pointer;outline:0;zoom:1;line-height:1.3;border:1px solid #ccc;border-radius:3px}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}:not(body):has(>.driver-active-element){overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}.driver-popover-footer button:hover,.driver-popover-footer button:focus{background-color:#f7f7f7}.driver-popover-navigation-btns{display:flex;flex-grow:1;justify-content:flex-end}.driver-popover-navigation-btns button+button{margin-left:4px}.driver-popover-arrow{content:"";position:absolute;border:5px solid #fff}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{left:100%;border-right-color:transparent;border-bottom-color:transparent;border-top-color:transparent}.driver-popover-arrow-side-right{right:100%;border-left-color:transparent;border-bottom-color:transparent;border-top-color:transparent}.driver-popover-arrow-side-top{top:100%;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.driver-popover-arrow-side-bottom{bottom:100%;border-left-color:transparent;border-top-color:transparent;border-right-color:transparent}.driver-popover-arrow-side-center{display:none}.driver-popover-arrow-side-left.driver-popover-arrow-align-start,.driver-popover-arrow-side-right.driver-popover-arrow-align-start{top:15px}.driver-popover-arrow-side-top.driver-popover-arrow-align-start,.driver-popover-arrow-side-bottom.driver-popover-arrow-align-start{left:15px}.driver-popover-arrow-align-end.driver-popover-arrow-side-left,.driver-popover-arrow-align-end.driver-popover-arrow-side-right{bottom:15px}.driver-popover-arrow-side-top.driver-popover-arrow-align-end,.driver-popover-arrow-side-bottom.driver-popover-arrow-align-end{right:15px}.driver-popover-arrow-side-left.driver-popover-arrow-align-center,.driver-popover-arrow-side-right.driver-popover-arrow-align-center{top:50%;margin-top:-5px}.driver-popover-arrow-side-top.driver-popover-arrow-align-center,.driver-popover-arrow-side-bottom.driver-popover-arrow-align-center{left:50%;margin-left:-5px}.driver-popover-arrow-none{display:none}
/* ==============================================
   VARIABLES CSS - PALETA DE COLORES
============================================== */
:root {
  /* Colores principales */
  --white: #ffffff;
  --primary-green: #1db178;
  --dark-green: #0f8e65;
  --light-green: #e6f7f2;
  --primary-blue: #3b82f6;
  --primary-blue-dark: #2563eb;
  --primary-green-light: #d1f5ea;
  --dark-green-text: #0c5c42;

  /* Colores derivados */
  --primary-green-light: rgba(29, 177, 120, 0.1);
  --primary-green-dark: rgba(29, 177, 120, 0.9);
  --primary-blue-light: rgba(29, 110, 177, 0.1);
  --primary-blue-dark: rgba(29, 110, 177, 0.9);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.25);

  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Espaciado */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* Transiciones */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Tema oscuro */
:root[data-theme="dark"] {
  --white: #ffffff;
  --text-color: #f5f5f5;
}


/* ==============================================
   CONTENEDOR PRINCIPAL
============================================== */
.cursos-page {
  min-height: 100vh;
}

/* ==============================================
   HERO HEADER SECTION
============================================== */
.hero-header-cursos {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
}

.hero-overlay-cursos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(29, 110, 177, 0.9) 0%,
      rgba(29, 177, 120, 0.8) 100%);
  z-index: 1;
}

.hero-pattern-cursos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1db178, #10b981, #157a58);
  /* background: linear-gradient(180deg, rgba(10, 233, 138, .48), rgba(10, 233, 138, 0) 42.31%), radial-gradient(326.4% 182.46% at 100% 0, rgba(10, 233, 138, .368) 0, rgba(0, 170, 99, .4) 25.86%, rgba(0, 196, 114, .4) 26.01%, rgba(6, 207, 195, .204) 87.98%, rgba(11, 216, 130, 0) 100%); */
  z-index: 2;
}
[data-theme="dark"] .hero-pattern-cursos {
 background: radial-gradient(circle at top left, #052e16 0%, #020617 100%);
}

.hero-content-cursos {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  padding: var(--spacing-xl);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.hero-content-cursos.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge-cursos {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: var(--spacing-xl);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--white);
  transition: all var(--transition-normal);
}

.hero-badge-cursos:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-badge-icon-cursos-cursos {
  width: 1rem;
  height: 1rem;
}

.hero-title-cursos {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
}

.hero-title-gradient-cursos {
  display: block;
  background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subtitle-cursos {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================
   BÚSQUEDA
============================================== */
.search-container-cursos {
  margin-bottom: var(--spacing-3xl);
}

.search-input-wrapper-cursos {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-icon-cursos {
  position: absolute;
  left: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-green);
  z-index: 2;
}

.search-input-cursos {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3.5rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px var(--shadow-medium);
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
}

.search-input-cursos:focus {
  outline: none;
  background: var(--white);
  box-shadow: 0 20px 40px var(--shadow-medium);
  transform: translateY(-2px);
}

.search-input-cursos::placeholder {
  color: #9ca3af;
}

/* ==============================================
   FILTROS DE CATEGORÍAS
============================================== */
.hero-stats-cursos {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.hero-stat-cursos {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-2xl);
  color: var(--white);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
  cursor: pointer;
  font-size: 0.9rem;
}

.hero-stat-cursos:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-stat-cursos.active {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

.filter-btn-icon-cursos-cursos {
  width: 1.125rem;
  height: 1.125rem;
}

/* ==============================================
   SECCIÓN DE CURSOS
============================================== */
.courses-section-cursos {
  padding: var(--spacing-3xl) var(--spacing-xl);
  max-width: auto;
  margin: 0 auto;
}

.courses-grid-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

/* ==============================================
   TARJETAS DE CURSO
============================================== */


/* Tarjeta con imagen de fondo completa */
.course-card-cursos {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding: var(--spacing-xl);
  color: var(--white);
}

.course-card-cursos.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.course-card-cursos:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-dark);
}

.course-card-cursos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.course-content-cursos {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0;
}

/* Elementos superpuestos en la imagen */
.course-rating {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.rating-star {
  width: 1rem;
  height: 1rem;
  color: #fbbf24;
}

.course-level-cursos {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.level-beginner {
  background: var(--primary-green);
  color: var(--white);
}

.level-intermediate {
  background: #f59e0b;
  color: var(--white);
}

.level-advanced {
  background: #ef4444;
  color: var(--white);
}

.level-default {
  background: var(--primary-blue);
  color: var(--white);
}

/* Información del curso */
.course-header-cursos {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.course-title-cursos {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: 1.3;
  flex: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.course-free-badge-cursos {
  background: var(--primary-green);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Estadísticas del curso */
.course-stats-cursos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.course-stat-cursos {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0; /* elimina margen inferior */
}

.course-stat-cursos > * {
  margin-bottom: 0; /* asegura que los hijos tampoco lo tengan */
}


.stat-icon-cursos {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--primary-green);
}

/* Tags */
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.course-tag {
  background: rgba(29, 177, 120, 0.2);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botones de acción */
.course-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.enroll-btn {
  flex:1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);            /* menos separación entre ícono/texto */
  padding: var(--spacing-xs) var(--spacing-sm); /* menos alto/ancho */
  border: none;
  border-radius: var(--radius-md);   /* un poco menos redondeado */
  font-weight: var(--font-weight-medium);
  font-size: 0.8rem;                 /* más chico */
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
}


.enroll-btn.available {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
}

.enroll-btn.available:hover {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(29, 177, 120, 0.3);
}

.enroll-btn.enrolled {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: default;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.enrolled-buttons {
  display: flex;
  gap: var(--spacing-sm);
  width: 100%;
}

.enrolled-buttons .enroll-btn {
  flex: 1;
}

.access-btn-cursos {
  flex: 0; /* ya no ocupa todo el espacio */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);           /* menos espacio entre ícono/texto */
  padding: var(--spacing-xs) var(--spacing-sm); /* menos alto y ancho */
  background: rgba(59, 130, 246, 0.8);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md); /* menos redondeado */
  font-weight: var(--font-weight-medium);
  font-size: 0.8rem;                /* más pequeño */
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.access-btn-cursos:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(29, 110, 177, 0.25); /* sombra más ligera */
}

.btn-icon-cursos {
  width: 1.125rem;
  height: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .courses-grid-cursos {
    grid-template-columns: 1fr;
  }

  .course-card-cursos {
    height: 480px;
  }

  .course-stats-cursos {
    grid-template-columns: 1fr;
  }

  .course-buttons {
    flex-direction: column;
  }
}

/* ==============================================
   NO RESULTS
============================================== */
.no-results {
  text-align: center;
  padding: var(--spacing-3xl);
  color: #6b7280;
}

.no-results-icon-cursos {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--spacing-xl);
  color: var(--primary-green);
  opacity: 0.5;
}

.no-results-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
  color: #374151;
}

.no-results-description {
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==============================================
   SECCIÓN DE BENEFICIOS
============================================== */
.benefits-section {

  padding: var(--spacing-3xl) var(--spacing-xl);
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.benefits-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: #1f2937;
  margin-bottom: var(--spacing-lg);
}

.benefits-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: var(--spacing-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.benefit-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.benefit-icon-cursos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--primary-green-light);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--spacing-lg);
}

.benefit-icon-cursos-svg {
  width: 2rem;
  height: 2rem;
  color:#ffffff;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: #1f2937;
  margin-bottom: var(--spacing-md);
}

.benefit-description {
  color: #6b7280;
  line-height: 1.6;
}

/* ==============================================
   RESPONSIVE DESIGN
============================================== */

/* Extra Large screens */
@media (min-width: 1536px) {
  .courses-grid-cursos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large screens */
@media (max-width: 1200px) {
  .hero-content-cursos {
    padding: var(--spacing-lg);
  }

  .courses-section-cursos {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .courses-grid-cursos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
  }
}

/* Medium screens */
@media (max-width: 768px) {
  .hero-header-cursos {
    min-height: 80vh;
  }

  .hero-content-cursos {
    padding: var(--spacing-md);
  }

  .hero-stats-cursos {
    gap: var(--spacing-sm);
  }

  .hero-stat-cursos {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.8rem;
  }

  .courses-section-cursos {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .courses-grid-cursos {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .course-card-cursos {
    max-width: none;
  }

  .course-content-cursos {
    padding: var(--spacing-lg);
  }

  .course-stats-cursos {
     grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

  .enrolled-buttons {
    flex-direction: column;
  }

  .benefits-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .benefit-card {
    padding: var(--spacing-xl);
  }
}

/* Small screens */
@media (max-width: 480px) {
  .hero-badge-cursos {
    font-size: 0.8rem;
    padding: var(--spacing-xs) var(--spacing-md);
  }

  .search-input-cursos {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
  }

  .search-icon-cursos {
    left: var(--spacing-md);
  }

  .hero-stats-cursos {
    flex-direction: column;
    align-items: center;
  }

  .hero-stat-cursos {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .course-header-cursos {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .course-title-cursos {
    font-size: 1.125rem;
  }

  .course-buttons {
    flex-direction: column;
  }

  .enrolled-buttons {
    flex-direction: column;
  }
}


/* ==============================================
   ANIMACIONES Y EFECTOS ESPECIALES
============================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.course-free-badge-cursos {
  animation: pulse 2s infinite;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states para accesibilidad */
.search-input-cursos:focus,
.hero-stat-cursos:focus,
.enroll-btn:focus,
.access-btn-cursos:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Dark mode media query preparado para futuro */
@media (prefers-color-scheme: dark) {
  /* Aquí se pueden agregar estilos para modo oscuro si es necesario */
}

/* Reduced motion para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .course-free-badge-cursos {
    animation: none;
  }
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #1d6eb1;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-left: 4px solid #157a58;
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

/* Agregar al final de cursos.css */
.tutorial-btn-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1db178, #10b981, #157a58);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.tutorial-btn-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}
:root {
  --primary-green: #1db178;
  --light-green: #a2e4cc;
  --dark-green: #157a58;
  --primary-blue: #1d6eb1;
  --light-gray: #f8f8f8;
  --white: #ffffff;
  --dark-gray: #2d3748;
  --medium-gray: #718096;
  
  /* Colores optimizados para mejor legibilidad */
  --text-primary-vidu: #1a202c;
  --text-secondary: #2d3748;
  --text-muted: #4a5568;
  --text-light: #718096;
  --bg-main: #f7fafc;
  --bg-card-vidu: #ffffff;
  --bg-accent: #f0fff4;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e0;
  
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.video-player-container-vidu {
  min-height: 100vh;
  background: var(--bg-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text-primary-vidu);
  line-height: 1.6;
}

.video-player-wrapper {
  max-width: auto;
  margin: 0 auto;
  padding: 24px;
}

/* Header Styles */
.video-header-vidu{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card-vidu);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.course-info {
  flex: 1;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.course-icon {
  width: 16px;
  height: 16px;
}

.course-title-vidu {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary-vidu);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.025em;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-secondary-vid {
  padding: 12px 20px;
  border: 2px solid var(--primary-green);
  background: var(--bg-card-vidu);
  color: var(--primary-green);
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn-secondary-vid:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary-vid {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-vid:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Video Content Layout */
.video-content-vidu {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

/* Video Player Styles */
.video-player-vid {
  background: var(--bg-card-vidu);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--dark-gray);
  overflow: hidden;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay-vidu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 55, 72, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.play-overlay-vidu:hover {
  background: rgba(45, 55, 72, 0.7);
}

.play-button-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(29, 177, 120, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.play-button-large:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(29, 177, 120, 0.4);
}

.play-icon-large {
  width: 32px;
  height: 32px;
  color: white;
  margin-left: 4px;
}

/* Video Controls */
.video-controls-vidu {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 50px 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-controls-vidu.visible {
  opacity: 1;
}

.progress-container {
  margin-bottom: 20px;
}

.progress-bar-vidu {
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.progress-bar-vidu:hover {
  height: 8px;
}

.progress-fill-vidu {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  border-radius: 3px;
  transition: width 0.1s ease;
}

.progress-handle-vidu {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--primary-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

.progress-bar-vidu:hover .progress-handle-vidu {
  opacity: 1;
}

.controls-row-vidu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn-vidu {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.control-btn-vidu:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.play-btn {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.volume-control-vidu
 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider-vidu {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.volume-slider-vidu::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary-green);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.time-display {
  color: white;
  font-size: 14px;
  font-weight: 500;
  min-width: 100px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Settings Dropdown */
.settings-dropdown {
  position: relative;
}

.settings-menu {
  position: absolute;
  bottom: 120%;
  right: 0;
  background: var(--dark-gray);
  border-radius: var(--border-radius);
  padding: 16px;
  min-width: 140px;
  box-shadow: var(--shadow-xl);
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-label {
  color: #a0aec0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.settings-option {
  background: none;
  border: none;
  color: white;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.settings-option:hover {
  background: rgba(29, 177, 120, 0.2);
}

.settings-option.active {
  background: var(--primary-green);
  color: white;
}

/* Question Section */
.question-section-vidu {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-accent);
}

.question-icon {
  color: var(--primary-green);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.question-input-vidu {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: var(--bg-card-vidu);
  color: var(--text-primary-vidu);
  font-weight: 500;
}

.question-input-vidu::placeholder {
  color: var(--text-light);
}

.question-input-vidu:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(29, 177, 120, 0.1);
}

.question-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-blue), #1a5a8a);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.question-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Course Sidebar */
.course-sidebar-vidu {
  background: var(--bg-card-vidu);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  height: fit-content;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.sidebar-header-vid {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(29, 177, 120, 0.1), rgba(162, 228, 204, 0.1));
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-icon {
  color: var(--primary-green);
  width: 22px;
  height: 22px;
}

.sidebar-header h3 {
  margin: 0;
  color: var(--text-primary-vidu);
  font-size: 20px;
  font-weight: 700;
}

.content-section-vidu{
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.content-section-vidu:last-of-type {
  border-bottom: none;
}

.section-header-vidu{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-primary-vidu);
  font-size: 16px;
}

.section-icon {
  color: var(--primary-green);
  width: 18px;
  height: 18px;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: var(--bg-card-vidu);
}

.lesson-item:hover {
  background: #f7fafc;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.lesson-item.current {
  background: linear-gradient(135deg, rgba(29, 177, 120, 0.1), rgba(162, 228, 204, 0.1));
  border-color: var(--primary-green);
  box-shadow: var(--shadow);
}

.lesson-item.completed {
  background: rgba(21, 122, 88, 0.05);
  border-color: rgba(21, 122, 88, 0.2);
}

.lesson-number {
  width: 28px;
  height: 28px;
  background: var(--text-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-item.current .lesson-number {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  box-shadow: var(--shadow-sm);
}

.lesson-item.completed .lesson-number {
  background: var(--dark-green);
}

.lesson-info-vidu {
  flex: 1;
  min-width: 0;
}

.lesson-title-vidu {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary-vidu);
  line-height: 1.4;
  margin-bottom: 6px;
}

.lesson-meta-vidu {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
}

.lesson-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.completed-icon {
  width: 20px;
  height: 20px;
  color: var(--dark-green);
}

.current-indicator {
  width: 12px;
  height: 12px;
  background: var(--primary-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 4px rgba(29, 177, 120, 0.2);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Recommended Section */
.recommended-section-vid {
  padding: 24px;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-top: 1px solid var(--border-color);
}

.recommended-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.recommended-icon {
  color: var(--primary-blue);
  width: 20px;
  height: 20px;
}

.recommended-section-vid h4 {
  margin: 0;
  color: var(--text-primary-vidu);
  font-size: 18px;
  font-weight: 700;
}

.reading-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card-vidu);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.reading-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary-blue);
}

.reading-icon {
  color: var(--primary-blue);
  flex-shrink: 0;
  padding: 8px;
  background: rgba(29, 110, 177, 0.1);
  border-radius: 8px;
}

.reading-info {
  flex: 1;
}

.reading-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary-vidu);
  margin-bottom: 6px;
  line-height: 1.4;
}

.reading-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .video-content {
    grid-template-columns: 1fr 350px;
    gap: 24px;
  }
  
  .course-title {
    font-size: 28px;
  }
}

@media (max-width: 968px) {
  .video-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .course-sidebar-vidu {
    order: -1;
  }
  
  .video-header-vidu {
    flex-direction: column;
    gap: 20px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .course-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .video-player-wrapper {
    padding: 16px;
  }
  
  .video-header-vidu {
    margin-bottom: 24px;
    padding: 20px;
  }
  
  .course-title {
    font-size: 22px;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .controls-left,
  .controls-right {
    gap: 8px;
  }
  
  .volume-control-vidu
   {
    display: none;
  }
  
  .time-display {
    font-size: 12px;
    min-width: 80px;
  }
  
  .question-section-vidu {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .lesson-item {
    padding: 14px;
  }
  
  .lesson-title-vidu {
    font-size: 13px;
  }
  
  .sidebar-header,
  .content-section-vidu,
  .recommended-section-vid {
    padding: 20px;
  }
}

/* Ajustes responsive para el contenedor principal */
@media (max-width: 768px) {
  .video-content-vidu {
    display: grid;
    grid-template-columns: 1fr !important;  /* Fuerza una columna */
    gap: 16px;
  }

  .course-sidebar-vidu {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 16px;
  }

  .video-player-wrapper {
    padding: 12px;
  }

  /* Ajustes para el header en móvil */
  .video-header-vidu {
    padding: 16px;
    flex-direction: column;
    gap: 16px;
  }

  /* Ajustes para los controles de video en móvil */
  .video-controls-vidu {
    padding: 12px;
  }

  /* Mejoras para la lista de lecciones en móvil */
  .lessons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .lesson-item {
    padding: 12px;
  }

  .lesson-title-vidu {
    font-size: 14px;
  }

  /* Ajustes para la sección de contenido en móvil */
  .content-section-vidu {
    padding: 16px;
  }

  /* Ajustes para el sidebar en móvil */
  .sidebar-header-vid {
    padding: 16px;
  }

  /* Mejorar la visibilidad de los botones en móvil */
  .btn-primary-vid,
  .btn-secondary-vid {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .video-content-vidu {
    margin: 0;
    padding: 0;
  }

  .course-sidebar-vidu {
    border-radius: 0;
    box-shadow: none;
  }

  .lesson-item {
    border-radius: 8px;
  }

  /* Mejorar la navegación en móvil */
  .section-header-vidu {
    padding: 12px;
  }

  /* Ajustar tamaño de texto para mejor legibilidad */
  .course-title-vidu {
    font-size: 20px;
  }

  .lesson-meta-vidu {
    font-size: 12px;
  }
}

/* Asegurar que el sidebar siempre sea visible en móvil */
@media (max-width: 968px) {
  .course-sidebar-vidu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .video-content-vidu {
    grid-template-columns: 1fr;
  }

  /* Ajustar el orden de los elementos */
  .video-player-vid {
    order: 1;
  }

  .course-sidebar-vidu {
    order: 2;
  }
}

/* Ajustes para la interacción modal en móvil */
@media (max-width: 768px) {
  .interaction-modal {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .interaction-content {
    padding: 16px;
  }

  .interaction-options {
    gap: 8px;
  }

  .interaction-option {
    padding: 10px;
    font-size: 14px;
  }
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-player,
.course-sidebar-vidu {
  animation: fadeIn 0.6s ease-out;
}

/* Focus states for accessibility */
.control-btn-vidu:focus,
.question-input-vidu:focus,
.question-btn:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 3px solid rgba(29, 177, 120, 0.5);
  outline-offset: 2px;
}

.lesson-item:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: -2px;
}

/* Custom scrollbar */
.course-sidebar-vidu::-webkit-scrollbar {
  width: 6px;
}

.course-sidebar-vidu::-webkit-scrollbar-track {
  background: var(--bg-main);
}

.course-sidebar-vidu::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 3px;
}

.course-sidebar-vidu::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(29, 177, 120, 0.2),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}


/* Estilos adicionales para videos.css */

/* Loading y Error states */
.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
  text-align: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.error-container p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Navegación en header */
.course-nav {
  margin-bottom: 0.5rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.back-btn:hover {
  color: #1db178;
  background-color: #f3f4f6;
}

/* Descripción del video */
.video-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Estados de carga en sidebar */
.lessons-list .lesson-item {
  transition: all 0.2s ease;
}

.lessons-list .lesson-item:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
}

/* Badge de vista previa */
.preview-badge {
  background-color: #fef3c7;
  color: #d97706;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Transcripción */
.transcription-content {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.transcription-content p {
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Info del curso en sidebar */
.course-info-section-vidu {
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 1rem;
  margin-top: 1.5rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.course-info-header-vidu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.course-info-icon-vidu {
  width: 20px;
  height: 20px;
  color: #1db178;
  flex-shrink: 0;
}

.course-info-header-vidu h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.course-info-title-vidu {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.75rem;
}

.course-info-stats-vidu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.course-stat-vidu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #6b7280;
}

.course-stat-vidu svg {
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .video-content-vidu {
    flex-direction: column;
  }
  
  .course-sidebar-vidu {
    width: 100%;
    max-height: none;
  }
  
  .video-header-vidu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .back-btn {
    margin-bottom: 0.5rem;
  }
}

/* Mejoras en el indicador actual */
.lesson-item.current {
  background-color: #ecfdf5;
  border-left: 3px solid #1db178;
}

.lesson-item.current .lesson-title-vidu {
  color: #1db178;
  font-weight: 600;
}

.current-indicator {
  width: 8px;
  height: 8px;
  background-color: #1db178;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Estilos para botones mejorados */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1db178;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 177, 120, 0.4);
}

.interaction-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
}

.interaction-point:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
/* ============================================ */
/* ESTILOS PARA EL FORO DE COMENTARIOS */
/* ============================================ */

.forum-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Header del foro */
.forum-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.forum-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

.forum-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  flex: 1;
}

.comments-count {
  background: #f3f4f6;
  color: #6b7280;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Formulario para nuevo comentario */
.new-comment-form {
  margin-bottom: 32px;
}

.comment-input-container {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #157a58; /* color de fondo */
  color: white;              /* color de la letra */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-transform: uppercase; /* asegura que sea mayúscula */
}

.user-avatar.small {
  width: 32px;
  height: 32px;
}

.comment-textarea {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
  background: #fafafa;
}

.comment-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-textarea::placeholder {
  color: #9ca3af;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.submit-comment-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-comment-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-comment-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Lista de comentarios */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.comment-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-user-info {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-role {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.comment-timestamp {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.comment-options-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.comment-options-btn:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.comment-content {
  margin-bottom: 16px;
}

.comment-content p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
  font-size: 14px;
}

/* Acciones de comentarios */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.action-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.action-btn span {
  font-weight: 500;
}

.reply-btn:hover {
  color: #3b82f6;
}

/* Formulario de respuesta */
.reply-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.reply-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.reply-textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  transition: all 0.2s ease;
}

.reply-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cancel-reply-btn {
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-reply-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

.submit-reply-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-reply-btn:hover:not(:disabled) {
  background: #2563eb;
}

.submit-reply-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

/* Contenedor de respuestas */
.replies-container {
  margin-top: 16px;
  padding-left: 20px;
  border-left: 2px solid #e5e7eb;
}

.reply-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.reply-item:last-child {
  margin-bottom: 0;
}

.reply-item .comment-header {
  margin-bottom: 8px;
}

.reply-item .comment-content {
  margin-bottom: 12px;
}

.reply-item .comment-actions {
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.reply-item .action-btn {
  font-size: 12px;
  padding: 4px 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .forum-section {
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px;
  }

  .forum-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .comment-input-container {
    flex-direction: column;
    gap: 8px;
  }

  .user-avatar {
    align-self: flex-start;
  }

  .comment-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .action-btn {
    font-size: 12px;
    padding: 4px 6px;
  }

  .replies-container {
    padding-left: 12px;
  }

  .reply-input-container {
    flex-direction: column;
  }

  .comment-header {
    flex-wrap: wrap;
  }

  .user-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Animaciones */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-item {
  animation: slideIn 0.3s ease;
}

.reply-item {
  animation: slideIn 0.3s ease;
}

/* Estados de interacción mejorados */
.action-btn.liked {
  color: #3b82f6;
  background: #dbeafe;
}

.action-btn.disliked {
  color: #dc2626;
  background: #fef2f2;
}

/* Indicador de comentario del instructor */
.user-role:contains("Instructor") {
  background: #f59e0b;
  color: white;
}

/* Efectos hover mejorados */
.submit-comment-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.comment-item:hover {
  transform: translateY(-1px);
}

/* Scrollbar personalizada para textarea */
.comment-textarea::-webkit-scrollbar,
.reply-textarea::-webkit-scrollbar {
  width: 6px;
}

.comment-textarea::-webkit-scrollbar-track,
.reply-textarea::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.comment-textarea::-webkit-scrollbar-thumb,
.reply-textarea::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.comment-textarea::-webkit-scrollbar-thumb:hover,
.reply-textarea::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}


/*Modal del video*/
/* Fondo difuminado detrás del modal */
.interaction-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Contenedor del modal */
.interaction-modal {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: fadeInScale 0.3s ease;
}

/* Animación de entrada */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Encabezado */
.interaction-header {
  background: #059669;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.interaction-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.interaction-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.interaction-close:hover {
  transform: scale(1.2);
}

/* Contenido */
.interaction-content {
  padding: 20px;
}

.interaction-description {
  margin-bottom: 12px;
  color: #374151;
  font-size: 1rem;
  line-height: 1.4;
}

.interaction-question h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #111827;
}

/* Opciones */
.interaction-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interaction-option {
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.interaction-option:hover {
  background: #e0f2f1;
  border-color: #059669;
  transform: translateY(-2px);
}

/* Footer */
.interaction-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.interaction-points {
  font-weight: 600;
  color: #059669;
}

.interaction-required {
  color: #dc2626;
  font-style: italic;
}
.interaction-submit{
  background: #059669;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
/* Contenedor principal */
.my-courses-container {
  max-width: auto;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Header de contenido */
.content-header-mis {
  margin-bottom: 2rem;
  text-align: center;
}
.title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.title-gradient {
  background: linear-gradient(135deg, #1db178, #157a58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



.content-header-mis p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Grid de cursos */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta de curso */
.course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Thumbnail del curso */
.course-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
  transform: scale(1.05);
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(29, 177, 120, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.play-button:hover {
  background: #1db178;
  transform: scale(1.1);
}

.course-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.course-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(4px);
}

.course-category.desarrollo-web {
  background: rgba(29, 177, 120, 0.9);
}

.course-category.diseño {
  background: rgba(29, 110, 177, 0.9);
}

.course-category.programación {
  background: rgba(21, 122, 88, 0.9);
}

.course-category.backend {
  background: rgba(162, 228, 204, 0.9);
  color: #157a58;
}

/* Información del curso */
.course-info {
  padding: 1.5rem;
}

.course-title-mis {
  font-size: 1.1rem;
  font-weight: 600;
  color: #157a58;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.course-instructor {
  font-size: 0.9rem;
  color: #1d6eb1;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item-mis {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #667eea;
}

/* Sección de progreso */
.progress-section-mis {
  margin-bottom: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.progress-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.progress-status.completed {
  background: #a2e4cc;
  color: #157a58;
}

.progress-status.in-progress {
  background: rgba(29, 110, 177, 0.1);
  color: #1d6eb1;
}

.progress-status.started {
  background: #f0f0f0;
  color: #666;
}

.progress-bar-mis {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-fill.completed {
  background: linear-gradient(90deg, #1db178, #157a58);
}

.progress-fill.in-progress {
  background: linear-gradient(90deg, #1d6eb1, #157a58);
}

.progress-fill.started {
  background: #a2e4cc;
}

.continue-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1db178, #157a58);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 177, 120, 0.3);
}

/* Estado vacío */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #157a58;
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  color: #666;
  margin: 0 0 2rem 0;
}

.browse-btn {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #1db178, #157a58);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.browse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 177, 120, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-header-mis h2 {
    font-size: 1.8rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .course-card {
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .content-header-mis h2 {
    font-size: 1.5rem;
  }

  .course-info {
    padding: 1rem;
  }

  .course-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* ocupa casi toda la pantalla */
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #1d6eb1;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-left: 4px solid #157a58;
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} /* Variables CSS para colores mejorados */
:root {
  --primary-green: #00b894;
  --primary-green-light: #00d2a0;
  --primary-green-dark: #00a085;
  --accent-green: #16a87f63;
  --success-green: #6c5ce7;
  --secondary-blue: #000000;
  --secondary-blue-light: #16a085;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --background-white: #ffffff;
  --background-light: #f8f9fa;
  --background-card: #ffffff;
  --border-light: #e8f4f8;
  --border-medium: #d1ecf1;
  --shadow-light: rgba(0, 184, 148, 0.1);
  --shadow-medium: rgba(0, 184, 148, 0.2);
  --shadow-strong: rgba(0, 184, 148, 0.3);
  --gradient-primary: linear-gradient(135deg, #1db178 0%, #16a085 100%);
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-blue),
    var(--secondary-blue-light)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-green),
    var(--primary-green)
  );
}

/* Contenedor principal */
.profile-container {
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Loading container */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Header del perfil */
.profile-header {
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-light);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.cover-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cover-image:hover img {
  transform: scale(1.05);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.9;
}

/* Información del usuario centrada */
.user-info-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
  position: relative;
  margin-top: -90px;
  background: var(--background-card);
  border-radius: 24px 24px 0 0;
}

.avatar-container-centered {
  position: relative;
  margin-bottom: 0.5rem;
}

.user-avatar-centered {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid var(--background-white);
  object-fit: cover;
  box-shadow: 0 16px 40px var(--shadow-medium);
  transition: all 0.4s ease;
  filter: saturate(1.1) brightness(1.05);
}

.user-avatar-centered:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 20px 50px var(--shadow-strong);
}

.avatar-badge-centered {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 5px solid var(--background-white);
  box-shadow: 0 6px 16px var(--shadow-medium);
  transition: all 0.3s ease;
}

.avatar-badge-centered:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px var(--shadow-strong);
}

.user-details-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.user-name-centered {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.user-email-centered {
  font-size: 1.15rem;
  color: var(--secondary-blue);
  margin: 0;
  font-weight: 500;
  opacity: 0.9;
}

.user-role-badge {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.user-role-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.profile-actions-centered {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px var(--shadow-light);
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-medium);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Estadísticas */
.user-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--border-light);
  flex-wrap: wrap;
  background: var(--background-light);
}

.stat-item-perfil {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  background: var(--background-card);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px var(--shadow-light);
  transition: all 0.4s ease;
  text-align: center;
  cursor: default;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-item-perfil::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-item-perfil:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px var(--shadow-medium);
  border-color: var(--accent-green);
}

.stat-item-perfil:hover::before {
  transform: scaleX(1);
}

.stat-number-perfil {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navegación de pestañas */
.profile-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--background-card);
  border-radius: 20px;
  padding: 0.75rem;
  margin: 0 2rem 2rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid var(--border-light);
}

.nav-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: #636e72;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px var(--shadow-medium);
  transform: translateY(-1px);
}

.nav-tab:not(.active):hover {
  background: var(--accent-green);
  color: var(--primary-green-dark);
  transform: translateY(-1px);
}

/* Contenido */
.profile-content {
  padding: 0 2rem;
}

.content-header {
  margin-bottom: 2rem;
}

.content-header h2 {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem 0;
}

.content-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Formulario de edición */
.edit-form-container {
  background: var(--background-card);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow-light);
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

/* Layout de dos columnas */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sección de upload de avatar */
.avatar-upload-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.avatar-upload-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin: 0 0 1rem 0;
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avatar-preview {
  flex-shrink: 0;
}

.avatar-preview-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-medium);
  transition: all 0.3s ease;
}

.avatar-preview-img:hover {
  transform: scale(1.05);
  border-color: var(--accent-green);
}

.avatar-upload-controls {
  flex: 1;
}

.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--shadow-light);
  border: none;
}

.avatar-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.avatar-help-text {
  margin: 0.75rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Formulario */
.edit-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin: 0 0 1.5rem 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-perfil {
  margin-bottom: 1.5rem;
}

.form-group-perfil label {
  display: block;
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--background-white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--shadow-light);
  transform: translateY(-1px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-save,
.btn-cancel {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-save {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px var(--shadow-light);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-cancel {
  background: #e9ecef;
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
}

.btn-cancel:hover {
  background: #dee2e6;
  transform: translateY(-1px);
}

/* Sección de contraseña */
.password-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.password-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin: 0;
}

.password-form {
  margin-top: 1rem;
}

.password-input-container {
  position: relative;
}

.password-input-container .form-input {
  padding-right: 3.5rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-green);
  background: var(--background-light);
}

.btn-save-password {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 16px var(--shadow-light);
}

.btn-save-password:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* Vista de información */
.profile-info-display {
  background: var(--background-card);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 1px solid var(--border-light);
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green-dark);
  margin: 0 0 1.5rem 0;
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item:hover {
  padding-left: 1rem;
  background: var(--background-light);
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.info-label {
  font-weight: 600;
  color: var(--primary-green-dark);
}

.info-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value.capitalize {
  text-transform: capitalize;
}

.bio-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.bio-text {
  margin: 0.5rem 0 0 0;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Sección de cursos */
.cursos-tab-content {
  background: var(--background-card);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 1px solid var(--border-light);
}

/* Mensajes de estado */
.status-message {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 1rem;
  border-radius: 16px;
  font-weight: 500;
  animation: slideIn 0.4s ease-out;
  border: none;
  box-shadow: 0 4px 16px var(--shadow-light);
}

.status-message.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.status-message.error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.status-message button {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.status-message button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.status-message svg {
  margin-right: 8px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner para botón de carga */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-save-password:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-save-password:disabled:hover {
  transform: none;
  box-shadow: 0 4px 16px var(--shadow-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-container {
    padding: 0;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .user-info-centered {
    padding: 1.5rem;
    margin-top: -70px;
  }

  .user-avatar-centered {
    width: 140px;
    height: 140px;
  }

  .user-name-centered {
    font-size: 2rem;
  }

  .user-stats {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .profile-nav {
    margin: 0 1rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-tab {
    padding: 1rem;
  }

  .profile-content {
    padding: 0 1rem;
  }

  .profile-actions-centered {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .avatar-upload {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .password-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  .user-avatar-centered {
    width: 120px;
    height: 120px;
  }

  .user-name-centered {
    font-size: 1.8rem;
  }

  .user-email-centered {
    font-size: 1rem;
  }

  .content-header h2 {
    font-size: 1.6rem;
  }

  .user-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stat-item-perfil {
    flex: 1;
    min-width: 120px;
    padding: 1.5rem 1rem;
  }

  .edit-form-container,
  .profile-info-display,
  .cursos-tab-content {
    padding: 1.5rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stat-number-perfil {
    font-size: 2rem;
  }
}


/* Variables CSS */

:root {
  
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --surface: #ffffff;
  --background: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #7e95b6;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Container Principal */

.certificates-container-modern {
  min-height: 100vh;
  padding: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}

/* Header Section */

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.header-content {
  flex: 1;
}

.title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.title-gradient {
  background: linear-gradient(135deg, #1db178, #157a58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle-modern {
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 400;
}

.user-info {
  font-weight: 600;
  color: #1db178;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stats-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-gradient);
  min-width: 80px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1db178, #157a58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid/Lista Horizontal Moderno */

.certificates-list-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card Horizontal Moderno - SIEMPRE MANTIENE LAYOUT HORIZONTAL */

.certificate-card-horizontal-modern {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  min-height: 200px;
  animation: slideInUp 0.6s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
  backdrop-filter: blur(10px);
  /* FORZAR DISEÑO HORIZONTAL EN TODOS LOS TAMAÑOS */
  flex-direction: row !important;
}

.certificate-card-horizontal-modern:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.3);
}

.certificate-card-horizontal-modern:hover .cert-image-horizontal {
  transform: scale(1.1);
}

.certificate-card-horizontal-modern:hover .floating-orb-horizontal {
  opacity: 1;
}

/* Sección de Imagen Horizontal - RESPONSIVA PERO SIEMPRE A LA IZQUIERDA */

.cert-image-section-horizontal {
  width: 480px;
  min-width: 480px;
  height: 390px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Evita que se comprima demasiado */
}

.image-container-horizontal {
  position: relative;
  width: 100%;
  height: 100%;
}

.cert-image-horizontal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-overlay-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.category-badge-horizontal {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator-horizontal {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  backdrop-filter: blur(10px);
}

.status-dot-horizontal {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot-horizontal.valid {
  background-color: #10b981;
}

.status-dot-horizontal.invalid {
  background-color: #ef4444;
}

/* Contenido Horizontal - SIEMPRE A LA DERECHA */

.card-content-horizontal-modern {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* Permite que el texto se trunque si es necesario */
}

.content-top {
  flex: 1;
}

.institution-header-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.institution-name-horizontal {
  background: linear-gradient(135deg, #1db178, #157a58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-badge-horizontal {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
}

.duration-badge-horizontal {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-title-horizontal-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cert-subtitle-horizontal-modern {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cert-meta-horizontal-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.meta-item-horizontal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  min-width: 0;
  flex: 1;
  min-width: 200px;
}

.meta-item-horizontal svg {
  color: #667eea;
  flex-shrink: 0;
}

/* Información adicional del certificado */

.cert-additional-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.info-label {
  color: rgba(100, 116, 139, 0.8);
  font-weight: 500;
}

.info-value {
  font-weight: 600;
  color: rgba(100, 116, 139, 0.8);
}

/* Botones Horizontales */

.card-actions-horizontal-modern {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-horizontal-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 44px;
}

.btn-horizontal-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-horizontal-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-horizontal-modern:hover::before {
  left: 100%;
}

.btn-primary-horizontal-modern {
  flex: 1;
  background: linear-gradient(135deg, #1db178, #157a58);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 177, 120, 0.4);
}

.btn-primary-horizontal-modern:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 177, 120, 0.5);
}

.btn-secondary-horizontal-modern {
  flex: 1;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-secondary-horizontal-modern:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-3px);
  border-color: #667eea;
}

.btn-icon-horizontal-modern {
  width: 52px;
  height: 52px;
  padding: 0;
  background: rgba(61, 68, 78, 0.1);
  color: #36383b;
  border: 1px solid var(--border);
  border-radius: 16px;
  flex-shrink: 0;
}

.btn-icon-horizontal-modern:hover:not(:disabled) {
  background: rgba(100, 116, 139, 0.2);
  transform: translateY(-3px);
  color: #000000;
}

/* Estados de carga y error */

.loading-state,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: 24px;
  padding: 3rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: var(--shadow-md);
}

.loading-state svg,
.error-state svg,
.empty-state svg {
  color: #667eea;
  margin-bottom: 1rem;
}

.error-state h3,
.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.error-state p,
.empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Elementos Flotantes Horizontales */

.floating-orb-horizontal {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.orb-1-horizontal {
  width: 60px;
  height: 60px;
  background: rgba(102, 126, 234, 0.1);
  top: -30px;
  right: -30px;
  backdrop-filter: blur(10px);
}

.orb-2-horizontal {
  width: 80px;
  height: 80px;
  background: rgba(255, 119, 198, 0.1);
  bottom: -40px;
  left: -40px;
  backdrop-filter: blur(10px);
}

/* Animaciones */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Gradientes para categorías */

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

/* Color utilities */

.text-red-500 { color: #ef4444; }

.text-yellow-500 { color: #eab308; }

.text-green-500 { color: #10b981; }

/* RESPONSIVE DESIGN - MANTENIENDO SIEMPRE EL DISEÑO HORIZONTAL */

/* Tablets grandes (1024px - 1200px) */

@media (max-width: 1200px) {
  .certificates-container-modern {
    padding: 1.5rem;
  }
  
  .cert-image-section-horizontal {
    width: 280px;
    min-width: 280px;
  }
  
  .card-content-horizontal-modern {
    padding: 1.5rem;
  }
}

/* Tablets (768px - 1024px) */

@media (max-width: 1024px) {
  .header-section {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .header-actions {
    width: 100%;
    justify-content: center;
  }
  
  .stats-card {
    padding: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cert-image-section-horizontal {
    width: 240px;
    min-width: 240px;
  }
  
  .cert-meta-horizontal-modern {
    flex-direction: column;
    gap: 1rem;
  }
  
  .meta-item-horizontal {
    min-width: unset;
    flex: unset;
  }
  
  .card-actions-horizontal-modern {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Mobile grande (640px - 768px) */

@media (max-width: 768px) {
  .certificates-container-modern {
    padding: 1rem;
  }
  
  .title-modern {
    font-size: 2.5rem;
  }
  
  .subtitle-modern {
    font-size: 1.1rem;
  }
  
  .stats-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .stat-item {
    flex-direction: row;
    text-align: left;
    min-width: unset;
    justify-content: center;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cert-image-section-horizontal {
    width: 200px;
    min-width: 200px;
  }
  
  .cert-title-horizontal-modern {
    font-size: 1.25rem;
  }
  
  .cert-subtitle-horizontal-modern {
    font-size: 0.9rem;
  }
  
  .btn-horizontal-modern {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }
  
  .btn-icon-horizontal-modern {
    width: 44px;
    height: 44px;
  }
  
  .image-overlay-horizontal {
    padding: 1rem;
  }
  
  .category-badge-horizontal {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Mobile (480px - 640px) */

@media (max-width: 640px) {
  .certificates-container-modern {
    padding: 0.75rem;
  }
  
  .title-modern {
    font-size: 2rem;
  }
  
  .subtitle-modern {
    font-size: 1rem;
  }
  
  .header-section {
    margin-bottom: 2rem;
  }
  
  .certificates-list-modern {
    gap: 1.5rem;
  }
  
  .certificate-card-horizontal-modern {
    border-radius: 16px;
  }
  
  .cert-image-section-horizontal {
    width: 160px;
    min-width: 160px;
  }
  
  .card-content-horizontal-modern {
    padding: 1.25rem;
  }
  
  .cert-title-horizontal-modern {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .cert-subtitle-horizontal-modern {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .institution-header-horizontal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .card-actions-horizontal-modern {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-horizontal-modern {
    width: 100%;
    justify-content: center;
  }
  
  .stats-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

/* Mobile muy pequeño (menos de 480px) */

@media (max-width: 480px) {
  .certificates-container-modern {
    padding: 0.5rem;
  }
  
  .title-modern {
    font-size: 1.75rem;
  }
  
  .cert-image-section-horizontal {
    width: 120px;
    min-width: 120px;
  }
  
  .card-content-horizontal-modern {
    padding: 1rem;
  }
  
  .cert-title-horizontal-modern {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .cert-subtitle-horizontal-modern {
    font-size: 0.8rem;
  }
  
  .cert-meta-horizontal-modern {
    gap: 0.75rem;
  }
  
  .meta-item-horizontal {
    font-size: 0.75rem;
  }
  
  .btn-horizontal-modern {
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
  }
  
  .image-overlay-horizontal {
    padding: 0.75rem;
  }
  
  .category-badge-horizontal {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .status-indicator-horizontal {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .institution-name-horizontal {
    font-size: 0.75rem;
  }
  
  .code-badge-horizontal {
    font-size: 0.65rem;
    padding: 3px 6px;
  }
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #1d6eb1;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-left: 4px solid #157a58;
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
:root {
  --primary-500: #059669;
  --primary-600: #047857;
  --primary-700: #065f46;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Header Styles - Modern Hero Section */
.header-ayuda {
  background: linear-gradient(135deg, #1db178, #10b981, #157a58);
  color: var(--white);
  text-align: center;
  padding:2rem;
  position: relative;
  overflow: hidden;
}

.header-ayuda::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.header-icon {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.header-ayuda h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-100) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-ayuda p {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main Container - Modern Grid Layout */
.main-container {
  max-width: auto;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* FAQ Section - Glassmorphism Card */
.faq-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-radius: var(--border-radius-2xl);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
}

.faq-section h2 {
  color: var(--gray-800);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.025em;
}

.faq-section h2 svg {
  color: var(--primary-500);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  transition: width 0.3s ease;
  z-index: 0;
}

.faq-item:hover::before {
  width: 4px;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.faq-item:hover .faq-question {
  color: var(--primary-700);
}

.faq-answer {
  color: var(--gray-600);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Form Section - Modern Card Design */
.form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--border-radius-2xl);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
}

.form-section h2 {
  color: var(--gray-800);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.025em;
}

.form-section h2 svg {
  color: var(--primary-500);
}

/* Success Message - Modern Alert */
.success-message {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-600);
  animation: slideInDown 0.3s ease-out;
  display: none;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label svg {
  color: var(--primary-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
  appearance: none;
}

/* Modern Submit Button */
.submit-btn {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-600);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-ayuda {
    padding: 3rem 1rem;
  }

  .main-container {
    padding: 2rem 1rem;
  }

  .faq-section,
  .form-section {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .header-ayuda {
    padding: 2.5rem 1rem;
  }

  .faq-section,
  .form-section {
    padding: 1.5rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.875rem 1rem;
  }

  .submit-btn {
    padding: 0.875rem 1.5rem;
  }
}

/* Animation utilities */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}/* Variables de colores personalizados */
:root {
  --color-primary: #49c581;
  --color-secondary: #337179;
  --color-dark: #337179;
  --color-accent: #f8485e;
  --color-light: #37a6ca;
  --color-primary-20: rgba(73, 197, 129, 0.2);
  --color-accent-20: rgba(248, 72, 94, 0.2);
  --color-secondary-20: rgba(51, 113, 121, 0.2);

  /* Responsive spacing variables */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Responsive font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
}

/* Estilos base */
.training-container {
  min-height: 100vh;
}

/* Header */
.training-header {
  background: linear-gradient(135deg, #1db178, #157a58);
  color: white;
  padding: var(--spacing-md);
}

.header-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* Responsive header content padding */
@media (min-width: 480px) {
  .header-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

@media (min-width: 640px) {
  .header-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

@media (min-width: 768px) {
  .header-content {
    padding: var(--spacing-xl) var(--spacing-xl);
  }
}

@media (min-width: 1024px) {
  .header-content {
    padding: var(--spacing-2xl) var(--spacing-xl);
  }
}

.header-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .header-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-xl);
  }
}

@media (min-width: 1024px) {
  .header-flex {
    align-items: center;
  }
}

.header-main {
  flex: 1;
  width: 100%;
}

@media (min-width: 768px) {
  .header-main {
    width: auto;
  }
}

.header-title-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .header-title-section {
    gap: var(--spacing-md);
    flex-wrap: nowrap;
  }
}

.header-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #157a58;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .header-icon {
    width: 3rem;
    height: 3rem;
  }
}

.header-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

@media (min-width: 480px) {
  .header-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.main-title {
  font-size: var(--text-xl);
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 480px) {
  .main-title {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 768px) {
  .main-title {
    font-size: var(--text-3xl);
    line-height: 2.25rem;
  }
}

.subtitle {
  color: #d1d5db;
  font-size: var(--text-sm);
  margin-top: var(--spacing-xs);
}

@media (min-width: 480px) {
  .subtitle {
    font-size: var(--text-base);
  }
}

.description-container {
  max-width: 100%;
}

@media (min-width: 768px) {
  .description-container {
    max-width: 600px;
  }
}

.description {
  color: #e5e7eb;
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

@media (min-width: 480px) {
  .description {
    font-size: var(--text-lg);
    line-height: 1.75rem;
  }
}

.header-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-xs);
  line-height: 1.25rem;
}

@media (min-width: 480px) {
  .header-stats {
    gap: var(--spacing-md);
    font-size: var(--text-sm);
  }
}

@media (min-width: 768px) {
  .header-stats {
    gap: var(--spacing-lg);
  }
}

.stat-item-detalle {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-width: 0;
}

.stat-icon-detalle {
  width: 1.5rem;
  height: 1.5rem;
  color: #2d3748;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .stat-icon-detalle {
    width: 2rem;
    height: 2rem;
  }
}

.star-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #fbbf24;
  fill: currentColor;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .star-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Progress Card */
.progress-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  color: #111827;
  min-width: 200px;
  width: 100%;
  max-width: 280px;
}

@media (min-width: 480px) {
  .progress-card {
    padding: var(--spacing-lg);
    min-width: 240px;
  }
}

@media (min-width: 768px) {
  .progress-card {
    width: auto;
  }
}

.progress-center {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.progress-percentage {
  font-size: var(--text-2xl);
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
}

@media (min-width: 480px) {
  .progress-percentage {
    font-size: var(--text-3xl);
    line-height: 2.25rem;
  }
}

.progress-bar-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 0.5rem;
  margin-bottom: var(--spacing-xs);
}

@media (min-width: 480px) {
  .progress-bar-container {
    height: 0.75rem;
  }
}

.progress-bar-detalle {
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  transition: width 0.5s ease;
}
.progress-bar-detalle-in {
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  transition: width 0.5s ease;
}
@media (min-width: 480px) {
  .progress-bar-detalle-in {
    height: 0.75rem;
  }
}

.progress-text {
  font-size: var(--text-xs);
  line-height: 1.25rem;
  color: #6b7280;
}

@media (min-width: 480px) {
  .progress-text {
    font-size: var(--text-sm);
  }
}

.certificate-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  border-radius: 0.5rem;
  background-color: var(--color-primary-20);
}

@media (min-width: 480px) {
  .certificate-badge {
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }
}

.certificate-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .certificate-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.certificate-text {
  font-size: var(--text-xs);
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
}

@media (min-width: 480px) {
  .certificate-text {
    font-size: var(--text-sm);
  }
}

/* Content */
.main-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--spacing-md);
}

@media (min-width: 480px) {
  .main-content {
    padding: var(--spacing-lg);
  }
}

@media (min-width: 640px) {
  .main-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .main-content {
    padding: var(--spacing-xl);
  }
}

/* Instructor Info */
.instructor-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  border: 1px solid #e5e7eb;
}

@media (min-width: 480px) {
  .instructor-card {
    padding: var(--spacing-lg);
  }
}

.instructor-flex {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .instructor-flex {
    align-items: center;
    flex-wrap: nowrap;
  }
}

.instructor-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-base);
  line-height: 1.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .instructor-avatar {
    width: 4rem;
    height: 4rem;
    font-size: var(--text-xl);
  }
}

.instructor-info {
  flex: 1;
  min-width: 0;
}

.instructor-info h3 {
  font-size: var(--text-base);
  line-height: 1.75rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

@media (min-width: 480px) {
  .instructor-info h3 {
    font-size: var(--text-lg);
  }
}

.instructor-name {
  color: #6b7280;
}

.instructor-title {
  font-size: var(--text-xs);
  line-height: 1.25rem;
  color: #9ca3af;
}

@media (min-width: 480px) {
  .instructor-title {
    font-size: var(--text-sm);
  }
}

.instructor-certification {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--text-xs);
  line-height: 1.25rem;
  color: #9ca3af;
  margin-top: var(--spacing-sm);
  width: 100%;
}

@media (min-width: 480px) {
  .instructor-certification {
    margin-left: auto;
    margin-top: 0;
    font-size: var(--text-sm);
    width: auto;
  }
}

.certification-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .certification-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Modules Section */
.modules-section {
  margin-bottom: var(--spacing-xl);
}

.modules-title {
  font-size: var(--text-xl);
  line-height: 1.3;
  font-weight: bold;
  color: #111827;
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 480px) {
  .modules-title {
    font-size: var(--text-2xl);
    line-height: 2rem;
  }
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (min-width: 480px) {
  .modules-list {
    gap: var(--spacing-lg);
  }
}

/* Module Card */
.module-card {
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.module-header {
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 480px) {
  .module-header {
    padding: var(--spacing-lg);
  }
}

.module-header:hover {
  background-color: #f9fafb;
}

.module-header.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.module-header.locked:hover {
  background-color: white;
}

.module-header-flex {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .module-header-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
  }
}

.module-info-flex {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  flex: 1;
  min-width: 0;
}

@media (min-width: 480px) {
  .module-info-flex {
    align-items: center;
  }
}

.module-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: var(--text-base);
  line-height: 1.75rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .module-icon {
    width: 3rem;
    height: 3rem;
    font-size: var(--text-lg);
  }
}

.module-icon.completed {
  background-color: #10b981;
}

.module-icon.locked {
  background-color: #9ca3af;
}

.module-icon.in-progress {
  background-color: var(--color-accent);
}

.module-icon.not-started {
  background-color: var(--color-light);
}

.module-content {
  flex: 1;
  min-width: 0;
}

.module-title {
  font-size: var(--text-base);
  line-height: 1.4;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

@media (min-width: 480px) {
  .module-title {
    font-size: var(--text-lg);
    line-height: 1.75rem;
  }
}

.module-description {
  color: #6b7280;
  font-size: var(--text-xs);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

@media (min-width: 480px) {
  .module-description {
    font-size: var(--text-sm);
    line-height: 1.25rem;
    margin-bottom: var(--spacing-md);
  }
}

.module-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-xs);
  line-height: 1.25rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .module-stats {
    gap: var(--spacing-md);
    font-size: var(--text-sm);
    flex-wrap: nowrap;
  }
}

.module-progress-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .module-progress-section {
    width: auto;
    justify-content: flex-end;
  }
}

.module-progress-bar {
  width: 3rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .module-progress-bar {
    width: 4rem;
  }
}

.module-progress-bar .progress-bar-container {
  height: 0.375rem;
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .module-progress-bar .progress-bar-container {
    height: 0.5rem;
  }
}

.module-progress-bar .progress-bar {
  height: 0.375rem;
}

@media (min-width: 480px) {
  .module-progress-bar .progress-bar {
    height: 0.5rem;
  }
}

.chevron-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .chevron-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.chevron-icon.expanded {
  transform: rotate(90deg);
}

/* Module Lessons */
.module-lessons {
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.lessons-container {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 480px) {
  .lessons-container {
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
  }
}

.lesson-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 0.5rem;
  background-color: white;
  border: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .lesson-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
  }
}

.lesson-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.lesson-item.current {
  background-color: white;
  border: 2px solid var(--color-primary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.lesson-info {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  flex: 1;
  min-width: 0;
}

@media (min-width: 480px) {
  .lesson-info {
    align-items: center;
    gap: var(--spacing-md);
  }
}

.lesson-number {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  line-height: 1.25rem;
  font-weight: 500;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .lesson-number {
    width: 2rem;
    height: 2rem;
    font-size: var(--text-sm);
  }
}

.lesson-number.completed {
  background-color: #dcfce7;
  color: #166534;
}

.lesson-number.current {
  background-color: var(--color-primary);
  color: white;
}

.lesson-number.default {
  background-color: #f3f4f6;
  color: #6b7280;
}

.lesson-details {
  flex: 1;
  min-width: 0;
}

.lesson-details h4 {
  font-weight: 500;
  color: #111827;
  font-size: var(--text-sm);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .lesson-details h4 {
    font-size: var(--text-base);
  }
}

.lesson-details.current h4 {
  font-weight: 600;
  color: var(--color-primary);
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-xs);
  line-height: 1.25rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .lesson-meta {
    gap: var(--spacing-md);
    font-size: var(--text-sm);
    flex-wrap: nowrap;
  }
}

.lesson-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lesson-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .lesson-actions {
    width: auto;
    justify-content: flex-end;
    gap: var(--spacing-sm);
  }
}

.lesson-status {
  font-size: var(--text-xs);
  line-height: 1rem;
  color: #059669;
  background-color: #dcfce7;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
}

.lesson-button {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: var(--text-xs);
  line-height: 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .lesson-button {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
  }
}

.lesson-button:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.lesson-button.primary {
  background-color: var(--color-primary);
  color: white;
}

.lesson-button.secondary {
  background-color: #f3f4f6;
  color: #6b7280;
}

.lesson-button.secondary:hover {
  background-color: #e5e7eb;
}

/* Interactive Features */
.features-grid {
  margin-top: var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 480px) {
  .features-grid {
    gap: var(--spacing-lg);
  }
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: var(--spacing-md);
  text-align: center;
  border: 1px solid #e5e7eb;
}

@media (min-width: 480px) {
  .feature-card {
    padding: var(--spacing-lg);
  }
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .feature-icon {
    width: 3rem;
    height: 3rem;
  }
}

.feature-icon.primary {
  background-color: var(--color-primary-20);
}

.feature-icon.accent {
  background-color: var(--color-accent-20);
}

.feature-icon.secondary {
  background-color: var(--color-secondary-20);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 480px) {
  .feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.feature-icon.primary svg {
  color: var(--color-primary);
}

.feature-icon.accent svg {
  color: var(--color-accent);
}

.feature-icon.secondary svg {
  color: var(--color-secondary);
}

.feature-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-sm);
}

@media (min-width: 480px) {
  .feature-title {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-sm);
  }
}

.feature-description {
  font-size: var(--text-xs);
  line-height: 1.4;
  color: #6b7280;
}

@media (min-width: 480px) {
  .feature-description {
    font-size: var(--text-sm);
    line-height: 1.25rem;
  }
}

/* Warning Note */
.warning-note {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md);
  border-radius: 0.5rem;
  border: 1px solid #fed7aa;
  background-color: #fffbeb;
}

@media (min-width: 480px) {
  .warning-note {
    padding: var(--spacing-lg);
  }
}

.warning-content {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

@media (min-width: 480px) {
  .warning-content {
    gap: var(--spacing-md);
  }
}

.warning-icon {
  width: 1rem;
  height: 1rem;
  color: #ea580c;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

@media (min-width: 480px) {
  .warning-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.warning-text {
  font-size: var(--text-xs);
  line-height: 1.4;
  flex: 1;
}

@media (min-width: 480px) {
  .warning-text {
    font-size: var(--text-sm);
    line-height: 1.25rem;
  }
}

.warning-title {
  font-weight: 500;
  color: #9a3412;
  margin-bottom: 0.25rem;
}

.warning-description {
  color: #c2410c;
}

/* Start Button */
.start-section {
  margin-top: var(--spacing-xl);
  text-align: center;
}

.start-button {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 0.75rem;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.5;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-width: 200px;
}

@media (min-width: 480px) {
  .start-button {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--text-lg);
    line-height: 1.75rem;
    min-width: 240px;
    gap: var(--spacing-sm);
  }
}

.start-button:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(1.05);
}

.start-button:active {
  transform: scale(0.98);
}

.start-button svg {
  width: 1rem;
  height: 1rem;
  display: inline;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .start-button svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ---------- Recursos (materiales / cuestionarios) ---------- */
.resource-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Ensure resource cards are stacked correctly and don't overlap */
.resource-card {
  position: relative;
  z-index: 0;
}

.resource-card:focus,
.resource-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.resource-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #374151;
}

.resource-body {
  min-width: 0;
}

.resource-title {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-desc {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.resource-meta {
  color: #9ca3af;
  font-size: 0.82rem;
  margin-top: 6px;
}

.resource-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
  flex-shrink: 0;
}

.resource-card.exam-card .resource-desc {
  color: #6b7280;
}

/* Material-specific styling (subtle, readable) */
.material-card {
  /* color/acento igual que videos/current */
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(180deg, #ffffff, rgba(245, 252, 245, 0.9));
  cursor: pointer;
}

/* make the left numbered badge match primary color for materials */
.material-card .lesson-number.default {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Asegurar que el botón de descarga se vea bien dentro de material-card */
.material-card .lesson-actions .lesson-button.secondary {
  display: inline-flex;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

/* Examen: ya es clicable, no necesita botón visible */
.exam-card .lesson-actions {
  display: none;
}

/* Toast simple */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.toast-message {
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
}

/* mejorar foco accesible */
.resource-card[role="button"]:focus,
.resource-card[role="link"]:focus {
  outline: 3px solid rgba(59, 130, 246, 0.18);
  outline-offset: 2px;
  z-index: 3;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .progress-bar-detalle,
  .chevron-icon,
  .start-button,
  .lesson-button,
  .module-header {
    transition: none;
  }

  .start-button:hover {
    transform: none;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  .module-card,
  .instructor-card,
  .feature-card,
  .lesson-item {
    border-width: 2px;
  }

  .lesson-item.current {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .training-header {
    background: none !important;
    color: black !important;
  }

  .start-button,
  .lesson-button {
    display: none;
  }

  .module-card,
  .instructor-card {
    break-inside: avoid;
    border: 1px solid black;
  }

  .progress-bar-container {
    border: 1px solid black;
  }
}

/* Additional mobile-first improvements */

/* Ensure touch targets are accessible */
.clickable-element {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Improve focus states for keyboard navigation */
.module-header:focus,
.lesson-item:focus,
.lesson-button:focus,
.start-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Optimize for very small screens (under 320px) */
@media (max-width: 319px) {
  .header-title-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-title {
    font-size: var(--text-lg);
  }

  .header-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .progress-card {
    min-width: auto;
  }
}

/* Optimize for large screens (over 1400px) */
@media (min-width: 1400px) {
  .header-content,
  .main-content {
    max-width: 80rem;
  }

  .main-title {
    font-size: var(--text-4xl);
  }

  .modules-title {
    font-size: var(--text-3xl);
  }
}

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  --warning-color: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.15s ease-in-out;
}

/* Contenedor principal */
.categorias-container {
  max-width: auto;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
}

/* Header */
.categorias-header {
  text-align: center;
  margin-bottom: 3rem;
}

.categorias-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.title-icon {
  font-size: 2.25rem;
}

.categorias-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0;
}

/* Mensajes de error */
.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.error-icon {
  font-size: 1.25rem;
}

/* Layout principal */
.categorias-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Secciones */
.form-section-cate,
.list-section {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.section-title-cate {
 font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Formulario */
.form-section-cate {
  padding: 2rem;
  position: sticky;
  top: 2rem;
}

.categoria-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-categorias {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-input:disabled,
.form-textarea:disabled {
  background-color: var(--gray-50);
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Selector de iconos */
.icono-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iconos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.icono-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  background-color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.icono-option:hover:not(:disabled) {
  border-color: var(--primary-color);
  background-color: var(--gray-50);
}

.icono-option.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
}

.icono-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.icono-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--gray-50);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Acciones del formulario */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: linear-gradient(135deg, #1db178, #157a58);
  color: var(--white);
  flex: 1;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--gray-300);
}

.btn-edit {
  background-color: var(--warning-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-edit:hover:not(:disabled) {
  background-color: #d97706;
  transform: translateY(-1px);
}

.btn-delete {
  background-color: var(--danger-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-delete:hover:not(:disabled) {
  background-color: var(--danger-hover);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1rem;
}

/* Lista de categorías */
.list-section {
  padding: 0;
}

.list-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Búsqueda */
.search-container {
  position: relative;
  max-width: 300px;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}

/* Grid de categorías */
.categorias-grid {
  padding: 1.5rem 2rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Tarjetas de categoría */
.categoria-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.categoria-card:hover {
  border-color:#059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.categoria-icono {
  background: var(--gray-50);
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-color);
}

.categoria-info {
  flex: 1;
  min-width: 0;
}

.categoria-nombre {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
  word-wrap: break-word;
}

.categoria-descripcion {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Estados de carga y vacío */
.loading-state,
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-500);
}

.loading-state p,
.empty-state h3,
.empty-state p {
  margin: 0.5rem 0;
}

.empty-state h3 {
  color: var(--gray-700);
  font-size: 1.25rem;
  font-weight: 600;
}

.empty-icon {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

/* Spinner de carga */
.loading-spinner {
  animation: spin 1s linear infinite;
}

.loading-spinner-large {
  animation: spin 1s linear infinite;
  color: var(--primary-color);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .categorias-container {
    padding: 1rem;
  }
  
  .categorias-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .categorias-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-section-cate {
    position: static;
  }
  
  .list-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .categorias-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .card-actions {
    justify-content: stretch;
  }
  
  .card-actions .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .categorias-container {
    padding: 0.5rem;
  }
  
  .form-section-cate,
  .list-section {
    margin: 0;
    border-radius: var(--border-radius);
  }
  
  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .categoria-icono {
    align-self: center;
  }
}

/* Animaciones adicionales */
.categoria-card {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras de accesibilidad */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.search-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Selección de texto */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}


/*TOAST*/
/*Toast de confirmación*/
.toast-confirm-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-confirm-text {
  font-size: 16px;
  font-weight: 500;
}

.toast-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Estilo base para botones */
.btn-confirm {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-confirm:hover {
  transform: scale(1.05);
}

/* Botón rojo */
.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Botón verde */
.btn-success {
  background: #065f46;
  color: #fff;
}

.btn-success:hover {
  background: #064e3b;
}
/* Contenedor principal */
.modulos-detalle {
  max-width: auto;
  margin: 32px auto;
  padding: 32px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Estados de carga y error */
.modulos-loading,
.modulos-error {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: #065f46;
}

.modulos-error {
  color: #dc2626;
}

/* Tarjeta principal del curso */
.modulos-curso-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(60, 60, 90, 0.1);
  margin-bottom: 32px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  border: 1px solid #e5e7eb;
}

.modulos-curso-card:hover {
  box-shadow: 0 8px 32px rgba(60, 60, 90, 0.18);
}

/* Header de la tarjeta */
.modulos-curso-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Imagen del curso */
.modulos-curso-imagen {
  width: 450px;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(60, 60, 90, 0.18);
  border: 3px solid #e0f2fe;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #f1f5f9;
}

.modulos-curso-imagen:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(60, 60, 90, 0.22);
}

/* Info del curso */
.modulos-curso-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modulos-curso-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.modulos-curso-descripcion-corta {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 2px;
  font-weight: 500;
}

.modulos-curso-descripcion {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 6px;
}

.modulos-curso-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.92rem;
}

.modulos-curso-meta span {
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  color: #1db178; /* texto en color principal */
  background: #e0f7f0; /* fondo suave */
  border-radius: 10px;
  padding: 4px 10px;
  font-weight: 500;
  border: 1px solid #1db178; /* borde del mismo color */
  transition: all 0.2s ease-in-out;
  cursor: default;
}

.modulos-curso-meta span svg {
  margin-right: 6px;
  vertical-align: middle;
}

.modulos-curso-meta span:hover {
  background: #c7f0df; /* hover más visible */
}

/* Card de gestión de módulos */
.modulos-gestion-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Botones de acción superiores */
.modulos-acciones {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.modulos-btn-agregar-modulo,
.modulos-btn-agregar-video {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.modulos-btn-agregar-video {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.modulos-btn-agregar-modulo:hover,
.modulos-btn-agregar-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.modulos-btn-agregar-video:hover {
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.4);
}

/* Lista de módulos */
.modulos-lista-container {
  margin-top: 24px;
}

.modulos-lista-titulo {
  border-bottom: 3px solid #bbf7d0;
  padding-bottom: 12px;
  margin-bottom: 24px;
  color: #065f46;
  font-size: 1.4rem;
  font-weight: bold;
}

.modulos-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Items de módulos */
.modulos-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modulos-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.modulos-item:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.12);
  transform: translateY(-2px);
}

.modulos-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.modulos-item-info {
  flex: 1;
}

.modulos-item-titulo {
  margin: 0 0 8px 0;
  color: #047857;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.3;
}

.modulos-item-descripcion {
  margin: 0;
  font-size: 15px;
  color: #374151;
  line-height: 1.4;
}

.modulos-item-acciones {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.modulos-btn-editar {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modulos-btn-editar:hover {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  transform: scale(1.05);
}

.modulos-btn-eliminar {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modulos-btn-eliminar:hover {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  transform: scale(1.05);
}

/* Lista de videos */
.modulos-videos-lista {
  margin-top: 16px;
  padding-left: 20px;
  border-left: 2px solid #e5e7eb;
  position: relative;
}

.modulos-videos-lista::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #fff;
}

.modulos-video-item {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.modulos-video-item:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  transform: translateX(4px);
}

.modulos-video-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modulos-video-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modulos-video-titulo {
  font-weight: 600;
  color: #0c4a6e;
  font-size: 15px;
}

.modulos-video-duracion {
  font-size: 13px;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
}

.modulos-video-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modulos-video-preview {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid #fbbf24;
}

.modulos-video-orden {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.modulos-video-acciones {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.modulos-video-vacio {
  background: none;
  border: 2px dashed #d1d5db;
  color: #6b7280;
  font-size: 14px;
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  font-style: italic;
}

/* Modales */
.modulos-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end; /* baja el modal hacia abajo */
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding-bottom: 2rem; /* margen desde el fondo */
}

.modulos-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modulos-modal-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
  padding: 20px 24px;
  border-bottom: 2px solid #bbf7d0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modulos-modal-header h3 {
  margin: 0;
  color: #065f46;
  font-size: 1.3rem;
  font-weight: bold;
}

.modulos-modal-cerrar {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modulos-modal-cerrar:hover {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
}

.modulos-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.modulos-form-group-horizontal {
  display: flex;
  align-items: center; /* centra verticalmente */
  gap: 16px; /* espacio entre elementos */
}

.modulos-form-group-horizontal > div {
  flex: 1; /* hace que los elementos ocupen el mismo espacio disponible */
}
.modulos-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.modulos-form-input,
.modulos-form-textarea,
.modulos-form-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
}

.modulos-form-input:focus,
.modulos-form-textarea:focus,
.modulos-form-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modulos-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.modulos-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modulos-form-checkbox label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.modulos-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
}

.modulos-modal-footer {
  background: #f9fafb;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modulos-btn-cancelar {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modulos-btn-cancelar:hover {
  background: #e5e7eb;
}

.modulos-btn-guardar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.modulos-btn-guardar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Scrollbar personalizada para modales */
.modulos-modal-body::-webkit-scrollbar {
  width: 6px;
}

.modulos-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modulos-modal-body::-webkit-scrollbar-thumb {
  background: #bbf7d0;
  border-radius: 3px;
}

.modulos-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a7f3d0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modulos-detalle {
    margin: 16px;
    padding: 16px;
  }

  .modulos-curso-header {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .modulos-curso-imagen {
    width: 100%;
    max-width: 340px;
    height: 200px;
    margin-bottom: 12px;
  }

  .modulos-curso-titulo {
    font-size: 1.1rem;
    text-align: center;
  }

  .modulos-curso-descripcion-corta {
    font-size: 0.95rem;
    text-align: center;
  }

  .modulos-curso-descripcion {
    font-size: 0.9rem;
  }

  .modulos-curso-meta,
  .modulos-curso-meta span {
    font-size: 0.9rem;
  }

  .modulos-acciones {
    flex-direction: column;
    gap: 12px;
  }

  .modulos-btn-agregar-modulo,
  .modulos-btn-agregar-video {
    width: 100%;
    justify-content: center;
  }

  .modulos-item-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .modulos-item-acciones {
    align-self: flex-end;
  }

  .modulos-video-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .modulos-video-meta {
    flex-wrap: wrap;
  }

  .modulos-modal {
    width: 95%;
    margin: 20px;
  }

  .modulos-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modulos-btn-cancelar,
  .modulos-btn-guardar {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modulos-curso-meta {
    flex-direction: column;
    gap: 8px;
  }

  .modulos-curso-meta span {
    text-align: center;
  }

  .modulos-videos-lista {
    padding-left: 12px;
  }

  .modulos-video-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .modulos-video-acciones {
    align-self: flex-end;
  }
}

/* Estados de carga dentro de componentes */
.modulos-video-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.modulos-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animaciones adicionales */
.modulos-item {
  animation: fadeInUp 0.5s ease forwards;
}

.modulos-video-item {
  animation: fadeInLeft 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estados especiales */
.modulos-item.destacado::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modulos-video-item.preview {
  border-left: 4px solid #f59e0b;
}

/* Tooltips para botones */
.modulos-btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Espacio entre ícono y texto */
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease,
    box-shadow 0.25s ease;
}

.modulos-btn-volver:hover {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #111827;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modulos-btn-volver:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.modulos-btn-subir-video {
  display: flex;
  align-items: center;
  background: #e0f2fe;
  color: #0369a1;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modulos-btn-subir-video:hover {
  background: #bae6fd;
  color: #0c4a6e;
}
.modulos-form-group label[for="video-upload"] {
  background-color: #0c4a6e; /* morado tipo Tailwind indigo-600 */
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.modulos-form-input-upload {
  display: none; /* ocultamos el input original */
}
/*Toast de confirmación*/
.toast-confirm-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-confirm-text {
  font-size: 16px;
  font-weight: 500;
}

.toast-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Estilo base para botones */
.btn-confirm {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-confirm:hover {
  transform: scale(1.05);
}

/* Botón rojo */
.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Botón verde */
.btn-success {
  background: #065f46;
  color: #fff;
}

.btn-success:hover {
  background: #064e3b;
}
.modulos-form-group label[for="archivo-upload"] {
  background-color: #0c4a6e; /* morado tipo Tailwind indigo-600 */
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
/* cursos.css */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  --warning-color: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.15s ease-in-out;
}
.cursos-container {
max-width: auto;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);;
}

/* Header */
.cursos-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.cursos-title {
 font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.title-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cursos-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0;
}

/* Error Message */
.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.error-icon {
  flex-shrink: 0;
}

/* Content Layout */
.cursos-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

/* Form Section */
.form-section-cur {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.section-title-cur {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.curso-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group-curad {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-curad {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  color: #1f2937;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color:linear-gradient(135deg, #1db178, #157a58);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
  color: #374151;
}

.btn-outline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-outline:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-edit {
  background: #10b981;
  color: white;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.btn-edit:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}
.btn-admin{
  background: #3b82f6;
  color: white;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}
.btn-delete {
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.btn-delete:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-icon {
  flex-shrink: 0;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* List Section */
.list-section-curad{
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.list-header-curad {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.filters-container-curad {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-container-curad {
  position: relative;
  max-width: 300px;
}

.search-input-curad {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9rem;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: center;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  color: #374151;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* States */
.loading-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner-large {
  animation: spin 1s linear infinite;
  color: #667eea;
  margin-bottom: 1rem;
}

.empty-icon {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  color: #6b7280;
  margin: 0;
}

/* Cursos Grid */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.curso-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.curso-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.curso-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.curso-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-nivel {
  background: #10b981;
}

.badge-estado {
  background: #6b7280;
}

.curso-descripcion {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.curso-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.card-actions-curad {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cursos-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-section-cur {
    position: static;
  }
}

@media (max-width: 768px) {
  .cursos-container {
    padding: 1rem;
  }
  
  .cursos-title {
    flex-direction: column;
    font-size: 2rem;
  }
  
  .cursos-subtitle {
    font-size: 1rem;
  }
  
  .form-section-cur,
  .list-section {
    border-radius: 12px;
  }
  
  .form-section-cur {
    padding: 1.5rem;
  }
  
  .list-header {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cursos-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    max-width: none;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .curso-card {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .cursos-container {
    padding: 0.5rem;
  }
  
  .cursos-title {
    font-size: 1.5rem;
  }
  
  .form-section-cur,
  .list-header {
    padding: 1rem;
  }
  
  .cursos-grid {
    padding: 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-actions {
    padding: 0.75rem 1rem;
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
  }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.curso-card {
  animation: fadeIn 0.5s ease-out;
}

/* Scroll behavior */
.cursos-container {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.search-input:focus,
.filter-select:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .cursos-container {
    background: white;
    box-shadow: none;
  }
  
  .form-section-cur {
    display: none;
  }
  
  .cursos-content {
    grid-template-columns: 1fr;
  }
  
  .card-actions {
    display: none;
  }
  
  .curso-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}
/* boton para subir videos */
/* Container principal del componente */
.upload-video-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.upload-video-container:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

/* Input de archivo oculto */
.file-input {
  display: none;
}

/* Etiqueta personalizada para el input */

.hidden-input {
  display: none; /* Ocultamos el input original */
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1d6eb1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.file-input-label:hover {
  background: linear-gradient(135deg, #1d6eb1 0%, #0b4575 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.file-input-label:active {
  transform: scale(0.97);
}

.file-input-label.disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.file-input-label.disabled:hover {
  background: #94a3b8;
  transform: none;
}

/* Información del archivo seleccionado */
.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.file-size {
  font-size: 12px;
  color: #64748b;
}

/* Botón para limpiar archivo */
.clear-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.clear-button:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Barra de progreso */
.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  min-width: 35px;
  text-align: right;
}
.progress-handle {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

/* Mensajes de estado */
.upload-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.upload-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.upload-message.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Botón principal de subida */
.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.upload-button:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.upload-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.upload-button.uploading {
  background: #f59e0b;
}

.upload-button.uploading:disabled {
  background: #f59e0b;
}

.upload-button.success {
  background: #10b981;
}

.upload-button.success:disabled {
  background: #10b981;
}

/* Animación de spinner */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Texto de ayuda */
.upload-help {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

.upload-help p {
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .upload-video-container {
    padding: 12px;
  }
  
  .file-input-label {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .upload-button {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .file-info {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .clear-button {
    align-self: flex-end;
  }
}
/*TOAST*/
/*Toast de confirmación*/
.toast-confirm-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-confirm-text {
  font-size: 16px;
  font-weight: 500;
}

.toast-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Estilo base para botones */
.btn-confirm {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-confirm:hover {
  transform: scale(1.05);
}

/* Botón rojo */
.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Botón verde */
.btn-success {
  background: #065f46;
  color: #fff;
}

.btn-success:hover {
  background: #064e3b;
}
/* Variables de tema */
:root {
  --header-bg-light: rgba(255, 255, 255, 0.7); /* Blanco translúcido moderno */
  --header-bg-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #13161c 100%);
  
  --header-text-light: #111; /* Texto oscuro para contraste */
  --header-text-dark: #ffffff;

  --dropdown-bg-light: rgba(255, 255, 255, 0.9); /* Fondo semitransparente */
  --dropdown-bg-dark: rgba(30, 30, 30, 0.95);

  --dropdown-text-light: #333;
  --dropdown-text-dark: #ffffff;

  --dropdown-border-light: rgba(0, 0, 0, 0.1); /* Bordes sutiles en modo claro */
  --dropdown-border-dark: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --header-bg: var(--header-bg-light);
  --header-text: var(--header-text-light);
  --dropdown-bg: var(--dropdown-bg-light);
  --dropdown-text: var(--dropdown-text-light);
  --dropdown-border: var(--dropdown-border-light);
}

[data-theme="dark"] {
  --header-bg: var(--header-bg-dark);
  --header-text: var(--header-text-dark);
  --dropdown-bg: var(--dropdown-bg-dark);
  --dropdown-text: var(--dropdown-text-dark);
  --dropdown-border: var(--dropdown-border-dark);
}
.header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(29, 177, 120, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Z-index muy alto para estar encima de todo */
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.6s ease-out;
}

[data-theme="dark"] .header {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(29, 177, 120, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

[data-theme="dark"] .header.scrolled {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.header-container {
  max-width: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  color: #a2e4cc;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
  font-size: 1.25rem;
   width: 40px; /* aumentado desde 120px */
  height: auto; /* mantiene la proporción */
}

.logo:hover .logo-icon {
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

.logo h1 {
  color: var(--header-text);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.25rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-list {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #a2e4cc;
}

.nav-link.active {
  background: linear-gradient(135deg, #038052 0%, #353333 100%);
  color: #ffffff;
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(162, 228, 204, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1) inset;
}

.nav-icon {
  display: none;
  font-size: 0.9rem;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botón de cambio de tema */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--header-text);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification-container {
  position: relative;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--header-text);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .notification-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .notification-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.15rem 0.4rem;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
  animation: pulse 2s infinite;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--dropdown-border);
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000; /* Z-index más alto que el header */
}

.notification-container:hover .notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .notification-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header h3 {
  margin: 0;
  color: var(--dropdown-text);
  font-size: 0.9rem;
  font-weight: 600;
}

[data-theme="dark"] .notification-header h3 {
  color: #ffffff;
}
.notification-empty{
  text-align: center;
  color: #929292;
}
.notification-count {
  background: #1db178;
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  font-weight: 600;
}

.notification-list {
  max-height: 280px;
  overflow-y: auto;
}

.notification-item {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

[data-theme="dark"] .notification-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item:hover {
  background-color: rgba(29, 177, 120, 0.05);
}
.notification-content h4{
  color: var(--dropdown-text);
}
.notification-content p {
  margin: 0 0 0.4rem 0;
  color: var(--dropdown-text);
  font-size: 0.85rem;
}

.notification-time {
  color: var(--dropdown-text);
  opacity: 0.7;
  font-size: 0.75rem;
}

.notification-footer {
  padding: 0.75rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .notification-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-all-btn {
  background: none;
  border: none;
  color: #1db178;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.user-profile-container {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .user-profile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .user-profile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #a2e4cc;
  background: linear-gradient(135deg, #a2e4cc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #157a58;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(162, 228, 204, 0.3);
  transition: all 0.3s ease;
}

.username {
  color: var(--header-text);
  font-weight: 600;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-chevron {
  transition: transform 0.3s ease;
  color: #a2e4cc;
  font-size: 0.8rem;
}

.profile-chevron.rotated {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--dropdown-border);
  width: 260px;
  z-index: 10000; /* Z-index más alto que el header */
  animation: dropdownSlide 0.3s ease;
}

.profile-info {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[data-theme="dark"] .profile-info {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-large {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #1db178;
  background: linear-gradient(135deg, #a2e4cc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #157a58;
  font-size: 0.9rem;
}

.profile-details h4 {
  margin: 0;
  color: var(--dropdown-text);
  font-size: 0.9rem;
  font-weight: 600;
}

[data-theme="dark"] .profile-details h4 {
  color: #ffffff;
}

.profile-details p {
  margin: 0.2rem 0 0 0;
  color: var(--dropdown-text);
  opacity: 0.7;
  font-size: 0.8rem;
}

.profile-menu {
  padding: 0.4rem;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  color: var(--dropdown-text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: rgba(29, 177, 120, 0.1);
  color: #1db178;
}

.profile-menu-item.logout {
  color: #e74c3c;
}

.profile-menu-item.logout:hover {
  background: rgba(231, 76, 60, 0.1);
}

.profile-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0.4rem 0;
}

[data-theme="dark"] .profile-divider {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  color: var(--header-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}



.hamburger {
  position: relative;
  width: 20px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Animación de X centrada */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
  position: absolute;
  top: 50%;
  left: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 0;
  transform: rotate(-45deg);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1.25rem;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .logo-icon {
    font-size: 1.1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(29, 177, 120, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9998; /* Un poco menos que el header pero más que el contenido */
  }

  [data-theme="dark"] .nav {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.5rem;
    background: none;
    border: none;
    border-radius: 0;
  }

  .nav-link {
    padding: 1rem 1.25rem;
    text-align: center;
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
  }

  [data-theme="dark"] .nav-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-icon {
    display: block;
    font-size: 0.85rem;
  }

  .username {
    display: none;
  }

  .user-actions {
    gap: 0.75rem;
  }

  .user-profile {
    padding: 0.4rem;
    gap: 0;
  }

  .profile-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .profile-chevron {
    display: none;
  }

  .notification-btn,
  .theme-toggle-btn {
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  /* Ajustar dropdowns en móvil */
  .notification-dropdown,
  .profile-dropdown {
    width: 280px;
    right: -10px;
  }
}

.notification-item {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--border-color, #ddd);
  cursor: pointer;
}

.notification-item.read {
  opacity: 0.6;
}

.notification-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #888;
}

.notification-delete-btn:hover {
  color: red;
}

:root {
  --footer-bg-light: rgba(255, 255, 255, 0.7);
  --footer-bg-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);

  --footer-text-primary-light: #1a202c;
  --footer-text-primary-dark: #ffffff;
  --footer-text-secondary-light: #4a5568;
  --footer-text-secondary-dark: #a0aec0;

  --footer-accent-light: #1db178;
  --footer-accent-dark: #48bb78;
  --footer-accent-hover-light: #0d8050;
  --footer-accent-hover-dark: #68d391;

  --footer-bottom-bg-light: rgba(255, 255, 255, 0.4);
  --footer-bottom-bg-dark: rgba(0, 0, 0, 0.4);

  --footer-border-light: rgba(255, 255, 255, 0.3);
  --footer-border-dark: rgba(104, 211, 145, 0.1);

  --social-bg-light: rgba(255, 255, 255, 0.25);
  --social-bg-dark: rgba(72, 187, 120, 0.1);
  --social-border-light: rgba(255, 255, 255, 0.35);
  --social-border-dark: rgba(104, 211, 145, 0.2);

  --backdrop-blur: blur(12px);
}

[data-theme="light"] {
  --footer-bg: var(--footer-bg-light);
  --footer-text-primary: var(--footer-text-primary-light);
  --footer-text-secondary: var(--footer-text-secondary-light);
  --footer-accent: var(--footer-accent-light);
  --footer-accent-hover: var(--footer-accent-hover-light);
  --footer-bottom-bg: var(--footer-bottom-bg-light);
  --footer-border: var(--footer-border-light);
  --social-bg: var(--social-bg-light);
  --social-border: var(--social-border-light);
}

[data-theme="dark"] {
  --footer-bg: var(--footer-bg-dark);
  --footer-text-primary: var(--footer-text-primary-dark);
  --footer-text-secondary: var(--footer-text-secondary-dark);
  --footer-accent: var(--footer-accent-dark);
  --footer-accent-hover: var(--footer-accent-hover-dark);
  --footer-bottom-bg: var(--footer-bottom-bg-dark);
  --footer-border: var(--footer-border-dark);
  --social-bg: var(--social-bg-dark);
  --social-border: var(--social-border-dark);
}


.footer {
  background: var(--footer-bg);
  color: var(--footer-text-primary);
  margin-top: auto;
  transition: all 0.3s ease;
  position: relative;
  
}

[data-theme="dark"] .footer {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
  padding: 2rem 0;
}

.footer-container {
  max-width: auto;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.footer-section h3, 
.footer-section h4 {
  color: var(--footer-text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-section h3 {
  font-size: 1.3rem;
  color: var(--footer-accent);
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-1px);
}
.footer-logo h3{
  color: var(--footer-text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.footer-logo h3:hover {
  color: var(--footer-accent-hover);
}
.footer-logo-icon {
  color: var(--footer-accent);
  transition: all 0.3s ease;
     width: 40px;
  height: auto;
}

.footer-logo:hover .footer-logo-icon {
  color: var(--footer-accent-hover);
  transform: rotate(5deg) scale(1.05);
}

.footer-description {
  color: var(--footer-text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.2rem 0;
  position: relative;
}

.footer-links a:hover {
  color: var(--footer-accent-hover);
  transform: translateX(4px);
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--footer-accent);
  transition: width 0.3s ease;
}

.footer-links a:hover::before {
  width: 4px;
}

.contact-info {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--footer-text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  border-radius: 4px;
}

.contact-item:hover {
  color: var(--footer-accent-hover);
  background: rgba(var(--footer-accent), 0.05);
  transform: translateX(2px);
}

.contact-item svg {
  color: var(--footer-accent-hover);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover svg {
  color: var(--footer-accent);
  transform: scale(1.1);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--social-bg);
  border-radius: 50%;
  color: var(--footer-accent-hover);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--social-border);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--footer-accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--footer-accent), 0.4);
  border-color: var(--footer-accent);
}

[data-theme="dark"] .social-link:hover {
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.footer-bottom {
  background-color: var(--footer-bottom-bg);
  padding: 1rem 0;
  border-top: 1px solid var(--footer-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom-content p {
  color: var(--footer-text-secondary);
  margin: 0;
  transition: color 0.3s ease;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  position: relative;
}

.footer-bottom-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--footer-accent);
  transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--footer-accent-hover);
  background: rgba(var(--footer-accent), 0.05);
}

.footer-bottom-links a:hover::after {
  width: 100%;
}

.footer {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .footer-content {
    padding: 1.5rem 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }

  .footer-section h4 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .footer-container {
    padding: 0 0.75rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 28px;
    height: 28px;
  }
}

@media (hover: none) {
  .footer-links a:hover,
  .contact-item:hover,
  .social-link:hover,
  .footer-bottom-links a:hover {
    transform: none;
  }
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}.header-spacer {
          height: 70px; /* Ajusta según la altura real de tu header */
          min-height: 70px;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
          .header-spacer {
            height: 70px; /* Altura menor en móviles */
            min-height: 70px;
          }
        }
        
        @media (max-width: 480px) {
          .header-spacer {
            height: 65px; /* Altura aún menor en pantallas muy pequeñas */
            min-height: 65px;
          }
        }
        
        /* Asegura que el main tenga scroll suave */
        main {
          scroll-behavior: smooth;
          position: relative;
          z-index: 1;
        }
        
        /* Previene el layout shift durante la carga */
        .flex-col {
          scroll-behavior: smooth;
        }
        
        /* Opcional: Añade padding superior al main como alternativa */
        /* main {
          padding-top: 80px;
        }
/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: #059669;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.period-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.period-select {
  padding: 10px 15px;
  border: 2px solid #a2e4cc;
  border-radius: 8px;
  background-color: white;
  color: #157a58;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.period-select:hover {
  border-color: #1db178;
  box-shadow: 0 2px 8px rgba(29, 177, 120, 0.2);
}

.period-select:focus {
  outline: none;
  border-color: #1db178;
  box-shadow: 0 0 0 3px rgba(29, 177, 120, 0.1);
}

/* Grid de estadísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-content h3 {
  color: #157a58;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-value .value {
  font-size: 2rem;
  font-weight: 700;
  color: #157a58;
}

.stat-value .change {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-value .change.positive {
  background-color: #a2e4cc;
  color: #157a58;
}

/* Filas de gráficos */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.charts-row:last-of-type {
  grid-template-columns: 1fr 1fr;
}

.chart-container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-container.large {
  grid-column: span 1;
}

.chart-container h2 {
  color: #157a58;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Estudiantes recientes */
.recent-students {
  max-height: 300px;
  overflow-y: auto;
}

.student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #a2e4cc;
}

.student-item:last-child {
  border-bottom: none;
}

.student-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.student-name {
  font-weight: 600;
  color: #157a58;
}

.student-course {
  font-size: 0.8rem;
  color: #1d6eb1;
}

.student-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin: 0 15px;
}

.progress-bar-dash {
  flex: 1;
  height: 8px;
  background-color: #a2e4cc;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-weight: 600;
  color: #157a58;
  min-width: 35px;
  font-size: 0.9rem;
}

.student-date {
  font-size: 0.8rem;
  color: #666;
  min-width: 80px;
  text-align: right;
}

/* Footer */
.dashboard-footer {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #157a58;
  font-weight: 500;
}

.footer-stat svg {
  color: #1db178;
}

/* Responsive */
@media (max-width: 1200px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
  
  .chart-container.large {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .dashboard {
    padding: 15px;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-value .value {
    font-size: 1.5rem;
  }
  
  .chart-container {
    padding: 20px;
  }
  
  .student-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .student-progress {
    width: 100%;
    margin: 0;
  }
  
  .footer-stats {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .dashboard-header h1 {
    font-size: 1.2rem;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
  }
}

/* Personalización de scrollbar */
.recent-students::-webkit-scrollbar {
  width: 6px;
}

.recent-students::-webkit-scrollbar-track {
  background: #f8f8f8;
  border-radius: 3px;
}

.recent-students::-webkit-scrollbar-thumb {
  background: #a2e4cc;
  border-radius: 3px;
}

.recent-students::-webkit-scrollbar-thumb:hover {
  background: #1db178;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.chart-container {
  animation: fadeIn 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }/* Contenedor principal */
.recuperar-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Wrapper principal */
.recuperar-wrapper {
  display: flex;
  width: 100%;
  max-width: 700px;
  min-height: 350px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* === COLUMNA IZQUIERDA === */
.recuperar-left {
  flex: 1;
  background: linear-gradient(135deg, #1db178 0%, #16a085 50%, #0ea589 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos */
.recuperar-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.recuperar-circle-1 {
  width: 60px;
  height: 60px;
  top: -30px;
  right: -30px;
}

.recuperar-circle-2 {
  width: 45px;
  height: 45px;
  bottom: -22px;
  left: -22px;
}

/* Contenido de bienvenida */
.recuperar-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 400px;
}

/* Logo */
.recuperar-logo-image {
  width: 150px;
  height: auto;
  animation: recuperar-float 3s ease-in-out infinite;
  transition: transform 0.4s ease;
  border-radius: 5px;
}

.recuperar-logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes recuperar-float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Títulos */
.recuperar-left h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.recuperar-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Features */
.recuperar-features {
  margin-top: 0.75rem;
}

.recuperar-features-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.recuperar-features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.recuperar-feature-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* === COLUMNA DERECHA === */
.recuperar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.recuperar-form-container {
  width: 100%;
  max-width: 280px;
}

/* Header del formulario */
.recuperar-form-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.recuperar-form-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.recuperar-form-header p {
  font-size: 0.8rem;
  color: #64748b;
}

/* Formulario */
.recuperar-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Grupos de input */
.recuperar-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recuperar-input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Wrapper de input */
.recuperar-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.recuperar-input-icon {
  position: absolute;
  left: 0.625rem;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  z-index: 1;
}

/* Inputs */
.recuperar-input-wrapper input {
  width: 100%;
  padding: 0.625rem 0.625rem 0.625rem 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.recuperar-input-wrapper input:hover {
  background: white;
  border-color: #d1d5db;
}

.recuperar-input-wrapper input:focus {
  outline: none;
  background: white;
  border-color: #1db178;
  box-shadow: 0 0 0 3px rgba(29, 177, 120, 0.1);
}

.recuperar-input-wrapper input::placeholder {
  color: #9ca3af;
}

.recuperar-input-wrapper input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Botón de recuperar */
.recuperar-button {
  width: 100%;
  background: linear-gradient(135deg, #1db178 0%, #16a085 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 3px 10px 0 rgba(29, 177, 120, 0.4);
}

.recuperar-button:hover:not(.recuperar-loading) {
  background: linear-gradient(135deg, #16a085 0%, #0ea589 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(29, 177, 120, 0.5);
}

.recuperar-button:active:not(.recuperar-loading) {
  transform: translateY(0);
}

.recuperar-button.recuperar-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.recuperar-button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.recuperar-button:hover:not(.recuperar-loading) .recuperar-button-arrow {
  transform: translateX(2px);
}

/* Spinner de carga */
.recuperar-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: recuperar-spin 1s linear infinite;
}

@keyframes recuperar-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Link de login */
.recuperar-login-link {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.recuperar-login-link p {
  color: #64748b;
  font-size: 0.75rem;
}

.recuperar-login-link a {
  color: #1db178;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.recuperar-login-link a:hover {
  color: #16a085;
}

/* Mensaje de éxito */
.recuperar-success {
  text-align: center;
  padding: 1rem 0;
}

.recuperar-success-icon {
  width: 48px;
  height: 48px;
  color: #1db178;
  margin-bottom: 1rem;
}

.recuperar-success h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.recuperar-success p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.recuperar-back-button {
  background: transparent;
  color: #1db178;
  border: 1px solid #1db178;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recuperar-back-button:hover {
  background: #1db178;
  color: white;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 1024px) {
  .recuperar-wrapper {
    max-width: 600px;
  }
  
  .recuperar-left, .recuperar-right {
    padding: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .recuperar-container {
    padding: 0.5rem;
  }
  
  .recuperar-wrapper {
    flex-direction: column;
    min-height: auto;
    border-radius: 12px;
  }
  
  .recuperar-left {
    padding: 1.25rem 1rem;
    min-height: 160px;
  }
  
  .recuperar-right {
    padding: 1.25rem 1rem;
  }
  
  .recuperar-form-header {
    text-align: center;
  }
  
  .recuperar-circle-1 {
    width: 45px;
    height: 45px;
    top: -22px;
    right: -22px;
  }
  
  .recuperar-circle-2 {
    width: 30px;
    height: 30px;
    bottom: -15px;
    left: -15px;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .recuperar-left, .recuperar-right {
    padding: 1rem 0.75rem;
  }
  
  .recuperar-input-wrapper input {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
  }
  
  .recuperar-input-icon {
    left: 0.5rem;
    width: 14px;
    height: 14px;
  }
}

/* Animaciones adicionales */
.recuperar-wrapper {
  animation: recuperar-fadeInUp 0.6s ease;
}

@keyframes recuperar-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}/* Contenedor principal */
.restablecer-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Wrapper principal */
.restablecer-wrapper {
  display: flex;
  width: 100%;
  max-width: 700px;
  min-height: 350px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* === COLUMNA IZQUIERDA === */
.restablecer-left {
  flex: 1;
  background: linear-gradient(135deg, #1db178 0%, #16a085 50%, #0ea589 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos */
.restablecer-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.circle-1 {
  width: 60px;
  height: 60px;
  top: -30px;
  right: -30px;
}

.circle-2 {
  width: 45px;
  height: 45px;
  bottom: -22px;
  left: -22px;
}

/* Contenido de bienvenida */
.restablecer-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 400px;
}

/* Logo */
.restablecer-logo-image {
  width: 150px;
  height: auto;
  animation: restablecer-float 3s ease-in-out infinite;
  transition: transform 0.4s ease;
  border-radius: 5px;
}

.restablecer-logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes restablecer-float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Títulos */
.restablecer-left h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.restablecer-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Features */
.restablecer-features {
  margin-top: 0.75rem;
}

.restablecer-features-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.restablecer-features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.restablecer-feature-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* === COLUMNA DERECHA === */
.restablecer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.restablecer-form-container {
  width: 100%;
  max-width: 280px;
}

/* Header del formulario */
.restablecer-form-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.restablecer-form-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.restablecer-form-header p {
  font-size: 0.8rem;
  color: #64748b;
}

/* Formulario */
.restablecer-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Grupos de input */
.restablecer-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.restablecer-input-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Wrapper de input */
.restablecer-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.restablecer-input-icon {
  position: absolute;
  left: 0.625rem;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  z-index: 1;
}

/* Inputs */
.restablecer-input-wrapper input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.restablecer-input-wrapper input:hover {
  background: white;
  border-color: #d1d5db;
}

.restablecer-input-wrapper input:focus {
  outline: none;
  background: white;
  border-color: #1db178;
  box-shadow: 0 0 0 3px rgba(29, 177, 120, 0.1);
}

.restablecer-input-wrapper input::placeholder {
  color: #9ca3af;
}

.restablecer-input-wrapper input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Botón de mostrar contraseña */
.restablecer-password-toggle {
  position: absolute;
  right: 0.625rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restablecer-password-toggle:hover {
  color: #6b7280;
}

.restablecer-password-toggle svg {
  width: 16px;
  height: 16px;
}

/* Botón de restablecer */
.restablecer-button {
  width: 100%;
  background: linear-gradient(135deg, #1db178 0%, #16a085 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 3px 10px 0 rgba(29, 177, 120, 0.4);
}

.restablecer-button:hover:not(.restablecer-loading) {
  background: linear-gradient(135deg, #16a085 0%, #0ea589 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(29, 177, 120, 0.5);
}

.restablecer-button:active:not(.restablecer-loading) {
  transform: translateY(0);
}

.restablecer-button.restablecer-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.restablecer-button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.restablecer-button:hover:not(.restablecer-loading) .restablecer-button-arrow {
  transform: translateX(2px);
}

/* Spinner de carga */
.restablecer-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: restablecer-spin 1s linear infinite;
}

@keyframes restablecer-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Link de login */
.restablecer-login-link {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.restablecer-login-link p {
  color: #64748b;
  font-size: 0.75rem;
}

.restablecer-login-link a {
  color: #1db178;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.restablecer-login-link a:hover {
  color: #16a085;
}

/* Mensaje de éxito */
.restablecer-success {
  text-align: center;
  padding: 1rem 0;
}

.restablecer-success-icon {
  width: 48px;
  height: 48px;
  color: #1db178;
  margin-bottom: 1rem;
}

.restablecer-success h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.restablecer-success p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.restablecer-login-button {
  width: 100%;
  background: linear-gradient(135deg, #1db178 0%, #16a085 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px 0 rgba(29, 177, 120, 0.4);
}

.restablecer-login-button:hover {
  background: linear-gradient(135deg, #16a085 0%, #0ea589 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(29, 177, 120, 0.5);
}

.restablecer-login-button:active {
  transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 1024px) {
  .restablecer-wrapper {
    max-width: 600px;
  }
  
  .restablecer-left, .restablecer-right {
    padding: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .restablecer-container {
    padding: 0.5rem;
  }
  
  .restablecer-wrapper {
    flex-direction: column;
    min-height: auto;
    border-radius: 12px;
  }
  
  .restablecer-left {
    padding: 1.25rem 1rem;
    min-height: 160px;
  }
  
  .restablecer-right {
    padding: 1.25rem 1rem;
  }
  
  .restablecer-form-header {
    text-align: center;
  }
  
  .circle-1 {
    width: 45px;
    height: 45px;
    top: -22px;
    right: -22px;
  }
  
  .circle-2 {
    width: 30px;
    height: 30px;
    bottom: -15px;
    left: -15px;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .restablecer-left, .restablecer-right {
    padding: 1rem 0.75rem;
  }
  
  .restablecer-input-wrapper input {
    padding: 0.5rem 2.25rem 0.5rem 2rem;
  }
  
  .restablecer-input-icon {
    left: 0.5rem;
    width: 14px;
    height: 14px;
  }
  
  .restablecer-password-toggle {
    right: 0.5rem;
  }
  
  .restablecer-password-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* Animaciones adicionales */
.restablecer-wrapper {
  animation: restablecer-fadeInUp 0.6s ease;
}

@keyframes restablecer-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}.gestor-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.title-icon-gestor {
  color: #3b82f6;
}

/* 🔹 Contenedor fila de selects */
.video-select-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;       /* todos en fila en pantallas grandes */
  gap: 1rem;
  margin: 1rem 0;
}

/* 🔹 Cada select dentro de su caja */
.video-select-container {
  flex: 1;
  max-width: 300px;
}

/* 🔹 Estilos del select */
.video-select-container select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

/* Hover */
.video-select-container select:hover {
  border-color: #6666ff;
  box-shadow: 0 3px 8px rgba(102, 102, 255, 0.2);
}

/* Focus */
.video-select-container select:focus {
  border-color: #4444ff;
  box-shadow: 0 0 0 3px rgba(102, 102, 255, 0.25);
}

/* Opciones */
.video-select-container option {
  padding: 0.5rem;
  font-size: 1rem;
}

/* 🔹 Responsive */
@media (max-width: 600px) {
  .gestor-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .video-select-row {
    flex-direction: column; /* se apilan en pantallas pequeñas */
    align-items: center;
  }

  .video-select-container {
    max-width: 100%; /* ocupa todo el ancho en móvil */
  }
}
:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary-color: #10b981;
  --secondary-hover: #059669;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --otro-color: #059669;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-vid-color: #06b6d4;

  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #334155;
  --bg-modal: rgba(15, 23, 42, 0.95);
  --bg-overlay: rgba(0, 0, 0, 0.8);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

.gestion-videos-container {
  max-width: auto;
  margin: 32px auto;
  padding: 2px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.imodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1200;
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

.imodal-container {
  margin-top: 85px;
  background: #fff;
  width: 470px;
  max-width: 92%;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: imodal-fadeIn 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
}

.imodal-header {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #1db178, #157a58);
}

.modal-icon {
  padding: 6px;
}


.imodal-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.imodal-info p {
  margin: 2px 0;
  font-size: 0.85rem;
  color: #cfcfcf;
}

.imodal-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #cfcfcf;
}

.imodal-obligatorio {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.imodal-content {
  padding: 18px;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}

.imodal-actions {
  padding: 14px 16px;
  border-top: 1px solid #eee;
}

.imodal-error {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #b91c1c;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.imodal-resultado {
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.imodal-resultado.correcta {
  background: #dcfce7;
  color: #166534;
}

.imodal-resultado.incorrecta {
  background: #fee2e2;
  color: #991b1b;
}

.imodal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.imodal-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.imodal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.imodal-btn-skip {
  background: #f3f4f6;
  color: #374151;
}

.imodal-btn-skip:hover:not(:disabled) {
  background: #e5e7eb;
}

.imodal-btn-primary {
  background: #10b981;
  color: white;
}

.imodal-btn-primary:hover:not(:disabled) {
  background: #059669;
}

@keyframes imodal-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.texto-a-completar {
  font-size: 1rem;
  line-height: 1.6;
}

.input-espacio {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0 4px;
  font-size: 0.95rem;
  min-width: 80px;
}

.palabras-guia {
  margin-top: 14px;
}

.palabras-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.palabra-guia {
  background: #f3f4f6;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: default;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -5px, 0);
  }

  70% {
    transform: translate3d(0, -3px, 0);
  }

  90% {
    transform: translate3d(0, -1px, 0);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

.video-editor-container-con {
  min-height: 100vh;
  padding: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.header-actions-con {
  display: flex;
  gap: 1rem;
}

.btn-primary-con,
.add-interaction-btn-con {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary-con::before,
.add-interaction-btn-con::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-primary-con:hover,
.add-interaction-btn-con:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-con:hover::before,
.add-interaction-btn:hover::before {
  left: 100%;
}

.btn-secondary-con {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-con:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.refresh-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.reset-btn {
  background: linear-gradient(135deg, #2a2cbd, #0f172a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.reset-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.refresh-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-small:hover {
  transform: scale(1.05);
  background: var(--bg-card);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), var(--accent-hover));
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-color), #dc2626);
}

.error-message,
.success-message {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  animation: slideInRight 0.5s ease-out;
}

.error-message {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item-con {
  text-align: center;
  padding: 1rem;
  background: #e7e7e7;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: transform var(--transition-normal);
}

.stat-item-con:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label-con {
  font-size: 0.75rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contenidos-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contenido-item-con {
  background: #e7e7e7;
  border-radius: var(--radius-lg);
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.contenido-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.contenido-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-left-width: 6px;
}

.contenido-item:hover::before {
  opacity: 1;
}

.contenido-item.inactive {
  opacity: 0.6;
  filter: grayscale(50%);
}

.contenido-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contenido-tiempo {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.contenido-titulo {
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.contenido-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #0f172a;
}

.contenido-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-section {
  background: #fffffff2;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.timeline-section h3 {
  color: #0f172a;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-container {

  position: relative;
  margin: 2rem 0;
}

.timeline-track {
  position: relative;
  height: 80px;
  background: #e7e7e7;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.progress-bar {
  position: relative;
  top: 50%;
  left: 1rem;
  right: 1rem;
  height: 6px;
  background: rgba(145, 143, 143, 0.575);
  border-radius: 3px;
  transform: translateY(-50%);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--light-green));
  border-radius: 3px;
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);

}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);

}

.progress-handle:hover {
  transform: translate(-50%, -50%) scale(1.3);
  background: var(--primary-hover);
}

.time-markers {
  position: absolute;
  top: 20px;
  left: 1rem;
  right: 1rem;
  height: 20px;
}

.time-marker {
  position: absolute;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.interactions-track {
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 100%;
}

.interaction-marker {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  border: 3px solid white;
}

.interaction-marker:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: var(--shadow-xl);
  animation: bounce 0.6s ease;
}

.interaction-marker.inactive {
  opacity: 0.5;
  filter: grayscale(70%);
}

.obligatorio-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: var(--error-color);
  border-radius: 50%;
  color: white;
  font-size: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-clickable-con {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
}

@media (max-width: 640px) {
  .timeline-clickable-con {
    position: relative;
    height: 200px;
  }
}

.timeline-help {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

.editor-overlay,
.interaction-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.3s ease-out;
}

.editor-modal {
  background: #fffffff2;
  border-radius: var(--radius-xl);
  width: 90%;
  margin-top: 80px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInRight 0.4s ease-out;

  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f3f4f6;
}

.editor-modal::-webkit-scrollbar {
  width: 8px;
}

.editor-modal::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 8px;
}

.editor-modal::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  border-radius: 8px;
  border: 2px solid #f3f4f6;
}

.editor-modal::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

.interaction-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 60%;
  max-width: 600px;
  margin-top: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInDown 0.4s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.interaction-content {
  background: #fff;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #1db178 #f0f0f0;
}


.editor-header,
.interaction-header {
  position: relative;
  background: linear-gradient(135deg, #1db178, #157a58);
  padding: 1rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  align-items: center;
  color: white;
}

.editor-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tempo-info-vid {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;

  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.interaction-info-vid h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.interaction-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.obligatorio {
  background: rgba(239, 68, 68, 0.8);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
}

.editor-content,
.interaction-content {
  background: #fffffff2;
  padding: 2rem;
}

.form-group-contenido,
.form-group-contenido-contenido {
  margin-bottom: 1.5rem;
}

.form-group-contenido label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0f172a;
}

.form-group-contenido input,
.form-group-contenido textarea,
.form-group-contenido select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: #f1f1f1f2;
  color: #1e293b;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-group-contenido input:focus,
.form-group-contenido textarea:focus,
.form-group-contenido select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(99, 241, 125, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.tipo-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tipo-btn {
  background: #ccc9c936;
  border: 2px solid #404040;
  color: rgb(0, 0, 0);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: all 0.3s;
  min-height: 80px;
  justify-content: center;
}

.tipo-btn:hover {
  border-color: var(--primary-color);
  background: rgba(49, 49, 53, 0.1);
  transform: translateY(-2px);
}

.tipo-btn.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(72, 72, 99, 0.2), rgba(99, 102, 241, 0.1));
  box-shadow: var(--shadow-glow);
}

.tipo-config {
  background: #e7e7e7;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  border: 1px solid rgba(71, 71, 71, 0.2);
}

.tipo-config h4 {
  color: #059669;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.form-options-con {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.checkbox-label-vid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #0f172a;
  font-weight: 500;
}

.checkbox-label-vid input[type="checkbox"],
.checkbox-label-vid input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--otro-color);
  transform: scale(1.2);
}

.opciones-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-agregar-opcion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;

  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  border-radius: 8px;
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-agregar-opcion:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-agregar-opcion:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-agregar-opcion:disabled {
  background: #9ca3af;
  opacity: 0.6;
  cursor: not-allowed;
}

.opcion-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.opcion-inputs input[type="text"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
}

.opcion-inputs textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

.opcion-inputs input[type="text"]:focus,
.opcion-inputs textarea:focus {
  outline: none;
  border-color: #1db178;
  box-shadow: 0 0 5px rgba(29, 177, 120, 0.5);
  background-color: #fefefe;
}

.opcion-inputs input::placeholder,
.opcion-inputs textarea::placeholder {
  color: #999;
  font-style: italic;
}

.btn-correcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;

  color: #374151;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-correcta:hover:not(:disabled) {
  background: #e5e7eb;
}

.btn-correcta.activo {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #059669;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.btn-correcta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-correcta:active:not(:disabled) {
  transform: scale(0.97);
}


.opcion-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.opcion-input-row input {
  flex: 1;
}

.opcion-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-eliminar-opcion {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 4px;
  cursor: pointer;
}

.btn-eliminar-opcion:hover:not(:disabled) {
  background-color: #FEE2E2;
}

.btn-eliminar-opcion:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.opcion-item-votacion,
.opcion-item-cuestionario,
.opcion-item-encuesta {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background-color: #F9FAFB;
}

.opcion-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-validacion {
  margin: 10px 0;
  padding: 10px;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
}

.mensaje-error {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #DC2626;
  font-size: 14px;
}

input.error,
textarea.error {
  border-color: #DC2626 !important;
}

.sin-opciones {
  padding: 15px;
  text-align: center;
  background-color: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
  color: #6B7280;
}

.texto-ayuda {
  margin-top: 5px;
  color: #6B7280;
  font-size: 0.875rem;
}

.respuestas-espacios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.respuesta-espacio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-agregar-espacio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;

  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  border-radius: 8px;
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-agregar-espacio:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-agregar-espacio:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-agregar-espacio:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #9ca3af;
}

.respuesta-espacio span {
  min-width: 100px;
  font-weight: 500;
}

.elementos-lista,
.zonas-lista,
.puntos-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elemento-item,
.zona-item,
.punto-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.elemento-item input,
.zona-item input,
.punto-item input {
  flex: 1;
}

.coordenadas {
  display: flex;
  gap: 5px;
}

.coordenadas input {
  width: 60px;
}

.config-form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.config-form-row .checkbox-label-vid {
  margin-top: 28px;
}

.config-form-row .form-group-contenido {
  flex: 1;
}

.config-cuestionario,
.config-encuesta,
.config-texto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opciones-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.opcion-item-con {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #fffffff2;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.opcion-item-con input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  color: #0f172a;
}

.opcion-item-con input[type="text"]:focus {
  outline: none;
  box-shadow: none;
}

.cuestionario-content,
.texto-content,
.encuesta-content,
.calificacion-content,
.default-content {
  padding: 1.5rem 0;
}

.cuestionario-content h4,
.texto-content h4,
.encuesta-content h4,
.calificacion-content h4 {
  color: #0f172a;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.opciones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opcion-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fffffff2;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.opcion-label:hover {
  background: #9ca3af;
  border-color: #9ca3af;
}

.opcion-label input[type="radio"] {
  accent-color: var(--primary-color);
  transform: scale(1.3);
}

.texto-content textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
  transition: border-color var(--transition-normal);
}

.texto-content textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.char-count {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.escala-rating,
.star-rating {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.rating-btn,
.star-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-btn:hover,
.star-btn:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.rating-btn.selected,
.star-btn.filled {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.star-btn.filled {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-complete {
  background: linear-gradient(135deg, var(--success-color), var(--secondary-hover));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin: 1rem auto;
  display: block;
}

.btn-complete:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


.editor-actions,
.interaction-actions {
  padding: 1.5rem 2rem;
  background: rgba(214, 209, 209, 0.178);
  border-top: 1px solid rgba(26, 24, 24, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.btn-skip {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 500;
}

.btn-skip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-submit-con {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-submit-con:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-submit-con:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .editor-header h1 {
    font-size: 1.5rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .tipo-selector {
    grid-template-columns: 1fr;
  }

  .form-options-con {
    flex-direction: column;
    gap: 1rem;
  }

  .escala-rating,
  .star-rating {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .rating-btn,
  .star-btn {
    width: 40px;
    height: 40px;
  }

  .timeline-track {
    min-width: 250px;
    height: 60px;
  }

  .interaction-marker {
    width: 24px;
    height: 24px;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.loading-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInRight 0.5s ease-out;
}

.bounce-in {
  animation: bounce 0.6s ease;
}

.pulse-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(50%);
}

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.highlight {
  animation: glow 1s ease-in-out;
  border-color: var(--primary-color) !important;
}

.success-flash {
  animation: pulse 0.5s ease-in-out;
  background-color: rgba(16, 185, 129, 0.2) !important;
}

.error-flash {
  animation: pulse 0.5s ease-in-out;
  background-color: rgba(239, 68, 68, 0.2) !important;
}


.glass-effect {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.neon-glow {
  box-shadow:
    0 0 5px var(--primary-color),
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color),
    0 0 40px var(--primary-color);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.typing-effect::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.toast-confirm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-confirm-text {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.toast-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Botones */
.btn-confirm {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-confirm:hover {
  transform: scale(1.05);
}

/* Botón rojo */
.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Botón verde */
.btn-success {
  background: #065f46;
  color: #fff;
}

.btn-success:hover {
  background: #064e3b;
}

/* Animaciones de entrada/salida */
.toast-confirm.show {
  animation: fadeIn 0.3s ease-out forwards;
}

.toast-confirm.hide {
  animation: fadeOut 0.2s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}


.entrada-texto-wrapper {
  margin-top: 1rem;
  width: 100%;
}

.entrada-texto {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.entrada-texto:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  background-color: #fff;
}

.entrada-texto:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}

.calificacion-content {
  padding: 1rem;
}

.opciones-calificacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.opcion-calificacion {
  position: relative;
  padding: 1rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow: 3px 3px 10px #d1d1d1, -3px -3px 10px #ffffff;
  overflow: hidden;
}

.opcion-calificacion:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 15px #d1d1d1, -5px -5px 15px #ffffff;
}

.opcion-texto {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.3rem;
}

.opcion-valor {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  background: rgba(0, 0, 0, 0.1);
  color: #6b7280;
  padding: 0.15rem 0.5rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.opcion-calificacion::before {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .opciones-calificacion {
    grid-template-columns: repeat(2, 1fr);
  }

  .opcion-calificacion {
    padding: 0.8rem;
  }

  .opcion-texto {
    font-size: 0.85rem;
  }
}

@keyframes selectOption {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.97);
  }

  100% {
    transform: scale(1);
  }
}

.opcion-calificacion.seleccionada {
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.completar-espacios-content {
  margin: 1rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

.texto-a-completar {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.espacio-drop {
  display: inline-block;
  min-width: 120px;
  min-height: 40px;
  margin: 0 5px;
  padding: 5px 10px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
  vertical-align: middle;
  transition: background 0.2s ease;
}

.espacio-drop.activo {
  background: #dbeafe;
  border-color: #3b82f6;
}

.placeholder {
  color: #9ca3af;
  font-style: italic;
  font-size: 0.9rem;
}

.palabras-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.opcion-draggable {
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: grab;
  transition: transform 0.15s ease, background 0.2s ease;
  user-select: none;
}

.opcion-draggable:hover {
  background: #e2e8f0;
}

.opcion-draggable:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.opcion-draggable.seleccionada {
  background: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.escala-preview {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.opcion-preview {
  background: #f0f4f8;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: default;
  transition: all 0.25s ease-in-out;
}

.opcion-preview:hover {
  background: #e0f2fe;
  border-color: #3b82f6;
  transform: scale(1.05);
}

/*Contenedores Resposivos*/
/* Contenedor principal responsivo */
.video-section-con {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin: 0 auto 2rem auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 400px;
  padding: 0 1rem;
  animation: fadeInUp 0.7s ease-out 0.2s both;
  box-sizing: border-box;
  align-items: stretch;
}

/* Sidebar responsivo */
.sidebar {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: auto;
  max-height: 400px;
  overflow-y: auto;
  animation: slideInRight 0.6s ease-out 0.3s both;
  box-sizing: border-box;

}

/* Timeline responsivo */
.timeline-section {
  background: #fffffff2;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2rem;
  clear: both;
}

/* Media Queries para responsividad */

/* Pantallas grandes (1200px+) */
@media (min-width: 1200px) {
  .video-section-con {
    grid-template-columns: 1fr 450px;
  }
}

/* Tabletas y pantallas medianas (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .video-section-con {
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
  }

  .sidebar {
    max-height: 500px;
  }

  .timeline-section {
    padding: 1.5rem;
  }
}

/* Tabletas pequeñas (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
  .video-section-con {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar {
    order: 2;
    /* Mueve el sidebar después del reproductor */
    max-height: 400px;
  }

  .timeline-section {
    order: 3;
    /* Coloca la timeline al final */
    padding: 1.25rem;
  }
}

/* Móviles (hasta 599px) */
@media (max-width: 599px) {
  .video-section-con {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .sidebar {
    order: 2;
    max-height: 350px;
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .timeline-section {
    order: 3;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
  }

  /* Ajustes para elementos internos en móviles */
  .sidebar-header h3 {
    font-size: 1.1rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item-con {
    padding: 0.75rem;
  }

  .timeline-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .timeline-track {
    height: 60px;
  }
}

/* Ajustes para orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .video-section-con {
    grid-template-columns: 1fr 300px;
    min-height: 300px;
  }

  .sidebar {
    max-height: 280px;
  }
}

/* Mejoras para la línea de tiempo en pantallas pequeñas */
@media (max-width: 767px) {
  .timeline-container {
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .timeline-track {
    min-width: 600px;
    /* Ancho mínimo para scroll horizontal */
  }

  .time-markers {
    min-width: 600px;
  }

  .interactions-track {
    min-width: 600px;
  }
}



/* Mejora para el texto en elementos pequeños */
@media (max-width: 480px) {
  .contenido-titulo {
    font-size: 0.9rem;
  }

  .contenido-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contenido-actions {
    justify-content: center;
  }
}

/* Video Player Admin - Diseño responsivo moderno con colores verdes */
.video-player-con {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container-con {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.video-container-con video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ✅ Controles superpuestos modernos */
.video-controls-custom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  padding: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.video-container-con:hover .video-controls-custom,
.video-container-con.paused .video-controls-custom {
  opacity: 1;
  pointer-events: all;
}

/* ✅ Barra de progreso principal */
.video-progress-bar {
  width: 100%;
  margin-bottom: 12px;
  padding: 4px 0;
}

.progress-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-slider:hover {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.progress-slider:hover::-webkit-slider-thumb {
  transform: scale(1.1);
  background: #047857;
}

.progress-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ✅ Fila de controles mejorada */
.controls-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

/* ✅ Botones principales con estilo moderno */
.control-btn {
  background: rgba(5, 150, 105, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 32px;
  height: 32px;
}

.control-btn:hover {
  background: #047857;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.control-btn:active {
  transform: scale(0.95);
  background: #065f46;
}

/* ✅ Botón de play/pause destacado */
.play-btn-custom {
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.play-btn-custom:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.play-btn-custom:active {
  transform: scale(1.05);
}

/* ✅ Display de tiempo elegante */
.time-display-custom {
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  min-width: 90px;
  justify-self: center;
}

/* ✅ Control de volumen moderno */
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-slider {
  width: 60px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-slider:hover {
  background: rgba(255, 255, 255, 0.4);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.volume-slider:hover::-webkit-slider-thumb {
  background: #047857;
  transform: scale(1.1);
}

/* ✅ Selector de velocidad elegante */
.playback-speed {
  display: flex;
  align-items: center;
}

.speed-selector {
  background: rgba(5, 150, 105, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: white;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.speed-selector:hover {
  background: #047857;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.speed-selector option {
  background: #065f46;
  color: white;
  padding: 4px;
}

/* ✅ Placeholder mejorado */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  color: #047857;
  text-align: center;
  min-height: 400px;
}

.video-placeholder p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

/* ✅ RESPONSIVE DESIGN MEJORADO */

/* Tablets y dispositivos medianos (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .video-controls-custom {
    padding: 10px;
  }

  .controls-row {
    gap: 6px;
  }

  .control-btn {
    width: 30px;
    height: 30px;
  }

  .play-btn-custom {
    width: 36px;
    height: 36px;
  }

  .time-display-custom {
    font-size: 11px;
    min-width: 85px;
    padding: 3px 6px;
  }

  .volume-slider {
    width: 50px;
  }
}

/* Tablets pequeñas (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .video-player-con {
    border-radius: 8px;
  }

  .video-controls-custom {
    padding: 8px;
  }

  .controls-row {
    grid-template-columns: auto auto auto 1fr auto auto;
    gap: 6px;
  }

  .control-btn {
    width: 28px;
    height: 28px;
  }

  .play-btn-custom {
    width: 34px;
    height: 34px;
  }

  .time-display-custom {
    font-size: 10px;
    min-width: 80px;
    padding: 3px 6px;
  }

  .volume-control {
    padding: 3px 6px;
  }

  .volume-slider {
    width: 45px;
  }

  .speed-selector {
    padding: 3px 6px;
    font-size: 10px;
  }

  .progress-slider {
    height: 4px;
  }

  .progress-slider:hover {
    height: 5px;
  }
}

/* Dispositivos móviles (320px - 480px) */
@media (max-width: 480px) {
  .video-player-con {
    border-radius: 6px;
  }

  .video-container-con {
    aspect-ratio: 16 / 10;
  }

  .video-controls-custom {
    padding: 4px;
  }

  .controls-row {
    gap: 2px;
    justify-items: center;
  }

  .control-btn {
    width: 20px;
    height: 20px;
  }

  .play-btn-custom {
    width: 24px;
    height: 24px;
  }

  .time-display-custom {
    font-size: 9px;
    min-width: 70px;
    padding: 2px 4px;
    grid-column: 1 / -1;
    margin-top: 4px;
    order: 1;
  }

  .volume-control {
    padding: 2px 4px;
  }

  .volume-slider {
    width: 35px;
  }

  .speed-selector {
    padding: 2px 4px;
    font-size: 9px;
    border-radius: 8px;
  }

  .video-progress-bar {
    margin-bottom: 4px;
  }

  .progress-slider {
    height: 3px;
  }

  .progress-slider:hover {
    height: 4px;
  }

  .video-placeholder {
    padding: 40px 10px;
    min-height: 250px;
  }

  .video-placeholder p {
    font-size: 12px;
  }
}

/* Dispositivos muy pequeños (menos de 320px) */
@media (max-width: 320px) {
  .controls-row {
    gap: 2px;
    grid-template-columns: auto auto auto auto;
  }

  .control-btn {
    width: 24px;
    height: 24px;
  }

  .play-btn-custom {
    width: 28px;
    height: 28px;
  }

  .volume-slider {
    width: 30px;
  }

  .time-display-custom {
    min-width: 65px;
    font-size: 8px;
  }

  .speed-selector {
    padding: 1px 3px;
    font-size: 8px;
  }
}

/* Pantallas grandes (1200px+) */
@media (min-width: 1200px) {
  .video-player-con {
    max-width: 95%;
  }

  .video-controls-custom {
    padding: 14px;
  }

  .controls-row {
    gap: 10px;
  }

  .control-btn {
    width: 34px;
    height: 34px;
  }

  .play-btn-custom {
    width: 40px;
    height: 40px;
  }

  .time-display-custom {
    font-size: 13px;
    min-width: 100px;
    padding: 5px 10px;
  }

  .volume-slider {
    width: 70px;
  }
}

/* ✅ Modo pantalla completa */
:fullscreen .video-container-con {
  aspect-ratio: unset;
  height: 100vh;
}

:fullscreen .video-container-con video {
  object-fit: cover;
  border-radius: 0;
}

:fullscreen .video-controls-custom {
  padding: 24px;
  opacity: 1;
  pointer-events: all;
}

:fullscreen .controls-row {
  gap: 12px;
}

:fullscreen .control-btn {
  width: 36px;
  height: 36px;
}

:fullscreen .play-btn-custom {
  width: 42px;
  height: 42px;
}

/* ✅ Ocultar controles nativos del navegador */
::-webkit-media-controls,
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* ✅ Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .video-container-con {
    aspect-ratio: 21 / 9;
  }

  .video-controls-custom {
    padding: 6px;
  }

  .controls-row {
    gap: 8px;
  }

  .control-btn {
    width: 30px;
    height: 30px;
  }

  .play-btn-custom {
    width: 38px;
    height: 38px;
  }

  .time-display-custom {
    font-size: 10px;
    padding: 2px 4px;
  }
}

.modulos-btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Espacio entre ícono y texto */
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.modulos-btn-volver:hover {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #111827;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modulos-btn-volver:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.editor-header-con {
  background: linear-gradient(135deg, #1db178 0%, #17a56f 100%);
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0 6px 20px rgba(29, 177, 120, 0.2);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.editor-header-con::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1db178, #ffffff80, #1db178);
}

.editor-header-con h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.header-info-con {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.video-name-con {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.progreso-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.progreso-texto {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Estilos originales arriba... */

/* Pantallas medianas */
@media (max-width: 992px) {
  .editor-header-con {
    padding: 18px 24px;
  }

  .editor-header-con h1 {
    font-size: 22px;
  }

  .header-info-con {
    gap: 20px;
  }

  .video-name-con {
    padding: 6px 12px;
    font-size: 14px;
  }

  .progreso-texto {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Pantallas pequeñas */
@media (max-width: 600px) {
  .editor-header-con {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }

  .editor-header-con h1 {
    font-size: 18px;
  }

  .header-info-con {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .video-name-con {
    font-size: 13px;
    padding: 4px 10px;
  }

  .progreso-texto {
    font-size: 12px;
    padding: 6px 10px;
  }
}
/* ExamenPage.css - Diseño Limpio y Minimalista */

:root {
  --primary: #1db178;
  --primary-light: #a2e4cc;
  --primary-dark: #157a58;
  --secondary: #1d6eb1;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.exam-page {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 40px 24px;
}

/* === LOADING STATE === */
.exam-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--gray-700);
  gap: 24px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.exam-loading p {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
}

/* === ERROR STATE === */
.exam-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: var(--gray-800);
  padding: 24px;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 24px;
  color: var(--error);
}

.exam-error h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--gray-900);
}

.exam-error p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.6;
}

/* === HEADER === */
.exam-header {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin: 0 auto 32px;
  max-width: 1200px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
}

.exam-header-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-50);
}

.exam-info {
  flex: 1;
}

.exam-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.exam-description {
  font-size: 16px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

/* === STATS CARDS === */
.exam-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(29, 177, 120, 0.1);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

/* === PROGRESS BAR === */
.progress-container-examen {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

.progress-bar-examen {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* === CONTENT === */
.exam-content {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin: 0 auto 32px;
  max-width: 1200px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
}

.questions-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

/* === QUESTION CARD === */
.question-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
}

.question-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.question-card.answered {
  border-color: var(--primary);
  background: linear-gradient(
    to right,
    var(--white) 0%,
    rgba(162, 228, 204, 0.05) 100%
  );
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.question-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.answered-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 20px 0;
  line-height: 1.6;
}

/* === OPTIONS === */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.option-label:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

.option-label.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-radio {
  display: none;
}

.option-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-600);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.option-label.selected .option-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.option-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.5;
  flex: 1;
  font-weight: 500;
}

.option-label.selected .option-text {
  color: var(--gray-900);
  font-weight: 600;
}

/* === ACTIONS === */
.exam-actions {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.btn-submit-examen {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(29, 177, 120, 0.3);
}

.btn-submit-examen:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(29, 177, 120, 0.4);
  transform: translateY(-2px);
}

.btn-submit-examen:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-examen:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === RESULT PAGE === */
.exam-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.result-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
}

.result-icon {
  font-size: 72px;
  margin-bottom: 24px;
}

.result-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 32px 0;
}

/* === SCORE CIRCLE === */
.result-score {
  margin-bottom: 40px;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 10;
}

.score-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
}

.score-percent {
  font-size: 56px;
  font-weight: 900;
  color: var(--primary);
}

.score-symbol {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 4px;
}

/* === RESULT DETAILS === */
.result-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
}

/* === BUTTONS === */
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(29, 177, 120, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(29, 177, 120, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .exam-page {
    padding: 20px 16px;
  }

  .exam-header {
    padding: 24px;
    margin-bottom: 24px;
  }

  .exam-header-content {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .exam-title {
    font-size: 24px;
  }

  .exam-stats {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 20px;
  }

  .question-text {
    font-size: 16px;
  }

  .option-label {
    padding: 14px 16px;
  }

  .option-indicator {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .result-card {
    padding: 36px 28px;
  }

  .result-icon {
    font-size: 60px;
  }

  .result-title {
    font-size: 26px;
  }

  .score-circle {
    width: 160px;
    height: 160px;
  }

  .score-percent {
    font-size: 48px;
  }

  .result-details {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .btn-submit-examen,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .exam-page {
    padding: 16px 12px;
  }

  .exam-header {
    padding: 20px;
  }

  .exam-title {
    font-size: 22px;
  }

  .exam-description {
    font-size: 14px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 20px;
  }

  .question-card {
    padding: 18px;
  }

  .question-text {
    font-size: 15px;
  }

  .option-text {
    font-size: 14px;
  }

  .btn-submit-examen {
    padding: 14px 32px;
    font-size: 15px;
  }

  .result-card {
    padding: 32px 24px;
  }

  .result-title {
    font-size: 24px;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-percent {
    font-size: 42px;
  }

  .result-stat-value {
    font-size: 24px;
  }
}

/* === ACCESSIBILITY === */
.btn-back:focus-visible,
.btn-submit-examen:focus-visible,
.btn-primary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.option-label:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 177, 120, 0.1);
}

/* === SELECTION === */
::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* === SMOOTH SCROLLING === */
html {
  scroll-behavior: smooth;
}

/* === PRINT STYLES === */
@media print {
  .exam-page {
    background: white;
    padding: 0;
  }

  .btn-back,
  .exam-actions,
  .exam-stats {
    display: none;
  }

  .question-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}
