/* Theme: Modern, accessible, responsive UI with subtle animations */

:root {
  /* Modo Claro (Light Mode) */
  --mm-bg: #ffffff;
  --mm-bg-soft: #f8fafc;
  --mm-surface: #ffffff;
  --mm-text: #1f2937;
  --mm-text-secondary: #6b7280;
  --mm-muted: #9ca3af;
  --mm-border: #e5e7eb;
  --mm-border-light: #f3f4f6;
  
  /* Colores de marca */
  --mm-primary: #4f46e5;
  --mm-primary-hover: #4338ca;
  --mm-primary-light: #eef2ff;
  --mm-accent: #10b981;
  --mm-accent-hover: #059669;
  --mm-danger: #ef4444;
  --mm-danger-hover: #dc2626;
  --mm-warning: #f59e0b;
  --mm-info: #3b82f6;
  
  /* Sombras y efectos */
  --mm-shadow: 0 10px 20px rgba(0,0,0,0.08);
  --mm-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --mm-shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --mm-shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  
  /* Geometría */
  --mm-radius: 14px;
  --mm-radius-sm: 8px;
  --mm-radius-lg: 20px;
  
  /* Transiciones */
  --mm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mm-transition-fast: all 0.15s ease-out;
}

/* Modo oscuro eliminado: se mantiene únicamente el esquema claro por defecto */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Asegurar fondos claros en todos los elementos */
div, section, main, article, aside, header, footer, nav {
  background-color: transparent;
}

/* Forzar fondo claro en el body y contenedores principales */
body {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

.container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
  background-color: transparent !important;
}

/* Estilos de bordes redondeados consistentes */
section, div {
  border-radius: 8px;
  transition-property: border-radius;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

/* Estilos específicos para el footer mejorado */
footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
}

footer h3, footer h4, footer h5 {
  color: #1f2937;
  font-weight: 600;
}

footer a {
  transition: all 0.2s ease-in-out;
}

footer a:hover {
  color: #4f46e5;
  transform: translateX(2px);
}

footer .mm-emoji {
  transition: transform 0.2s ease-in-out;
}

