/* Perfil Content */
.perfil-content {
    padding: 32px;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Banner */
.perfil-banner {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: visible;
    width: 100%;
    max-width: calc(100% - 64px);
}

.banner-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.banner-overlay {
    display: none;
}

.banner-content {
    position: relative;
    padding: 0 32px 24px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
}

.perfil-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -60px;
}

.perfil-avatar-large svg.avatar-placeholder {
    width: 60px;
    height: 60px;
    stroke: #9ca3af;
}

.perfil-avatar-large .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.perfil-info {
    flex: 1;
    color: #1f2937;
    padding-top: 10px;
}

.perfil-nombre {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1f2937;
}

.perfil-documento {
    font-size: 13px;
    margin: 0;
    color: #6b7280;
}

.perfil-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
}

.btn-subir-foto,
.btn-ver-perfil {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subir-foto {
    background: #10b981;
    color: #ffffff;
}

.btn-subir-foto:hover {
    background: #059669;
}

.btn-ver-perfil {
    background: #ef4444;
    color: #ffffff;
}

.btn-ver-perfil:hover {
    background: #dc2626;
}

.btn-subir-foto svg,
.btn-ver-perfil svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.perfil-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 0;
    margin-top: 24px;
    width: 100%;
    max-width: calc(100% - 64px);
}

/* Sidebar Stats */
.perfil-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    border: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 500;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid #e5e7eb;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 28px;
    height: 28px;
    stroke: #3b82f6;
    flex-shrink: 0;
}

.info-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-value {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Tabs */
.perfil-tabs-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    color: #3b82f6;
    background: #f3f4f6;
}

.tab-btn.active {
    color: #3b82f6;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
}

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

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

/* Tab: Mi actividad */
.welcome-message {
    margin-bottom: 32px;
}

.welcome-message h2 {
    font-size: 24px;
    color: #1f2937;
    font-weight: 600;
}

.welcome-message .highlight {
    color: #3b82f6;
}

.activity-section,
.pending-courses {
    margin-bottom: 32px;
}

.pending-courses h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 16px;
}

.empty-state {
    color: #9ca3af;
    font-size: 14px;
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
}

/* Tab: En desarrollo */
.development-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.development-message svg {
    width: 64px;
    height: 64px;
    stroke: #3b82f6;
    margin-bottom: 20px;
}

.development-message h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.development-message p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Tab: Configuración */
.section-title {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.perfil-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: #d1d5db;
}

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

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-password-btn:hover {
    opacity: 0.7;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
}

.btn-submit {
    margin-top: 32px;
    padding: 14px 32px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .perfil-main {
        grid-template-columns: 1fr;
    }
    
    .perfil-sidebar {
        order: 2;
    }
    
    .perfil-tabs-container {
        order: 1;
    }
    
    .perfil-banner {
        max-width: 100%;
    }
    
    .perfil-main {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .perfil-content {
        padding: 12px;
    }
    
    .perfil-banner {
        margin-bottom: 20px;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .banner-image {
        height: 150px;
        border-radius: 12px 12px 0 0;
    }
    
    .banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px 20px;
        gap: 12px;
    }
    
    .perfil-avatar-large {
        width: 90px;
        height: 90px;
        margin-top: -45px;
    }
    
    .perfil-avatar-large svg {
        width: 44px;
        height: 44px;
    }
    
    .perfil-info {
        padding-top: 4px;
    }
    
    .perfil-nombre {
        font-size: 18px;
    }
    
    .perfil-documento {
        font-size: 12px;
    }
    
    .perfil-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .btn-subir-foto,
    .btn-ver-perfil {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .perfil-main {
        padding: 0;
        margin-top: 12px;
        max-width: 100%;
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .tabs-header {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 12px;
        white-space: nowrap;
        flex: none;
        min-width: auto;
    }
    
    .tab-content {
        padding: 20px 16px;
    }
    
    .stats-card {
        flex-direction: row;
        gap: 10px;
        padding: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .info-card {
        padding: 16px;
        gap: 16px;
    }
    
    .welcome-message h2 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .perfil-form {
        max-width: 100%;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
        margin-top: 24px;
    }
    
    .password-input-wrapper input {
        padding-right: 44px;
    }
    
    .empty-state {
        padding: 24px 16px;
        font-size: 13px;
    }
    
    .development-message {
        padding: 48px 20px;
    }
    
    .development-message svg {
        width: 48px;
        height: 48px;
    }
    
    .development-message h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .perfil-content {
        padding: 8px;
    }
    
    .perfil-banner {
        border-radius: 10px;
    }
    
    .banner-image {
        height: 120px;
        border-radius: 10px 10px 0 0;
    }
    
    .banner-content {
        padding: 0 12px 16px;
    }
    
    .perfil-avatar-large {
        width: 76px;
        height: 76px;
        margin-top: -38px;
        border-width: 3px;
    }
    
    .perfil-avatar-large svg {
        width: 36px;
        height: 36px;
    }
    
    .perfil-nombre {
        font-size: 16px;
    }
    
    .perfil-documento {
        font-size: 11px;
    }
    
    .btn-subir-foto,
    .btn-ver-perfil {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .tab-content {
        padding: 16px 12px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .stats-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .info-icon {
        width: 22px;
        height: 22px;
    }
    
    .welcome-message h2 {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
}
