:root {
    --primary-color: #00b3af;
    --primary-dark: #000000e2;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --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: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
}

/* Header */
.header {
    /*background: var(--white);*/
        backdrop-filter: blur(10px);
    background-color: rgb(255 255 255 / 50%);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Agregar estos estilos a tu archivo CSS principal */

.blog-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.blog-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    display: inline-block;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
    border: 1px solid #dbeafe;
}

.object-cover {
    object-position: top;
}

.blog-link:hover {
    background: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.blog-link-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.blog-link-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
}

.category-blog_article {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);


}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--gray-100);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

/* Estilos especiales para el enlace Home */
.nav-link[data-page="home"] {
    position: relative;
}

.nav-link[data-page="home"]:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link[data-page="home"].active:before,
.nav-link[data-page="home"]:hover:before {
    opacity: 0.2;
}



.hamburger {
    width: 25px;
    height: 3px;
    /*background: #333;*/
    margin: 3px 0;
    transition: 0.3s;
    position: relative;
    top: -12px;
}

/*.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}*/

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Animación del hamburguesa */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .flex-movil {
        display: flex!important;
        justify-content: space-around;
    }
    
}

/* Animación especial para el icono home 

.nav-link[data-page="home"].active {
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}


.nav-link[data-page="home"] i {
    transition: transform 0.3s ease;
}

.nav-link[data-page="home"]:hover i {
    transform: scale(1.2);
}*/

/* Responsive para el nuevo menú */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .category-filter {
    top: auto!important;
}
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        flex-direction: column;
        gap: 0.5rem;
        padding: 6px;
        bottom: 1rem;
    }
    
    .nav-link i {
        font-size: 1.5rem;
    }
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: 5px;
}

.btn-primary {
    /*background-color: var(--primary-color);
    color: var(--white);*/
    border-radius: 50px;
    color: var(--white);
    --bg-color-1: hsla(0, 0%, 100%, 0);
    --bg-color-2: hsla(0, 0%, 100%, 0);
    --bg-color-3: #e3ffa0;
    --bg-color-4: #00b3ae;
    background: linear-gradient(to bottom, var(--bg-color-1), var(--bg-color-2)), linear-gradient(141deg, var(--bg-color-3), var(--bg-color-4));
    box-shadow: inset 0 1px 1px #fff3, 0 1px 2px #08080833, 0 4px 4px #08080814, 0 7px 0 -12px #077ac7, inset 0 6px 12px #ffffff1f;
    transition-duration: .4s, .3s, .3s, .3s, .3s;
    transition-property: box-shadow, --bg-color-1, --bg-color-2, --bg-color-3, --bg-color-4;
    transition-timing-function: cubic-bezier(.25,.46,.45,.94), linear, linear, linear, linear;
}


.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background: linear-gradient(white, white) padding-box, /* fondo s��lido dentro */ linear-gradient(90deg, #AF61D9 0%, #FF9112 32.69%, #D625B9 51.44%, #AF61D9 85.1%, #4627B5 100%) border-box;
    color: #4e4e4e;
    border: 1px solid transparent;
}

.btn-outlin

e:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.btn-error {
    background-color: var(--error-color);
    color: var(--white);
}

