/* --- Vista Mi Perfil (Desktop) --- */
.profile-hero-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    background: linear-gradient(to right, var(--bg-card), rgba(59, 130, 246, 0.05));
}

.avatar-large {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.profile-details h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.profile-details p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.badge-role {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
    font-weight: 600;
}

.profile-menu-section {
    margin-bottom: 32px;
}

.menu-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    letter-spacing: 1px;
}

.profile-menu-list {
    padding: 0; /* Quitamos el padding por defecto de la tarjeta para que los items lleguen al borde */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

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

.profile-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    padding-left: 28px; /* Pequeño efecto de desplazamiento al pasar el mouse */
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
}

.menu-item-left i {
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.profile-menu-item i.fa-chevron-right {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Variables de Diseño Profesionales --- */
:root {
    --bg-main: #0b1120;       
    --bg-sidebar: #0f172a;    
    --bg-card: #1e293b;       
    --bg-card-hover: #334155;
    --primary-blue: #3b82f6;  
    --primary-hover: #2563eb;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-radius: 20px;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
}

/* --- Reseteo Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    overflow: hidden; /* Evita scroll en toda la página, se delega al main */
}

/* --- Layout Principal (Sidebar + Contenido) --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}

/* --- Barra Lateral (Sidebar) --- */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.logo-icon {
    color: var(--text-light);
}

.version {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.nav-item.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-blue);
}

/* Perfil en Sidebar */
.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.avatar {
    width: 44px;
    height: 44px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.settings-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.settings-btn:hover {
    color: var(--text-light);
}

/* --- Contenedor Principal --- */
.main-content {
    padding: 40px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.top-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

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

.action-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.action-btn:hover {
    background-color: var(--bg-card-hover);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* --- Layout Bento/Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.grid-col-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grid-col-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Tarjetas Base --- */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 28px;
    border: 1px solid var(--border-color);
}

/* --- Tarjeta Hero (Azul) --- */
.card-hero {
    background-image: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.card-hero .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    display: block;
    margin-bottom: 8px;
}

.card-hero h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-icon i {
    font-size: 8rem;
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* --- Listas y Textos --- */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.link-action {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.list-item:hover {
    border-color: var(--border-color);
    background-color: rgba(255, 255, 255, 0.04);
}

.item-number {
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-right: 16px;
}

.item-info {
    flex-grow: 1;
}

.item-info h4 { font-size: 1rem; margin-bottom: 4px; }
.item-info p { font-size: 0.85rem; color: var(--text-muted); }

.play-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.play-btn:hover {
    background-color: var(--primary-blue);
}

/* --- Estadísticas Laterales --- */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.stat-card i {
    font-size: 2rem;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.icon-warning { color: var(--accent-gold); }
.icon-success { color: var(--accent-green); }

.stat-info h3 { font-size: 1.8rem; margin-bottom: 4px; }
.stat-info p { font-size: 0.9rem; color: var(--text-muted); }

/* Banner Premium */
.premium-banner {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.banner-icon {
    font-size: 2.5rem;
    color: #a855f7;
    margin-bottom: 16px;
}

.premium-banner h3 { margin-bottom: 12px; }
.premium-banner p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

.btn-outline {
    background: transparent;
    border: 1px solid #a855f7;
    color: #a855f7;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-outline:hover {
    background: #a855f7;
    color: white;
}

/* --- Formulario de Registro / Ajustes (Desktop) --- */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-header {
    margin-bottom: 32px;
}

.settings-header p {
    color: var(--text-muted);
    margin-top: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

/* Ocupar ambas columnas para campos largos */
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 16px 14px 48px;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Selector de Rol (Alumno/Maestro) */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.role-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.role-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.role-card span {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.role-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.role-card.active {
    border-color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.1);
}

.role-card.active i, .role-card.active span {
    color: var(--primary-blue);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}


/* --- Vista Premium (Desktop) --- */
.premium-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
}

.premium-hero {
    margin-bottom: 60px;
}

.premium-logo-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.version-tag {
    font-size: 1.2rem;
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.premium-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.highlight-purple {
    color: #c084fc;
    font-weight: 600;
}

.premium-features-section h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-align: left;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: left;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.05);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Colores específicos para los íconos Premium */
.icon-purple { background-color: rgba(168, 85, 247, 0.1); color: #c084fc; }
.icon-gold { background-color: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }
.icon-blue { background-color: rgba(59, 130, 246, 0.1); color: var(--primary-blue); }
.icon-green { background-color: rgba(16, 185, 129, 0.1); color: var(--accent-green); }

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-large {
    font-size: 1.1rem;
    padding: 16px 40px;
    margin-top: 50px;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
}

.btn-large:hover {
    background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
}
