/* ===== VARIABLES CSS PARA DARK/LIGHT MODE ===== */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #80868b;
    --gray-700: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;
    --primary-50: #e8f0fe;
    --primary-100: #d2e3fc;
    --primary-200: #aecbfa;
    --primary-300: #8ab4f8;
    --primary-400: #669df6;
    --primary-500: #4285f4;
    --primary-600: #1a73e8;
    --primary-700: #1967d2;
    --primary-800: #185abc;
    --primary-900: #174ea6;
    --success-500: #34a853;
    --warning-500: #f9ab00;
    --error-500: #ea4335;
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, var(--success-500) 0%, #0f9d58 100%);
    --gradient-warning: linear-gradient(135deg, var(--warning-500) 0%, #f57c00 100%);
    --gradient-error: linear-gradient(135deg, var(--error-500) 0%, #d23c31 100%);
}

:root {
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-container: var(--white);
    --bg-card: var(--gray-100);
    --bg-card-hover: var(--gray-200);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-muted: var(--gray-600);
    --border-color: var(--gray-300);
    --border-hover: var(--gray-400);
    --accent-color: var(--primary-500);
    --accent-hover: var(--primary-600);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --backdrop-blur: blur(10px);
    --backdrop-bg: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f1419;
        --bg-secondary: #1a1f25;
        --bg-container: #1e2328;
        --bg-card: #2a2f36;
        --bg-card-hover: #353a41;
        --text-primary: #e8e6e3;
        --text-secondary: #b8b6b3;
        --text-muted: #8a8885;
        --border-color: #3a3f46;
        --border-hover: #454a51;
        --accent-color: var(--primary-400);
        --accent-hover: var(--primary-300);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
        --backdrop-blur: blur(15px);
        --backdrop-bg: rgba(30, 35, 40, 0.8);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-header {
    background: var(--gradient-secondary);
    color: white;
    padding: 25px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.logo[src] {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    gap: 30px;
}

.header-text {
    flex: 1;
    min-width: 0;
}

.header-text h1 {
    margin: 0 0 12px 0;
    font-size: 2.4em;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.user-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 320px;
    flex-shrink: 0;
}

/* Estilos para usuario logueado */
.user-info {
    background: var(--backdrop-bg);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: right;
    width: 100%;
    box-shadow: var(--shadow-md);
    display: none; /* Oculto por defecto, se muestra con JS */
}

.user-info.visible {
    display: block;
}

.user-welcome {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-welcome span {
    font-weight: 700;
    color: #fff;
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    display: block;
    line-height: 1.4;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.update-profile-btn,
.logout-btn,
.admin-panel-btn,
.calendar-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.update-profile-btn {
    background: var(--gradient-primary);
    color: white;
}

.update-profile-btn:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.logout-btn {
    background: var(--gradient-error);
    color: white;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #d23c31 0%, #b32a20 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.admin-panel-btn {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: white;
    margin-bottom: 5px;
}

.admin-panel-btn:hover {
    background: linear-gradient(135deg, #8e24aa 0%, #5e35b1 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.admin-panel-btn.advanced {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.admin-panel-btn.advanced:hover {
    background: linear-gradient(135deg, #00acc1 0%, #00838f 100%);
    box-shadow: var(--shadow-lg);
}

/* Estilo específico para el botón de calendario */
.calendar-btn {
    background: linear-gradient(135deg, #f9d423 0%, #f39c12 100%);
    color: white;
    margin-bottom: 5px;
}

.calendar-btn:hover {
    background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== ESTILOS PARA INVITADO ===== */
.guest-info {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.guest-info.visible {
    display: flex; /* Se muestra con la clase */
}

.guest-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
    min-width: 150px;
}

.guest-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 3%;
}

.guest-actions .login-btn,
.guest-actions .register-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: white;
}

.guest-actions .login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.guest-actions .login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.guest-actions .register-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.guest-actions .register-btn:hover {
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* ===== FORMULARIOS ===== */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    background: var(--bg-container);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* ===== GRID DE CLASES ===== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.class-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: cardAppear 0.5s ease-out forwards;
}

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

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

.class-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-xl);
    background: var(--bg-card-hover);
}

.class-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.class-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1em;
    line-height: 1.5;
    flex-grow: 1;
    min-height: 4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.class-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95em;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(66, 133, 244, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(66, 133, 244, 0.3);
    margin-top: auto;
}

.class-card .class-lugar {
    display: inline-block;
    font-size: 0.9em;
    color: var(--text-secondary);
    background: var(--bg-container);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.class-card .class-lugar::before {
    content: '📍 ';
    font-size: 0.9em;
}

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

.class-card:nth-child(1) { animation-delay: 0.1s; }
.class-card:nth-child(2) { animation-delay: 0.2s; }
.class-card:nth-child(3) { animation-delay: 0.3s; }
.class-card:nth-child(4) { animation-delay: 0.4s; }
.class-card:nth-child(5) { animation-delay: 0.5s; }
.class-card:nth-child(6) { animation-delay: 0.6s; }
.class-card:nth-child(7) { animation-delay: 0.7s; }
.class-card:nth-child(8) { animation-delay: 0.8s; }
.class-card:nth-child(9) { animation-delay: 0.9s; }
.class-card:nth-child(10) { animation-delay: 1s; }

/* ===== LOADING / ERROR / NO-CLASSES ===== */
.loading-classes,
.no-classes-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
    font-size: 1.2em;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 300px;
    animation: fadeIn 0.5s ease;
}

.loading-classes::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    color: var(--error-500);
    border-color: var(--error-500);
    background: rgba(234, 67, 53, 0.05);
}

.error-message::before {
    content: '⚠️';
    font-size: 3em;
    margin-bottom: 10px;
}

.no-classes-message::before {
    content: '📭';
    font-size: 3em;
    margin-bottom: 10px;
}

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

/* ===== MODALES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: var(--bg-container);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5em;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--error-500);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.modal-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-tab.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    background: rgba(66, 133, 244, 0.1);
}

.modal-tab-content {
    display: none;
    padding: 25px;
}

.modal-tab-content.active {
    display: block;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-notice {
    background: rgba(249, 171, 0, 0.1);
    border: 1px solid rgba(249, 171, 0, 0.3);
    color: var(--warning-500);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95em;
}

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

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-container);
    color: var(--text-primary);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1em;
    padding: 5px;
}

.legajo-warning {
    color: var(--error-500);
    font-size: 0.85em;
    margin-top: 5px;
}

.password-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
}

.password-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.submit-btn,
.cancel-btn,
.delete-account-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    transform: translateY(-2px);
}

.cancel-btn {
    background: var(--gray-600);
    color: white;
}

.cancel-btn:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
}

.delete-account-btn {
    background: var(--gradient-error);
    color: white;
}

.delete-account-btn:hover {
    background: linear-gradient(135deg, #d23c31 0%, #b32a20 100%);
    transform: translateY(-2px);
}

.delete-warning {
    text-align: center;
}

.warning-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--warning-500);
}

.warning-details {
    text-align: left;
    margin: 25px 0;
    background: rgba(234, 67, 53, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.warning-details h4 {
    color: var(--error-500);
    margin: 15px 0 10px 0;
}

.warning-details ul {
    list-style: none;
    padding-left: 0;
}

.warning-details li {
    padding: 5px 0;
    color: var(--text-secondary);
}

.important-note {
    color: var(--warning-500);
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

/* ===== ESTILOS PARA LA SECCIÓN DE VIDEO ===== */
.video-section {
    display: none;
    margin: 40px 0;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-header {
    text-align: center;
    margin-bottom: 20px;
}

.video-header h2 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 8px;
    font-weight: 700;
}

.video-header p {
    color: var(--text-secondary);
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-primary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== ESTILOS PARA EL MODAL DE INSCRIPCIÓN ===== */

#modalClaseNombre {
    text-align: center;
    margin: 15px;
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 700;
}

.fechas-modal {
    margin: 20px 0;
    text-align: left;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
}

.fechas-modal p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.fechas-modal strong {
    color: var(--text-primary);
}

.btn-unirse {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-unirse:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.mensaje {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.mensaje.error {
    background: rgba(234,67,53,0.1);
    color: var(--error-500);
    border: 1px solid var(--error-500);
}

.mensaje.success {
    background: rgba(52,168,83,0.1);
    color: var(--success-500);
    border: 1px solid var(--success-500);
}

.estado-clase {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.estado-clase.abierta {
    background: rgba(52, 168, 83, 0.1);
    color: var(--success-500);
    border: 1px solid var(--success-500);
}

.estado-clase.cerrada {
    background: rgba(234, 67, 53, 0.1);
    color: var(--error-500);
    border: 1px solid var(--error-500);
}

.estado-clase.proximamente {
    background: rgba(249, 171, 0, 0.1);
    color: var(--warning-500);
    border: 1px solid var(--warning-500);
}

.btn-recordatorio {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-recordatorio:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ===== BOTÓN DE SOLICITAR MATERIAL ===== */
.btn-material {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-500) 0%, #0f9d58 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

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

.btn-material:active {
    transform: translateY(0);
}

/* ===== ESTILOS PARA FECHA Y HORA EN TARJETAS ===== */
.class-datetime {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 8px 12px;
    background: var(--bg-container);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9em;
}

.class-date {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.class-time {
    color: var(--success-500);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(52, 168, 83, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(52, 168, 83, 0.3);
}

/* Estilos para la cartelera en index.html */
.cartelera-container-index {
    margin-bottom: 20px;
    animation: slideDown 0.5s ease;
}

.cartelera-aviso {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cartelera-aviso:hover {
    transform: translateX(5px);
}

.cartelera-aviso.warning {
    background: rgba(249, 171, 0, 0.1);
    border-left-color: #f9ab00;
    color: var(--text-primary);
}

.cartelera-aviso.urgent {
    background: rgba(234, 67, 53, 0.1);
    border-left-color: #ea4335;
    color: var(--text-primary);
}

.cartelera-aviso.info {
    background: rgba(66, 133, 244, 0.1);
    border-left-color: #4285f4;
    color: var(--text-primary);
}

.cartelera-aviso h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cartelera-aviso p {
    margin: 0;
    line-height: 1.5;
}

.cartelera-aviso .aviso-fecha {
    font-size: 0.75em;
    margin-top: 8px;
    opacity: 0.7;
}

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

/* Versión responsive */
@media (max-width: 768px) {
    .class-datetime {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .class-time {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .class-datetime {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

/* ===== FOOTER ===== */
footer {
    padding: 20px;
    text-align: center;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}



/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-text {
        margin-bottom: 0;
    }

    .header-text h1 {
        font-size: 2em;
    }

    .header-text p {
        font-size: 1.1em;
    }

    .user-section {
        align-items: center;
        width: 100%;
        min-width: auto;
    }

    .user-info,
    .guest-info {
        width: 100%;
        align-items: center;
    }

    .user-info {
        text-align: center;
    }

    .user-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .update-profile-btn,
    .logout-btn,
    .admin-panel-btn,
    .calendar-btn{
        flex: 1;
        min-width: 160px;
        margin: 3px;
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-container {
        width: 95%;
        margin: 20px;
    }

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

    .submit-btn,
    .cancel-btn,
    .delete-account-btn {
        width: 100%;
    }

    .class-card {
        padding: 20px;
        min-height: 160px;
    }

    .class-card h3 {
        font-size: 1.2em;
        min-height: 2.4em;
    }

    .class-card p {
        font-size: 0.95em;
        min-height: 3.5em;
    }

    .guest-actions {
        justify-content: center;
    }

    .btn-material {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header-content {
        padding: 0 15px;
    }

    .main-header {
        padding: 20px 0;
    }

    .header-text h1 {
        font-size: 1.8em;
    }

    .class-card {
        padding: 20px;
        min-height: 150px;
    }

    .class-card h3 {
        font-size: 1.1em;
        min-height: 2.2em;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-tab-content {
        padding: 20px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}