.btn-logout {
    background-color: var(--error-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
   /* margin-top: 80px; */
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.container {
    width: 91%!important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray

-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(45deg, #f2f2f2a6, #d8ff0024);
}

.card-body {
    padding: 0.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.flex { display: flex; }

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;


    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 56%;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1.5rem;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 100px;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 300px;
    border-left: 4px solid;
    transform: translateX(100%);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--error-color); }
.toast.warning { border-left-color: var(--warning-color); }
.toast.info { border-left-color: var(--primary-color); }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem;

 }
 
  .card .relative .absolute {padding-left: 0rem;}
  
  /* Estilos para la grilla de ejercicios de rutina */
.routine-exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.exercise-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.exercise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exercise-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.exercise-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.exercise-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.exercise-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exercise-image-container:hover .exercise-image {
    transform: scale(1.05);
}

.exercise-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 179, 175, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exercise-image-container:hover .exercise-play-overlay {
    opacity: 1;
}

.exercise-card-body {
    padding: 1rem;
}

.exercise-info {
    margin-bottom: 1rem;
}

.exercise-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.exercise-title:hover {
    color: #00b3af;
}

.exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.exercise-category,
.exercise-muscle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.exercise-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-value {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}

.stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.exercise-card-footer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.btn-exercise-action {
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-exercise-action:hover {
    background: #00b3af;
    color: white;
    border-color: #00b3af;
}

/* Estilos para el modal de detalles del ejercicio */
.exercise-details-modal {
    max-width: 800px;
    width: 95vw;
}

.exercise-video-section {
    margin-bottom: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.exercise-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exercise-info-section {
    margin-bottom: 1.5rem;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exercise-header .exercise-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.exercise-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-category { background: #e0e7ff; color: #3730a3; }

.exercise-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
}

.stat-card i {
    font-size: 1.25rem;
}

.exercise-description {
    margin-bottom: 1.5rem;
}

.exercise-description h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.exercise-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.muscle-tags,
.equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.muscle-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.equipment-tag {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.exercise-instructor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.instructor-info {
    display: flex;
    align-items: center;
    /*gap: 0.75rem;*/
    justify-content: center;
    margin-top: 4px;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-name {
    font-weight: 600;
    color: #1f2937;
}

.instructor-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.exercise-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .routine-exercises-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exercise-card-header {
        height: 160px;
    }
    
    .exercise-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .exercise-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exercise-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .exercise-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exercise-instructor {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .exercise-actions {
        flex-direction: column;
    }
    
       
}

@media (max-width: 480px) {
    .exercise-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}
  
  /*MENU CONTEXTUAL RUTINAS*/
  
  /* Estilos para el menú contextual de rutinas */
.routine-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
}

.routine-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 200px;
    overflow: hidden;
    animation: menuSlideIn 0.2s ease-out;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.routine-menu-header {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.routine-menu-items {
    padding: 8px 0;
}

.routine-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 14px;
}

.routine-menu-item:hover {
    background-color: #f3f4f6;
}

.routine-menu-item i {
    width: 16px;
    text-align: center;
}

.routine-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 640px) {
    .routine-menu {
        min-width: 180px;
        font-size: 13px;
    }
    
    .routine-menu-item {
        padding: 12px 16px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
   

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: var(--transition);
        background-color: var(--gray-800);
    }

    .grid-cols-2,
    .grid-cols-4 {
        grid-template-columns: 1fr!important; 
    }
    
    .user-name, .btn-logout {
    display: none;
}

.user-avatar {
    margin-left: 3rem;
}



    .nav-auth {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    
    .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr))!important; }
    
    .modal {
     max-width: 98%; 
    width: 98%;
}

/*.card-phone{grid-template-columns: repeat(2, minmax(0, 1fr))!important;}*/

.card-phone {
    display: grid!important;
}

.flex {
    display: contents;
}


}



@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr))!important; }
    
    .pc-flex{display:flex;}
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))!important;
    }
     .flex-phone {
        justify-content: flex-end!important;
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr))!important; }
    .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr))!important; }
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

/* Estilos especiales para el enlace Social 
.nav-link[data-page="social"] {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-link[data-page="social"]:hover {
    transform: scale(1.05);
}

.nav-link[data-page="social"].active {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: white;
    -webkit-text-fill-color: white;
    border-radius: 50px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
} */

/* �7�3 ESTILOS PARA EL MEN�0�3 FLOTANTE DE USUARIO */
.nav-user {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-info-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff00;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #374151;
}

.user-info-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* �7�3 MEN�0�3 DESPLEGABLE */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.dropdown-item:hover i {
    color: #374151;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.logout-btn {
    color: #dc2626 !important;
}

.logout-btn:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.logout-btn i {
    color: #dc2626 !important;
}

/* �7�3 RESPONSIVE */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .dropdown-menu {
        right: -1rem;
        min-width: 180px;
    }
    
    .user-info-btn {
        border: 0px!important;

    }
    
    .flex-btn-phone{
        display: contents!important;
    }
}

/* �7�3 CERRAR DROPDOWN AL HACER CLICK FUERA */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: transparent;
}


/* �7�3 ESTILOS PARA TARJETAS DE INSTRUCTORES MEJORADAS */
.instructor-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.instructor-avatar-section {
    position: relative;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.instructor-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
}

.instructor-verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #ef4444;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0 0.25rem;
    line-height: 1.3;
}

.instructor-title {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.instructor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fef3c7;
    border-radius: 12px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.instructor-rating .text-yellow-500 {
    color: #f59e0b;
    font-size: 1.1rem;
}

.instructor-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
    justify-content: center;
}

.specialization-tag {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
    transition: all 0.2s ease;
}

.specialization-tag:hover {
    background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
    transform: translateY(-1px);
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instructor-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.instructor-location i {
    color: #00b3af;
}

.instructor-actions {
    padding: 1rem;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}

.instructor-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.instructor-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 179, 175, 0.3);
}