footer .mm-emoji:hover {
  transform: scale(1.1);
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  footer .flex.flex-col.md\\:flex-row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Asegurar compatibilidad cross-browser para border-radius */
section, div {
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;
  
  -webkit-transition: border-radius 0.3s ease-in-out;
  -moz-transition: border-radius 0.3s ease-in-out;
  -ms-transition: border-radius 0.3s ease-in-out;
  -o-transition: border-radius 0.3s ease-in-out;
  transition: border-radius 0.3s ease-in-out;
}

/* Base typography and focus visibility */
html { scroll-behavior: smooth; }
body { font-feature-settings: 'kern' 1, 'liga' 1; }
:focus-visible { outline: 3px solid var(--mm-info); outline-offset: 2px; border-radius: 6px; }

/* Reusable UI components */
.mm-btn { display:inline-flex; align-items:center; gap:.5rem; padding:.6rem 1rem; border-radius:12px; font-weight:600; transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.mm-btn-primary { background: var(--mm-primary); color:#fff; }
.mm-btn-primary:hover { background: var(--mm-primary-700); transform: translateY(-1px); box-shadow: var(--mm-shadow); }
.mm-btn-outline { border:2px solid var(--mm-primary); color: var(--mm-primary); background: transparent; }
.mm-btn-outline:hover { background: rgba(79,70,229,0.08); transform: translateY(-1px); }
.mm-btn-danger { background: var(--mm-danger); color:#fff; }
.mm-btn-danger:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Payment logos inside buttons */
.payment-logo { height: 20px; width: auto; display: inline-block; }
/* Ajustes específicos por marca */
.payment-logo.mp { height: 32px; }
.payment-logo.stripe { height: 28px; }

.mm-chip { display:inline-flex; align-items:center; gap:.4rem; padding:.3rem .6rem; border-radius:999px; font-size:.75rem; background:#f3f4f6; color:#374151; }
.mm-badge { display:inline-block; padding:.25rem .5rem; border-radius:8px; font-size:.75rem; color:#fff; background: var(--mm-primary); }
.mm-badge-success { background: var(--mm-accent); }
.mm-badge-danger { background: var(--mm-danger); }

.mm-card { background:#fff; border-radius: var(--mm-radius); box-shadow: var(--mm-shadow); border: 1px solid #eef2ff; transition: transform .18s ease, box-shadow .18s ease; }
.mm-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.mm-card-body { padding:1rem 1.25rem; }

.mm-progress { height: 10px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.mm-progress > .bar { height:100%; background: linear-gradient(90deg, var(--mm-primary), var(--mm-accent)); }

.mm-section { position:relative; }
.mm-section::before { content:''; position:absolute; inset:auto 0 0 0; height:1px; background: linear-gradient(to right, transparent, #e5e7eb, transparent); }

/* Decorative accents (non-blocking usability) */
.mm-hero { background: radial-gradient(1200px 500px at 10% -20%, rgba(79,70,229,.12), transparent 60%), radial-gradient(800px 400px at 90% -30%, rgba(16,185,129,.12), transparent 60%); }
.mm-hero-title { letter-spacing:.2px; }
.mm-emoji { filter: saturate(1.15); }

/* ===== ANIMACIONES CSS3 Y MICRO-INTERACCIONES ===== */

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-15px);
  }
  70% {
    transform: translateY(-7px);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Clases de animación */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
  opacity: 0;
}

.animate-bounce-in {
  animation: bounceIn 1s ease-out forwards;
  opacity: 0;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Delays para animaciones escalonadas */
.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animation-delay-800 {
  animation-delay: 0.8s;
}

.animation-delay-1000 {
  animation-delay: 1s;
}

/* Efectos hover mejorados */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Clase btn-enhanced para efectos adicionales */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced::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;
}

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

.btn-enhanced:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-enhanced.mm-btn-primary:hover {
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-enhanced.mm-btn-outline:hover {
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

/* Animaciones para testimonios */
.testimonial-card {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Efectos de carga progresiva */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Animaciones para elementos de lista */
.list-item-enter {
  animation: fadeInLeft 0.5s ease-out forwards;
  opacity: 0;
}

/* Efectos de parallax suave */
.parallax-slow {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* Animaciones de contador */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-animate {
  animation: countUp 1s ease-out forwards;
}

/* Efectos de focus mejorados */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
  transition: all 0.3s ease;
}

/* Animaciones para iconos */
.icon-bounce:hover {
  animation: bounce 0.6s ease;
}

.icon-spin:hover {
  animation: spin 1s linear;
}

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

/* Efectos de texto */
.text-glow {
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Optimizaciones para rendimiento */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Animaciones de entrada para elementos del grid */
.grid-item-1 { animation-delay: 0.1s; }
.grid-item-2 { animation-delay: 0.2s; }
.grid-item-3 { animation-delay: 0.3s; }
.grid-item-4 { animation-delay: 0.4s; }
.grid-item-5 { animation-delay: 0.5s; }
.grid-item-6 { animation-delay: 0.6s; }

/* Tables enhancements */
.mm-table tr { transition: background-color .16s ease; }
.mm-table tr:hover { background-color: #f8fafc; }
.mm-table th { font-weight:600; color:#0f172a; }
.mm-table td, .mm-table th { border-bottom: 1px solid #f1f5f9; }

/* Modal animations */
.mm-modal { animation: mmFade .18s ease; }
@keyframes mmFade { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform: translateY(0);} }

/* Modal improvements - Evitar superposición con footer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
  padding: 1.5rem;
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.modal-form-group {
  margin-bottom: 1rem;
}

.modal-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

/* Hidden class for modals */
.hidden {
  display: none !important;
}

/* Responsive modal */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.5rem;
  }
  
  .modal-container {
    max-width: 100%;
    max-height: 95vh;
    margin: 0.5rem;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions button {
    width: 100%;
  }
}

/* Material Design Cards for course list */
.course-card { 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  min-height: 320px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #1976d2, #3f51b5);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.course-card .title { 
  font-weight: 600; 
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .title {
  color: #1976d2;
}

.course-card .price { 
  font-weight: 700; 
  color: #2e7d32;
  font-size: 20px;
  margin-top: auto;
}

/* Material Design Course Image */
.course-card img {
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Material Design Course Category */
.course-card .category {
  color: #757575;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Material Design Course Duration */
.course-card .duration {
  color: #9e9e9e;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Material Design Button in Cards */
.course-card .btn {
  margin-top: 16px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

.course-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Material Design Card Content Layout */
.course-card .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.course-card .card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Accessible hide utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ===== OPTIMIZACIONES RESPONSIVAS Y MÓVILES ===== */

/* Animaciones responsivas - reducir en móviles */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimizaciones móviles mejoradas */
@media (max-width: 768px) {
  /* Reducir animaciones en móviles para mejor rendimiento */
  .animate-fade-in-up,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-bounce-in {
    animation-duration: 0.3s;
  }
  
  .animate-bounce-slow,
  .animate-float {
    animation: none;
  }
  
  .hero-animation-bg {
    animation: none;
    background: rgba(99, 102, 241, 0.05);
  }
  
  /* Ajustar espaciado y tipografía para móviles */
  .mm-hero {
    padding: 2rem 1rem !important;
    margin: 0 0.5rem;
    border-radius: 1rem;
  }
  
  .mm-hero-title {
    font-size: 2.25rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .mm-card {
    margin-bottom: 1rem;
    padding: 1.5rem !important;
  }
  
  /* Mejorar botones para touch */
  .mm-btn {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  
  /* Mejorar legibilidad en móviles */
  .testimonial-card {
    padding: 1.5rem;
  }
  
  /* Reducir efectos hover en móviles */
  .hover-lift:hover,
  .hover-scale:hover,
  .hover-glow:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Optimizar grid para móviles */
  .grid {
    gap: 1rem;
    grid-template-columns: 1fr !important;
  }
  
  /* Mejorar espaciado de secciones */
  section {
    padding: 2rem 1rem;
  }
  
  /* Mejorar contraste en móviles */
  .text-gray-600 {
    color: #374151 !important;
  }
  
  .text-gray-700 {
    color: #1f2937 !important;
  }
  
  /* Ajustar emojis para móviles */
  .mm-emoji {
    font-size: 1.5rem;
  }
  
  /* Mejorar flexbox en móviles */
  .flex-col.sm\\:flex-row {
    flex-direction: column !important;
    gap: 0.75rem;
  }
}

/* Optimizaciones para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .mm-hero-title {
    font-size: 3rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
}

/* Optimizaciones para pantallas grandes */
@media (min-width: 1440px) {
  .max-w-7xl {
    max-width: 1400px;
  }
  
  .mm-hero-title {
    font-size: 4rem;
  }
}

/* Mejoras de accesibilidad */
@media (prefers-contrast: high) {
  .mm-card {
    border: 2px solid #333;
  }
  
  .mm-btn {
    border: 2px solid currentColor;
  }
}

/* Optimizaciones para modo oscuro */
/* Forzar tema claro siempre - sin modo oscuro automático */
@media (prefers-color-scheme: dark) {
  .mm-hero {
    background: radial-gradient(1200px 500px at 10% -20%, rgba(79,70,229,.12), transparent 60%), radial-gradient(800px 400px at 90% -30%, rgba(16,185,129,.12), transparent 60%) !important;
  }
  
  .mm-card {
    background: #ffffff !important;
    border-color: #eef2ff !important;
    color: #1f2937 !important;
  }
  
  .testimonial-card {
    background: #ffffff !important;
    border-color: #eef2ff !important;
    color: #1f2937 !important;
  }
  
  /* Asegurar que todo el texto sea oscuro en fondo claro */
  body {
    background: #ffffff !important;
    color: #1f2937 !important;
  }
}

/* Optimizaciones de rendimiento */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Lazy loading para imágenes */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Mejoras de touch para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .hover-lift,
  .hover-scale,
  .hover-glow {
    transition: none;
  }
  
  .hover-lift:active {
    transform: scale(0.98);
  }
  
  .mm-btn:active {
    transform: scale(0.95);
  }
}

/* Optimizaciones para conexiones lentas */
@media (prefers-reduced-data: reduce) {
  .hero-animation-bg {
    animation: none;
    background: rgba(99, 102, 241, 0.1);
  }
  
  .animate-gradient {
    animation: none;
  }
}

/* Mejoras de focus para navegación por teclado */
.mm-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 2px;
}

/* ===== MEJORAS ESPECÍFICAS PARA HEADER Y LOGIN ===== */

/* Header mejorado con efectos visuales */
header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Logo con animación mejorada */
header a[href="/"] {
  position: relative;
  overflow: hidden;
}

header a[href="/"]:hover .mm-emoji {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Botón de login específico con efectos especiales */
.login-btn {
  position: relative;
  background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 2px solid var(--mm-primary);
  color: var(--mm-primary);
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 70, 229, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

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

.login-btn:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.12) 100%);
  border-color: var(--mm-primary-700);
  color: var(--mm-primary-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
}

.login-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

/* Navegación mejorada */
nav {
  position: relative;
}

nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
  transform: translateY(-50%);
}

/* Efectos de hover mejorados para todos los botones del header */
header .mm-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .mm-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

header .mm-btn-primary:hover {
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

header .mm-btn-danger:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

header .mm-btn-outline:hover {
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

/* Animación de entrada para el header */
@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header {
  animation: headerSlideDown 0.6s ease-out;
}

/* Responsive mejoras para header */
@media (max-width: 768px) {
  header .mm-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  header nav {
    gap: 0.5rem;
  }
  
  header a[href="/"] {
    font-size: 1.125rem;
  }
}

/* ===== MEJORAS PARA FORMULARIOS Y INPUTS ===== */

/* Inputs mejorados con animaciones */
input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

/* Efectos de placeholder mejorados */
input::placeholder {
  color: #9ca3af;
  transition: color 0.3s ease;
}

input:focus::placeholder {
  color: #d1d5db;
}

/* Botón de Google mejorado */
.mm-btn.bg-red-500 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.mm-btn.bg-red-500::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;
}

.mm-btn.bg-red-500:hover::before {
  left: 100%;
}

.mm-btn.bg-red-500:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Separador mejorado */
.relative .border-t {
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  height: 1px;
  border: none;
}

/* Efectos de micro-interacciones para enlaces */
a[href*="forgot_password"],
a[href*="register"] {
  position: relative;
  transition: all 0.3s ease;
}

a[href*="forgot_password"]:hover,
a[href*="register"]:hover {
  transform: translateX(2px);
}

a[href*="forgot_password"]::after,
a[href*="register"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-accent));
  transition: width 0.3s ease;
}

a[href*="forgot_password"]:hover::after,
a[href*="register"]:hover::after {
  width: 100%;
}

/* Mejoras para el emoji del header */
.mm-emoji {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}

/* Efectos de partículas sutiles para el header */
header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Animación de pulso sutil para botones importantes */
.mm-btn-primary {
  animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
  }
}

/* Estilos para imagen de perfil circular */
.profile-avatar-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0 auto;
}

.profile-avatar {
  position: relative;
  display: inline-block;
}

.profile-avatar img,
.profile-avatar .avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #c7d2fe;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.profile-avatar-container:hover .profile-avatar img,
.profile-avatar-container:hover .profile-avatar .avatar-placeholder {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #a5b4fc;
}

.avatar-edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #6366f1;
  border: 3px solid white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.profile-avatar-container:hover .avatar-edit-icon {
  background: #4f46e5;
  transform: scale(1.1);
}

.avatar-placeholder {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Ocultar completamente el input file */
#avatar-input {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
}

/* Estilos para certificados */
.certificate-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.certificate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
  border-color: #d97706;
}

.certificate-number {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #92400e;
}

/* Responsive design para móviles */
@media (max-width: 768px) {
  .profile-avatar img,
  .profile-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
  }
  
  .certificate-card {
    padding: 0.75rem;
  }
  
  .certificate-card .flex {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .certificate-card .flex-1 {
    text-align: center;
  }
}

/* Animación de carga para certificados */
.certificates-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6b7280;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Material Design - Estilos para precios en el catálogo */
.course-price-section {
  position: relative;
  padding: 16px 0;
  margin: 12px 0;
}

/* Material Design Discount Badge */
.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 
    0 3px 6px rgba(244, 67, 54, 0.25),
    0 6px 12px rgba(244, 67, 54, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: material-pulse 2.5s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  min-width: 90px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  gap: 6px;
}

/* Material Design Ripple Effect */
.discount-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: material-shimmer 3s ease-in-out infinite;
  z-index: 1;
}

/* Material Design Badge Icon */
.discount-badge::after {
  content: '🔥';
  font-size: 11px;
  opacity: 0.9;
  animation: material-icon-bounce 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-left: auto;
}

.discount-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 12px rgba(244, 67, 54, 0.35),
    0 12px 24px rgba(244, 67, 54, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.discount-badge:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 0.1s;
}

/* Enhanced Badge for Special Offers */
.discount-badge.special-offer {
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 50%, #d84315 100%);
  animation: material-special-pulse 2s ease-in-out infinite;
}

.discount-badge.special-offer::after {
  content: '⚡';
}

/* Material Design Badge Variants */
.discount-badge.limited-time {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  animation: material-urgent-pulse 1.5s ease-in-out infinite;
}

.discount-badge.limited-time::after {
  content: '⏰';
}

/* Material Design Price Container */
.price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

/* Material Design Original Price */
.original-price {
  position: relative;
  color: #757575;
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: #f44336;
  text-decoration-thickness: 1.5px;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Material Design Final Price */
.final-price {
  color: #2e7d32;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(46, 125, 50, 0.1);
}

.final-price::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4caf50, #2e7d32);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Material Design Regular Price */
.regular-price {
  color: #1976d2;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.regular-price::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2196f3, #1976d2);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Material Design Hover Effects */
.course-card:hover .regular-price {
  color: #1565c0;
  transform: translateY(-1px);
}

.course-card:hover .regular-price::after {
  width: 100%;
}

.course-card:hover .final-price {
  color: #1b5e20;
  transform: translateY(-1px);
}

.course-card:hover .final-price::after {
  width: 100%;
}

.course-card:hover .discount-badge {
  animation-duration: 1.5s;
}

.course-card:hover .original-price {
  opacity: 1;
  color: #616161;
}

/* Material Design Animations */
@keyframes material-pulse {
  0%, 100% {
    box-shadow: 
      0 3px 6px rgba(244, 67, 54, 0.25),
      0 6px 12px rgba(244, 67, 54, 0.15);
  }
  50% {
    box-shadow: 
      0 6px 12px rgba(244, 67, 54, 0.35),
      0 12px 24px rgba(244, 67, 54, 0.2);
  }
}

@keyframes material-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes material-icon-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes material-special-pulse {
  0%, 100% {
    box-shadow: 
      0 3px 6px rgba(255, 87, 34, 0.3),
      0 6px 12px rgba(255, 87, 34, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 6px 12px rgba(255, 87, 34, 0.4),
      0 12px 24px rgba(255, 87, 34, 0.25);
    transform: scale(1.02);
  }
}

@keyframes material-urgent-pulse {
  0%, 100% {
    box-shadow: 
      0 3px 6px rgba(255, 152, 0, 0.3),
      0 6px 12px rgba(255, 152, 0, 0.2);
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    box-shadow: 
      0 6px 12px rgba(255, 152, 0, 0.4),
      0 12px 24px rgba(255, 152, 0, 0.25);
    transform: scale(1.02);
  }
  75% {
    transform: scale(1.05);
  }
}

/* Material Design Card Enhancement */
.course-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

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

/* ===== ESTILOS MEJORADOS PARA TARJETAS DE CURSO ===== */
.course-card-enhanced {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.course-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.course-card-enhanced:hover::before {
  transform: scaleX(1);
}

/* Badge de descuento mejorado */
.discount-badge-enhanced {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: pulse-glow 2s infinite;
  backdrop-filter: blur(10px);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    transform: scale(1.05);
  }
}

/* Utilidad para truncar texto */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Efectos de hover para imágenes */
.course-card-enhanced img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación de entrada para las tarjetas */
.course-card-enhanced {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Delay escalonado para múltiples tarjetas */
.course-card-enhanced:nth-child(1) { animation-delay: 0.1s; }
.course-card-enhanced:nth-child(2) { animation-delay: 0.2s; }
.course-card-enhanced:nth-child(3) { animation-delay: 0.3s; }
.course-card-enhanced:nth-child(4) { animation-delay: 0.4s; }
.course-card-enhanced:nth-child(5) { animation-delay: 0.5s; }
.course-card-enhanced:nth-child(6) { animation-delay: 0.6s; }

/* ===== ESTILOS PARA CATÁLOGO MEJORADO ===== */

/* Hero Section */
.catalog-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: 24px;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

/* Catalog Hero Enhanced */
.catalog-hero-enhanced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
  animation: heroFadeIn 0.8s ease-out;
}

.catalog-hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3Ccircle cx='60' cy='20' r='1'/%3E%3Ccircle cx='20' cy='60' r='1'/%3E%3Ccircle cx='60' cy='60' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
  animation: patternFloat 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  animation: badgeSlideIn 0.6s ease-out 0.2s both;
}

.hero-badge-icon {
  font-size: 1.25rem;
  animation: iconPulse 2s ease-in-out infinite;
}

.hero-badge-text {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

/* Hero Title */
.hero-title {
  margin-bottom: 1.5rem;
  animation: titleSlideUp 0.8s ease-out 0.3s both;
}

.hero-title-main {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-accent {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Hero Description */
.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: descriptionFadeIn 0.8s ease-out 0.4s both;
}

/* Hero CTAs */
.hero-cta-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: ctaSlideUp 0.8s ease-out 0.5s both;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #4f46e5;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.hero-cta-primary:hover::before {
  left: 100%;
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cta-icon {
  font-size: 1.25rem;
}

.cta-arrow {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.hero-cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: statFadeIn 0.6s ease-out both;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon-enhanced {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-content {
  flex: 1;
}

.stat-number-enhanced {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label-enhanced {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.2;
}

/* Animations */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes patternFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

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

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

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

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

@keyframes statFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .catalog-hero-enhanced {
    padding: 3rem 1.5rem 2.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-title-main {
    font-size: 2.5rem;
  }
  
  .hero-title-accent {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-cta-section {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.25rem;
  }
  
  .stat-number-enhanced {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2rem;
  }
  
  .hero-title-accent {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

.catalog-hero > * {
  position: relative;
  z-index: 1;
}

/* Statistics Cards */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

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

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Statistics Cards Compact */
.stat-card-compact {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-icon-compact {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-number-compact {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label-compact {
  color: #64748b;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Search and Filter Section */
.search-filter-section {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.search-filter-section input:focus,
.search-filter-section select:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
}

/* Courses Grid */
.courses-grid {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: 24px;
  border: 2px dashed #e5e7eb;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Call to Action Section */
.cta-section {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.cta-section .bg-gradient-to-r {
  position: relative;
  overflow: hidden;
}

.cta-section .bg-gradient-to-r::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .catalog-hero {
    padding: 2rem 1rem;
  }
  
  .catalog-hero h1 {
    font-size: 2.5rem !important;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .search-filter-section .flex {
    flex-direction: column;
  }
  
  .search-filter-section .flex > div:last-child {
    width: 100%;
  }
  
  .search-filter-section select {
    width: 100%;
  }
}

/* ===== ESTILOS PARA DASHBOARD DE ADMIN ===== */
.admin-dashboard-card {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admin-dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.admin-dashboard-card:hover::before {
  transform: scaleX(1);
}

.admin-dashboard-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--mm-primary-200);
}

.admin-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--mm-primary-100), var(--mm-primary-200));
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.admin-dashboard-card:hover .admin-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--mm-primary-200), var(--mm-primary-300));
}

.admin-card-icon .mm-emoji {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.admin-card-content {
  position: relative;
}

.admin-card-arrow {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--mm-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.admin-dashboard-card:hover .admin-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== ESTILOS PARA BOTONES DE ADMIN ===== */
.admin-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
}

a.admin-btn-small:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a.admin-btn-small:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-btn-edit {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: 1px solid #2563eb;
}

.admin-btn-edit:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-btn-permissions {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: 1px solid #7c3aed;
}

.admin-btn-permissions:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-btn-reset-total {
  background-color: #dc2626;
  color: white;
  border: 1px solid #b91c1c;
}

.admin-btn-reset-total:hover {
  background-color: #b91c1c;
  color: white;
  border-color: #991b1b;
}

.admin-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid #d97706;
}

.admin-btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: 1px solid #dc2626;
}

.admin-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid #059669;
}

.admin-btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-btn-outline {
  background: transparent;
  border: 2px solid #6b7280;
  color: #6b7280;
}

.admin-btn-outline:hover {
  background: rgba(107, 114, 128, 0.1);
  border-color: #4b5563;
  color: #4b5563;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* Botones de paginación mejorados */
.admin-pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-pagination .mm-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.admin-pagination .mm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.admin-pagination .mm-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Optimizaciones para impresión */
@media print {
  .animate-fade-in-up,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-bounce-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .hero-animation-bg {
    display: none;
  }
  
  .mm-btn {
    border: 2px solid #000;
    background: transparent;
    color: #000;
  }
  
  .certificate-card::before {
    display: none;
  }
  
  .discount-badge,
  .final-price,
  .regular-price {
    animation: none;
    background: none;
    color: #000 !important;
    -webkit-text-fill-color: initial;
  }
}

/* ===== DASHBOARD ENHANCED STYLES ===== */

/* Dashboard Header */
.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.dashboard-welcome {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::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;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.stat-card.clickable:active {
  transform: translateY(-3px) scale(0.98);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.95;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dashboard Content Layout */
.dashboard-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-main {
  min-height: 600px;
}

/* Card Improvements */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card,
.certificates-card,
.security-card,
.courses-card {
  transition: all 0.3s ease;
}

.profile-card:hover,
.certificates-card:hover,
.security-card:hover,
.courses-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Courses Section */
.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.courses-actions {
  display: flex;
  gap: 0.75rem;
}

.courses-grid {
  display: grid;
  gap: 1.5rem;
}

.course-card-dashboard {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-card-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-accent));
}

.course-card-dashboard:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: var(--mm-primary);
}

.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.course-info {
  flex: 1;
}

.course-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.course-status {
  flex-shrink: 0;
}

.status-badge.trial-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.status-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
}

.status-badge.completed {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #10b981;
}

.status-badge.in-progress {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.status-badge.not-started {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.course-progress-section {
  margin: 1rem 0;
}

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

.progress-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.progress-percentage {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mm-primary);
}

.mm-progress.enhanced {
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.mm-progress.enhanced .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-accent));
  border-radius: 10px;
  transition: width 0.8s ease;
  position: relative;
}

.mm-progress.enhanced .bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.course-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.course-continue-btn {
  min-width: 120px;
  text-align: center;
}

/* Empty States */
.empty-state,
.empty-certificates,
.error-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6b7280;
}

.empty-icon,
.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-title,
.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-description,
.error-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.empty-cta {
  margin-top: 1rem;
}

/* Certificate Cards Enhanced */
.certificate-card.enhanced {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certificate-card.enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
  animation: shimmer 3s infinite;
}

.certificate-card.enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
  border-color: #d97706;
}

.certificate-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.certificate-info {
  flex: 1;
}

.certificate-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.certificate-number {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #b45309;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.certificate-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #78716c;
}

.certificate-actions {
  flex-shrink: 0;
}

.certificate-download {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Certificates Container */
.certificates-container {
  margin-top: 1rem;
}

/* Loading States */
.certificates-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6b7280;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

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

/* Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.5s ease forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.5s ease forwards;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@media (max-width: 768px) {
  .dashboard-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .dashboard-title {
    font-size: 2rem;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .courses-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .course-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .course-status {
    align-self: center;
  }
  
  .certificate-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }
  
  .certificate-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    padding: 1rem;
  }
  
  .dashboard-title {
    font-size: 1.75rem;
  }
  
  .course-card-dashboard {
    padding: 1rem;
  }
}

/* ========================================
   UX Enhancement Styles
   ======================================== */

/* Button Loading States */
.loading-spinner-small {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

/* Ripple Effect */
.mm-btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Form Validation Styles */
.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.validation-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  animation: fadeInUp 0.3s ease;
}

.validation-error::before {
  content: "⚠️";
  margin-right: 0.5rem;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid #6c5ce7;
}

.toast.toast-show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-success {
  border-left-color: #00b894;
}

.toast.toast-error {
  border-left-color: #e74c3c;
}

.toast.toast-warning {
  border-left-color: #fdcb6e;
}

.toast.toast-info {
  border-left-color: #6c5ce7;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-message {
  font-weight: 500;
  color: #2d3436;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #636e72;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.toast-close:hover {
  background-color: rgba(99, 110, 114, 0.1);
}

/* Enhanced Card Hover Effects */
.mm-card,
.course-card-dashboard,
.certificate-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mm-card:hover,
.course-card-dashboard:hover,
.certificate-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Progress Bar Enhanced Animation */
.mm-progress .bar {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyboard Navigation Indicators */
.keyboard-focus {
  outline: 2px solid #6c5ce7;
  outline-offset: 2px;
}

/* Loading States for Forms */
.form-loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-loading .mm-btn {
  cursor: not-allowed;
}

/* Enhanced Button States */
.mm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.mm-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Smooth Transitions for Interactive Elements */
.mm-btn,
.mm-card,
.course-card-dashboard,
.certificate-card,
input,
textarea,
select {
  transition: all 0.3s ease;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .ripple,
  .toast,
  .loading-spinner-small {
    animation: none;
  }
  
  .mm-card,
  .course-card-dashboard,
  .certificate-card {
    transition: none;
  }
}

/* Mobile Toast Adjustments */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast {
    padding: 0.75rem;
  }
  
  .toast-message {
    font-size: 0.875rem;
  }
}

/* Estilo específico para el botón de Google - FORZAR FONDO BLANCO */
a[href*="login_google"] {
  background-color: white !important;
  background: white !important;
  border: 1px solid #d1d5db !important;
}

a[href*="login_google"]:hover {
  background-color: #f9fafb !important;
  background: #f9fafb !important;
}
/* Brand logo helpers */
.brand-title { white-space: nowrap; display: inline-block; }
.brand-money { color: #2ca36f !important; }