/* �7�3 ESTILOS PARA FILTROS MEJORADOS */
.filters-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.filters-section .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filters-section .form-input,
.filters-section .form-select {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.filters-section .form-input:focus,
.filters-section .form-select:focus {
    border-color: #00b3af;
    box-shadow: 0 0 0 3px rgba(0, 179, 175, 0.1);
    transform: translateY(-1px);
}

.filters-section .relative i {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.filters-section .form-input:focus + i {
    color: #00b3af;
}

/* �7�3 BADGES Y ETIQUETAS ESPECIALES */
.instructor-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    z-index: 10;
}

.instructor-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.instructor-badge.featured {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* �7�3 RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .instructor-card {
        margin-bottom: 1rem;
    }
    
    .instructor-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    .stat {
        padding: 0.5rem 0.25rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .specialization-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* �7�3 ANIMACIONES ESPECIALES */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 179, 175, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 179, 175, 0.5);
    }
}

.instructor-card.featured {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* �7�3 HEADER DE P�0�9GINA MEJORADO */
.page-header {
    background: linear-gradient(135deg, #545454 0%, #000000 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-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="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* �7�3 TARJETAS DE INSTRUCTORES MODERNAS */
.instructor-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    transform: translateY(0);
}

.instructor-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.instructor-card-modern.featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
}

/* �7�3 HEADER DE LA TARJETA */
.instructor-header {
    position: relative;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.instructor-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.instructor-avatar-modern {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.instructor-card-modern:hover .instructor-avatar-modern {
    transform: scale(1.05);
}

.instructor-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.instructor-status.online { background: #10b981; }
.instructor-status.away { background: #f59e0b; }
.instructor-status.offline { background: #6b7280; }

/* �7�3 ACCIONES R�0�9PIDAS */
.instructor-quick-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.favorite-btn-modern.active {
    background: #ef4444;
    color: white;
}

.share-btn:hover {
    background: #3b82f6;
    color: white;
}

/* �7�3 BADGE VERIFICADO */
.verified-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    font-size: 0.875rem;
}

/* �7�3 BADGES ESPECIALES MODERNOS */
.instructor-badge-modern {
    position: absolute;
    top: 18px;
    left: 25%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.instructor-badge-modern.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.instructor-badge-modern.featured {
    background: linear-gradient(135deg, #ef4444, #ccdc26);

}

.instructor-badge-modern.top-rated {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.instructor-badge-modern.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* �7�3 INFORMACI�0�7N DEL INSTRUCTOR */
.instructor-info {
    padding: 0;
    text-align: center;
}

.instructor-name-modern {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.instructor-title-modern {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* �7�3 RATING MODERNO */
.instructor-rating-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border-radius: 15px;
    margin: 0 1rem 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.star-filled { color: #f59e0b; }
.star-half { color: #f59e0b; }
.star-empty { color: #d1d5db; }

.rating-text {
    font-weight: 600;
    color: #92400e;
}

.rating-count {
    color: #78716c;
    font-size: 0.875rem;
}

/* �7�3 ESPECIALIDADES COMO ETIQUETAS MODERNAS */
.instructor-specializations-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
    justify-content: center;
}

.specialization-tag-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: default;
    border: 1px solid transparent;
}

.specialization-tag-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spec-icon {
    font-size: 0.875rem;
}

/* �7�3 COLORES PARA ESPECIALIDADES */
.spec-red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: #fca5a5;
}

.spec-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-color: #93c5fd;
}

.spec-purple {
    background: linear-gradient(135deg, #e9d5ff, #ddd6fe);
    color: #6b21a8;
    border-color: #c4b5fd;
}

.spec-pink {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
    border-color: #f9a8d4;
}

.spec-orange {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #c2410c;
    border-color: #fb923c;
}

.spec-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-color: #86efac;
}

.spec-teal {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
    border-color: #5eead4;
}

.spec-gray {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    border-color: #d1d5db;
}

.more-specs {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #6b7280;
    border-color: #d1d5db;
}

/* �7�3 ESTAD�0�1STICAS MODERNAS */
.instructor-stats-modern {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
}

.stat-modern {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f9f9f9, #ebebeb);
    color: #4c4c4c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-value-modern {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label-modern {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* �7�3 META INFORMACI�0�7N */
.instructor-meta {
    padding: 0 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.meta-item i {
    color: #00b3af;
    width: 16px;
    text-align: center;
}

.meta-item.price {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    font-weight: 600;
}

.meta-item.price i {
    color: #059669;
}

/* �7�3 ACCIONES PRINCIPALES */
.instructor-actions-modern {
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.btn-action-primary {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #00b3af, #0891b2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 179, 175, 0.3);
}

.btn-action-secondary {
   /* flex: 1; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-action-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
}

/* �7�3 RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .instructor-card-modern {
        margin-bottom: 1.5rem;
    }
    
    .instructor-header {
        padding: 1.5rem 1rem 0.75rem;
    }
    
    .instructor-avatar-modern {
        width: 70px;
        height: 70px;
    }
    
    .instructor-stats-modern {
        /*flex-direction: row-reverse; */
        gap: 0;
        padding: 0;
    }
    
    .stat-modern {
        justify-content: center;
        text-align: center;
    }
    
    .specialization-tag-modern {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .instructor-actions-modern {
        flex-direction: row-reverse;
        gap: 0.5rem;
    }
    
    .btn-action-primary,
    .btn-action-secondary {
        flex: 1;
    }
    
    .instructor-badge-modern {
    position: absolute;
    top: 75px;
    left: 20%;}
}

/* �7�3 ANIMACIONES ESPECIALES */
@keyframes pulse-premium {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
    }
}

.instructor-card-modern.featured {
    animation: pulse-premium 4s ease-in-out infinite;
}

/* Agregar al CSS de la aplicaci��n */
.chat-message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message-content strong {
    font-weight: bold;
}

.chat-message-content br {
    display: block;
    margin: 4px 0;
}

@media (max-width: 768px) {

    .btn {

     gap: 0rem; 
     padding: 10px;
     margin-left: 0px;

}
}

/* �7�3 ESTILOS PARA MOSTRAR GIFS EN LUGAR DE VIDEOS */
.badge-info {
    background-color: #3b82f6;
    color: white;
}

/* �7�3 MEJORAR VISUALIZACI�0�7N DE IM�0�9GENES GIF */
.exercise-gif-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
}

.exercise-gif-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* �7�3 RESPONSIVE PARA M�0�7VILES */
@media (max-width: 768px) {
    .exercise-gif-container {
        height: 250px;
    }
}

/* �7�3 GRID RESPONSIVE PARA EJERCICIOS */
.exercises-grid {
    display: grid;
    gap: 1.5rem;
}

/* M��vil: 1 columna */
.exercises-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Tablet: 2 columnas */
@media (min-width: 640px) {
    .exercises-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop MD: 4 columnas */
@media (min-width: 768px) {
    .exercises-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Desktop LG: 5 columnas */
@media (min-width: 1024px) {
    .exercises-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* XL Screens: 6 columnas */
@media (min-width: 1280px) {
    .exercises-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* �7�3 FILTROS COLAPSABLES */
.filters-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.filters-collapse-btn:hover {
    background: #e5e7eb;
}

.filters-collapse-btn i {
    transition: transform 0.2s;
}

.filters-collapse-btn.collapsed i {
    transform: rotate(45deg);
}

.advanced-filters {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.advanced-filters.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.advanced-filters.expanded {
    max-height: 1000px;
    opacity: 1;
}








/* �7�3 BOT�0�7N OUTLINE CON GRADIENTE ANIMADO EN BORDE */
.btn-outline1 {
    position: relative;
    background: white;
    color: #4e4e4e;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

/* �7�3 CONTENEDOR DEL BORDE ANIMADO */
.btn-outline1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg, 
        #AF61D9 0%, 
        #FF9112 25%, 
        #D625B9 50%, 
        #AF61D9 75%, 
        #4627B5 100%
    );
    border-radius: var(--border-radius);
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: borderSnake 3s linear infinite;
    background-size: 300% 100%;
}

/* �7�3 ANIMACI�0�7N DE SERPIENTE/CALENDARIO EN EL BORDE */
@keyframes borderSnake {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    25% {
        background-position: 50% 50%;
        transform: rotate(90deg);
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(180deg);
    }
    75% {
        background-position: 50% 50%;
        transform: rotate(270deg);
    }
    100% {
        background-position: 0% 50%;
        transform: rotate(360deg);
    }
}

/* �7�3 EFECTO HOVER MEJORADO */
.btn-outline1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(175, 97, 217, 0.3);
    color: #AF61D9;
    font-weight: 600;
}

/* �7�3 EFECTO HOVER PARA ACELERAR LA ANIMACI�0�7N */
.btn-outline1:hover::before {
    animation: borderSnake 1s linear infinite;
}

/* �7�3 EFECTO ACTIVE/PRESSED */
.btn-outline1:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(175, 97, 217, 0.2);
}

/* �7�3 VERSI�0�7N ALTERNATIVA M�0�9S SUAVE */
.btn-outline-smooth {
    position: relative;
    background: white;
    color: #4e4e4e;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.btn-outline-smooth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(
        from 0deg,
        #AF61D9,
        #FF9112,
        #D625B9,
        #AF61D9,
        #4627B5,
        #AF61D9
    );
    border-radius: var(--border-radius);
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: conicRotate 4s linear infinite;
}

@keyframes conicRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-outline-smooth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(175, 97, 217, 0.3);
    color: #AF61D9;
}

.btn-outline-smooth:hover::before {
    animation-duration: 1s;
}

/* �7�3 OTRA OPCI�0�7N: EFECTO DE MOVIMIENTO LINEAL */
.btn-outline {
    position: relative;
    background: white;
    color: #4e4e4e;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #AF61D9 0%,
        #FF9112 20%,
        #D625B9 40%,
        #AF61D9 60%,
        #4627B5 80%,
        #AF61D9 100%
    );
    border-radius: var(--border-radius);
    padding: 1.4px;
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: linearMove 3s linear infinite;
}

@keyframes linearMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(175, 97, 217, 0.3);
    color: #AF61D9;
}

.btn-outline:hover::before {
    animation-duration: 1s;
}

/* �7�3 EFECTO M�0�9S SOPHISTICADO: MOVIMIENTO BIDIRECCIONAL */
.btn-outline-bidirectional {
    position: relative;
    background: white;
    color: #4e4e4e;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.btn-outline-bidirectional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        #AF61D9 0%,
        #FF9112 25%,
        #D625B9 50%,
        #4627B5 75%,
        #AF61D9 100%
    );
    border-radius: var(--border-radius);
    padding: 2px;
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: bidirectionalMove 4s ease-in-out infinite;
}

@keyframes bidirectionalMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-outline-bidirectional:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(175, 97, 217, 0.3);
    color: #AF61D9;
}

.btn-outline-bidirectional:hover::before {
    animation-duration: 2s;
}

/* �7�3 RESPONSIVE */
@media (max-width: 768px) {
    .btn-outline::before,
    .btn-outline-smooth::before,
    .btn-outline-linear::before,
    .btn-outline-bidirectional::before {
        animation-duration: 2s;
    }
    
    .btn-outline:hover::before,
    .btn-outline-smooth:hover::before,
    .btn-outline-linear:hover::before,
    .btn-outline-bidirectional:hover::before {
        animation-duration: 1s;
    }
}

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;

}

#header.header-hidden {
    transform: translateY(-100%);
}

/* A�0�9ade estos estilos en tu archivo CSS o en el head de tu HTML */

/* Modal responsive para m��viles */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px auto !important;
        left: 2.5vw !important;
        right: 2.5vw !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
        max-height: 70vh !important;
    }
    
    .modal-title {
        font-size: 1.25rem !important;
    }
}

/* Botones de navegaci��n responsive para m��viles */
@media (max-width: 768px) {
    .calendar-header-buttons {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .calendar-header-buttons .btn {
        flex: 1 1 auto !important;
        min-width: calc(50% - 0.25rem) !important;
        margin: 0 !important;
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .calendar-main-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    .calendar-main-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Grid de ejercicios responsive */
@media (max-width: 768px) {
    .routine-exercises-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .exercise-card {
        margin: 0 !important;
    }
}

/* Tarjetas de sesi��n responsive */
@media (max-width: 768px) {
    .session-card {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .calendar-day {
        min-height: 100px !important;
        padding: 0.5rem !important;
    }
    
    .calendar-week-view .grid-cols-7 {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.25rem !important;
    }
}

/* Vista mensual responsive */
@media (max-width: 768px) {
    .calendar-month-view .grid-cols-7 {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.1rem !important;
    }
    
    .calendar-day-empty {
        padding: 0.25rem !important;
    }
    
    .calendar-day {
        padding: 0.25rem !important;
        min-height: 80px !important;
    }
}




@media (max-width: 768px) {
 
    .modal {
        padding: 10px !important;
    }
    
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
    }
    
    .modal-content {
        max-height: calc(100vh - 20px) !important;
    }
    
    .modal-body {
        padding: 1rem !important;
        overflow-y: auto !important;
        max-height: 60vh !important;
    }
    
    /* Botones en modal */
    .modal .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .modal .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Grids en modal */
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    
    .grid.grid-cols-3 {
        /* grid-template-columns: 1fr !important; */
        gap: 0.5rem !important;
    }
    
    /* Textos en modal */
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .text-xl {
        font-size: 1.25rem !important;
    }
}

/* Fix para overflow en dispositivos m��viles */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    .card-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
